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)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:05:58 +0000 (03:05 +0000)
commit7a9018b4c4b87f53242fc47326cccd75036848c7
tree8e07c0216b02453d56fb1c1888c506e884c4e9bd
parenta1696ab2a8b3c8688c7f30f52095b2fe3608d2a5
drm/amd/powerplay: refine vce dpm update code on Cz.

[ 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

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c