drm/radeon/dpm: fixup dynamic state adjust for sumo
Use a dedicated copy of the current power state since we may have to adjust it on the fly. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1072,6 +1072,11 @@ static void sumo_apply_state_adjust_rules(struct radeon_device *rdev)
|
||||
u32 sclk_in_sr = pi->sys_info.min_sclk; /* ??? */
|
||||
u32 i;
|
||||
|
||||
/* point to the hw copy since this function will modify the ps */
|
||||
pi->hw_ps = *ps;
|
||||
rdev->pm.dpm.hw_ps.ps_priv = &pi->hw_ps;
|
||||
ps = &pi->hw_ps;
|
||||
|
||||
if (rps->class & ATOM_PPLIB_CLASSIFICATION_THERMAL)
|
||||
return sumo_patch_thermal_state(rdev, ps, current_ps);
|
||||
|
||||
|
Reference in New Issue
Block a user