diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2881-drm-amd-powerplay-enable-fw-ctf-apcc-dfll-and-gfx-ss.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2881-drm-amd-powerplay-enable-fw-ctf-apcc-dfll-and-gfx-ss.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2881-drm-amd-powerplay-enable-fw-ctf-apcc-dfll-and-gfx-ss.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2881-drm-amd-powerplay-enable-fw-ctf-apcc-dfll-and-gfx-ss.patch new file mode 100644 index 00000000..de03a36c --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2881-drm-amd-powerplay-enable-fw-ctf-apcc-dfll-and-gfx-ss.patch @@ -0,0 +1,59 @@ +From 0822cc2c44ca24ac84f7127b8692b6892cd2094e Mon Sep 17 00:00:00 2001 +From: Kenneth Feng <kenneth.feng@amd.com> +Date: Tue, 16 Jul 2019 15:01:31 +0800 +Subject: [PATCH 2881/2940] drm/amd/powerplay: enable fw ctf,apcc dfll and gfx + ss + +enable fw ctf, apcc dfll and gfx ss on navi10. +fw ctf: when the fw ctf is triggered, the gfx and soc power domain +are shut down. fan speed is boosted to the maximum. +gfx ss: hardware feature, sanity check has been done. +apcc dfll: can check the scoreboard in smu fw to confirm if it's enabled. +no need to do further check since the gfx hardware control the frequency once +a pcc signal comes. + +Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> +Reviewed-by: Evan Quan <evan.quan@amd.com> +--- + drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c +index 895a4e592d5a..fa636d2b9eae 100644 +--- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c ++++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c +@@ -331,7 +331,10 @@ navi10_get_allowed_feature_mask(struct smu_context *smu, + | FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT) + | FEATURE_MASK(FEATURE_FW_DSTATE_BIT) + | FEATURE_MASK(FEATURE_BACO_BIT) +- | FEATURE_MASK(FEATURE_ACDC_BIT); ++ | FEATURE_MASK(FEATURE_ACDC_BIT) ++ | FEATURE_MASK(FEATURE_GFX_SS_BIT) ++ | FEATURE_MASK(FEATURE_APCC_DFLL_BIT) ++ | FEATURE_MASK(FEATURE_FW_CTF_BIT); + + if (adev->pm.pp_feature & PP_MCLK_DPM_MASK) + *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT) +@@ -339,8 +342,7 @@ navi10_get_allowed_feature_mask(struct smu_context *smu, + | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT); + + if (adev->pm.pp_feature & PP_GFXOFF_MASK) { +- *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_SS_BIT) +- | FEATURE_MASK(FEATURE_GFXOFF_BIT); ++ *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT); + /* TODO: remove it once fw fix the bug */ + *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT); + } +@@ -465,9 +467,6 @@ static int navi10_append_powerplay_table(struct smu_context *smu) + smc_pptable->MvddRatio = smc_dpm_table->MvddRatio; + + 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; + } +-- +2.17.1 + |