aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3513-drm-amdgpu-skip-dpm-init-for-renoir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3513-drm-amdgpu-skip-dpm-init-for-renoir.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3513-drm-amdgpu-skip-dpm-init-for-renoir.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3513-drm-amdgpu-skip-dpm-init-for-renoir.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3513-drm-amdgpu-skip-dpm-init-for-renoir.patch
new file mode 100644
index 00000000..981b9d99
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3513-drm-amdgpu-skip-dpm-init-for-renoir.patch
@@ -0,0 +1,45 @@
+From 241d08305e3243992851e8aaea973a4fedc42aee Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Wed, 24 Jul 2019 14:05:11 -0500
+Subject: [PATCH 3513/4256] drm/amdgpu: skip dpm init for renoir
+
+Renoir DPM is not functional so far, we skip it for the comment.
+Will revert this patch once SMU 12 is functional.
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+index d6c66216eb95..5ab3e7b8c68a 100644
+--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
++++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+@@ -768,6 +768,11 @@ static int smu_late_init(void *handle)
+
+ if (!smu->pm_enabled)
+ return 0;
++
++ /* To be removed after dpm is enabled */
++ if (adev->asic_type == CHIP_RENOIR)
++ return 0;
++
+ mutex_lock(&smu->mutex);
+ smu_handle_task(&adev->smu,
+ smu->smu_dpm.dpm_level,
+@@ -1269,6 +1274,10 @@ static int smu_hw_init(void *handle)
+ if (!smu->pm_enabled)
+ return 0;
+
++ /* To be removed after dpm is enabled */
++ if (adev->asic_type == CHIP_RENOIR)
++ return 0;
++
+ ret = smu_feature_init_dpm(smu);
+ if (ret)
+ goto failed;
+--
+2.17.1
+