drm/amd/powerplay: update vce power gate state for baffin.
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 25 Mar 2016 05:08:46 +0000 (13:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:29:15 +0000 (20:29 -0400)
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 <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c

index e362ddb37544a71f367341e0d2b2391f60864fd1..8f142a74ad08dd7a13433423fcd1b158b5258ccd 100644 (file)
@@ -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