diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1073-drm-amd-powerplay-fix-performance-drop-on-Vega10.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1073-drm-amd-powerplay-fix-performance-drop-on-Vega10.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1073-drm-amd-powerplay-fix-performance-drop-on-Vega10.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1073-drm-amd-powerplay-fix-performance-drop-on-Vega10.patch new file mode 100644 index 00000000..d9458f85 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1073-drm-amd-powerplay-fix-performance-drop-on-Vega10.patch @@ -0,0 +1,37 @@ +From 79f33d126ac0758c913ff23e6f87a2fafb45a116 Mon Sep 17 00:00:00 2001 +From: Eric Huang <JinHuiEric.Huang@amd.com> +Date: Thu, 19 Oct 2017 14:55:18 -0400 +Subject: [PATCH 1073/4131] drm/amd/powerplay: fix performance drop on Vega10 + +Setting package power PID to 1 fixes performance drop caused by +updated SMU FW, before DPM is enabled. + +Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +index 015f149..18d54bb 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +@@ -2879,6 +2879,15 @@ static int vega10_enable_dpm_tasks(struct pp_hwmgr *hwmgr) + "DPM is already running right , skipping re-enablement!", + return 0); + ++ if ((data->smu_version == 0x001c2c00) || ++ (data->smu_version == 0x001c2d00)) { ++ tmp_result = smum_send_msg_to_smc_with_parameter(hwmgr, ++ PPSMC_MSG_UpdatePkgPwrPidAlpha, 1); ++ PP_ASSERT_WITH_CODE(!tmp_result, ++ "Failed to set package power PID!", ++ return tmp_result); ++ } ++ + tmp_result = vega10_construct_voltage_tables(hwmgr); + PP_ASSERT_WITH_CODE(!tmp_result, + "Failed to contruct voltage tables!", +-- +2.7.4 + |