From: Rex Zhu Date: Fri, 25 Mar 2016 05:08:46 +0000 (+0800) Subject: drm/amd/powerplay: update vce power gate state for baffin. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b0d113453a1dfb6d514dc62e976c51e9a63d3bb6;p=linux-beck.git drm/amd/powerplay: update vce power gate state for baffin. Forgot to save the current gate state so we don't know what the current state is if we try and gate/ungate the block. Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c index e362ddb37544..8f142a74ad08 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c @@ -123,6 +123,8 @@ int polaris10_phm_powergate_vce(struct pp_hwmgr *hwmgr, bool bgate) if (data->vce_power_gated == bgate) return 0; + data->vce_power_gated = bgate; + if (bgate) polaris10_phm_powerdown_vce(hwmgr); else