drm/amd/powerplay: refine vce dpm update code on Cz.
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 10 Jan 2017 07:47:50 +0000 (15:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Jan 2017 22:40:37 +0000 (17:40 -0500)
commitab8db87b8256e13a62f10af1d32f5fc233c398cc
tree381ea4ae64a56b9725938f76de4c8169d13d7ee1
parenta844764751275e0e5d381958e3c7e6e0fe739e25
drm/amd/powerplay: refine vce dpm update code on Cz.

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

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c