aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2337-drm-amd-powerplay-smu11-disable-PLL-shutdown-when-gf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2337-drm-amd-powerplay-smu11-disable-PLL-shutdown-when-gf.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2337-drm-amd-powerplay-smu11-disable-PLL-shutdown-when-gf.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2337-drm-amd-powerplay-smu11-disable-PLL-shutdown-when-gf.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2337-drm-amd-powerplay-smu11-disable-PLL-shutdown-when-gf.patch
new file mode 100644
index 00000000..70090336
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2337-drm-amd-powerplay-smu11-disable-PLL-shutdown-when-gf.patch
@@ -0,0 +1,39 @@
+From 41b3d737b1e9b7b77f7241c9a6c2aedc26db01db Mon Sep 17 00:00:00 2001
+From: Jack Xiao <Jack.Xiao@amd.com>
+Date: Mon, 6 May 2019 16:28:22 +0800
+Subject: [PATCH 2337/2940] drm/amd/powerplay/smu11: disable PLL shutdown when
+ gfxoff enabled
+
+MP1 cannot access clock IP during MP1 FW reload, disable PLL
+shutdown as a workaround.
+
+Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
+Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+index 9fb894fec3d3..8030c7a7edae 100644
+--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
++++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+@@ -383,10 +383,14 @@ static int navi10_append_powerplay_table(struct smu_context *smu)
+ /* Mvdd Svi2 Div Ratio Setting */
+ smc_pptable->MvddRatio = smc_dpm_table->MvddRatio;
+
+- if (adev->pm.pp_feature & PP_GFXOFF_MASK)
++ if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+ *(uint64_t *)smc_pptable->FeaturesToRun |= FEATURE_MASK(FEATURE_GFX_SS_BIT)
+ | FEATURE_MASK(FEATURE_GFXOFF_BIT);
+
++ /* TODO: remove it once SMU fw fix it */
++ smc_pptable->DebugOverrides |= DPM_OVERRIDE_DISABLE_DFLL_PLL_SHUTDOWN;
++ }
++
+ return 0;
+ }
+
+--
+2.17.1
+