diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-03-25 13:08:46 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-04 20:29:15 -0400 |
commit | b0d113453a1dfb6d514dc62e976c51e9a63d3bb6 (patch) | |
tree | c9d736bfcd95a16c1ee9c86e9321febf49bf7c91 | |
parent | c8c67448b798e4bf5b320c7a15373b10e2d25523 (diff) |
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 <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |