[PATCH] drm/amd/powerplay: update vce power gate state for baffin.

Alex Deucher alexdeucher at gmail.com
Mon May 2 20:00:44 UTC 2016


From: Rex Zhu <Rex.Zhu at amd.com>

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 at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_clockpowergating.c
index e362ddb..8f142a7 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
-- 
2.5.5



More information about the dri-devel mailing list