aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1093-drm-amdgpu-update-NBIO-v7.4-to-support-BACO.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1093-drm-amdgpu-update-NBIO-v7.4-to-support-BACO.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1093-drm-amdgpu-update-NBIO-v7.4-to-support-BACO.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1093-drm-amdgpu-update-NBIO-v7.4-to-support-BACO.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1093-drm-amdgpu-update-NBIO-v7.4-to-support-BACO.patch
new file mode 100644
index 00000000..7dcaeb7b
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1093-drm-amdgpu-update-NBIO-v7.4-to-support-BACO.patch
@@ -0,0 +1,44 @@
+From 194c287df8c00bc16a3a3781fd073aa99fa2deb7 Mon Sep 17 00:00:00 2001
+From: Jim Qu <Jim.Qu@amd.com>
+Date: Thu, 8 Nov 2018 18:21:05 +0800
+Subject: [PATCH 1093/2940] drm/amdgpu: update NBIO v7.4 to support BACO
+
+Signed-off-by: Jim Qu <Jim.Qu@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_offset.h | 2 ++
+ drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_sh_mask.h | 3 +++
+ 2 files changed, 5 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_offset.h b/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_offset.h
+index e932213f87f0..994e796a28d7 100644
+--- a/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_offset.h
++++ b/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_offset.h
+@@ -2567,6 +2567,8 @@
+
+ // addressBlock: nbio_nbif0_rcc_strap_BIFDEC1
+ // base address: 0x0
++#define mmRCC_BIF_STRAP0 0x0000
++#define mmRCC_BIF_STRAP0_BASE_IDX 2
+ #define mmRCC_DEV0_EPF0_STRAP0 0x0011
+ #define mmRCC_DEV0_EPF0_STRAP0_BASE_IDX 2
+
+diff --git a/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_sh_mask.h b/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_sh_mask.h
+index d3704b438f2d..d467b939c971 100644
+--- a/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_sh_mask.h
++++ b/drivers/gpu/drm/amd/include/asic_reg/nbio/nbio_7_4_sh_mask.h
+@@ -19690,6 +19690,9 @@
+
+
+ // addressBlock: nbio_nbif0_rcc_strap_BIFDEC1
++//RCC_BIF_STRAP0
++#define RCC_BIF_STRAP0__STRAP_PX_CAPABLE__SHIFT 0x7
++#define RCC_BIF_STRAP0__STRAP_PX_CAPABLE_MASK 0x00000080L
+ //RCC_DEV0_EPF0_STRAP0
+ #define RCC_DEV0_EPF0_STRAP0__STRAP_DEVICE_ID_DEV0_F0__SHIFT 0x0
+ #define RCC_DEV0_EPF0_STRAP0__STRAP_MAJOR_REV_ID_DEV0_F0__SHIFT 0x10
+--
+2.17.1
+