aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2411-drm-amd-powerplay-disable-fw-dstate-when-gfxoff-is-e.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2411-drm-amd-powerplay-disable-fw-dstate-when-gfxoff-is-e.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2411-drm-amd-powerplay-disable-fw-dstate-when-gfxoff-is-e.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2411-drm-amd-powerplay-disable-fw-dstate-when-gfxoff-is-e.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2411-drm-amd-powerplay-disable-fw-dstate-when-gfxoff-is-e.patch
new file mode 100644
index 00000000..e96fd2ca
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2411-drm-amd-powerplay-disable-fw-dstate-when-gfxoff-is-e.patch
@@ -0,0 +1,37 @@
+From f6ea5921518b3936322f64fc1e69ce25f685683a Mon Sep 17 00:00:00 2001
+From: Jack Xiao <Jack.Xiao@amd.com>
+Date: Tue, 28 May 2019 21:47:05 +0800
+Subject: [PATCH 2411/2940] drm/amd/powerplay: disable fw dstate when gfxoff is
+ enabled
+
+SMU FW has bug that it would cause hung when both fw dstate and
+gfxoff are enabled at the same time.
+
+Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
+Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+index 4db5ecd385a4..af0abed6169e 100644
+--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
++++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
+@@ -336,9 +336,12 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
+ | FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
+ | FEATURE_MASK(FEATURE_ACDC_BIT);
+
+- if (adev->pm.pp_feature & PP_GFXOFF_MASK)
++ if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+ *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_SS_BIT)
+ | FEATURE_MASK(FEATURE_GFXOFF_BIT);
++ /* TODO: remove it once fw fix the bug */
++ *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
++ }
+
+ if (smu->adev->pg_flags & AMD_PG_SUPPORT_VCN)
+ *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_VCN_PG_BIT);
+--
+2.17.1
+