Patch "drm/amd/powerplay: refine vce dpm update code on Cz." has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
drm/amd/powerplay: refine vce dpm update code on Cz.
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-amd-powerplay-refine-vce-dpm-update-code-on-cz.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Mon Jul 3 13:33:55 CEST 2017
From: Rex Zhu <[email protected]>
Date: Tue, 10 Jan 2017 15:47:50 +0800
Subject: drm/amd/powerplay: refine vce dpm update code on Cz.
From: Rex Zhu <[email protected]>
[ Upstream commit ab8db87b8256e13a62f10af1d32f5fc233c398cc ]
Program HardMin based on the vce_arbiter.ecclk
if ecclk is 0, disable ECLK DPM 0. Otherwise VCE
could hang if switching SCLK from DPM 0 to 6/7
--- drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c +16 -8
@@ -1402,14 +1402,22 @@ int cz_dpm_update_vce_dpm(struct pp_hwm cz_hwmgr->vce_dpm.hard_min_clk, PPSMC_MSG_SetEclkHardMin)); }else { -/*EPR# 419220 -HW limitation to to */ - cz_hwmgr->vce_dpm.hard_min_clk = hwmgr->vce_arbiter.ecclk; -smum_send_msg_to_smc_with_parameter (hwmgr->smumgr, - PPSMC_MSG_SetEclkHardMin, -cz_get_eclk_level (hwmgr, - cz_hwmgr->vce_dpm.hard_min_clk, - PPSMC_MSG_SetEclkHardMin)); - +/*Program HardMin based on the vce_arbiter.ecclk */ +if (hwmgr->vce_arbiter.ecclk ==0 ) { +smum_send_msg_to_smc_with_parameter (hwmgr->smumgr, + PPSMC_MSG_SetEclkHardMin,0 ); +/* disable ECLK DPM 0. Otherwise VCE could hang if +* switching SCLK from DPM 0 to 6/7 */ +smum_send_msg_to_smc_with_parameter (hwmgr->smumgr, + PPSMC_MSG_SetEclkSoftMin,1 ); + }else { + cz_hwmgr->vce_dpm.hard_min_clk = hwmgr->vce_arbiter.ecclk; +smum_send_msg_to_smc_with_parameter (hwmgr->smumgr, + PPSMC_MSG_SetEclkHardMin, +cz_get_eclk_level (hwmgr, + cz_hwmgr->vce_dpm.hard_min_clk, + PPSMC_MSG_SetEclkHardMin)); + } }return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/drm-amd-powerplay-fix-vce-cg-logic-error-on-cz-st.patch queue-4.9/drm-amdgpu-fix-program-vce-instance-logic-error.patch queue-4.9/drm-amd-powerplay-refine-vce-dpm-update-code-on-cz.patch