drm/radeon/kms/pm: fix power state indexing on igp chips in dynpm mode
Subsystems (2)
PATCH 1/1 drm/radeon/kms/pm: fix power state indexing on igp chips in dynpm mode
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28745
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/r600.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/r600.c +8 -3
@@ -130,9 +130,14 @@ void r600_pm_get_dynpm_state(struct radeon_device *rdev)break ; } } - }else - rdev->pm.requested_power_state_index = - rdev->pm.current_power_state_index -1 ; + }else { +if (rdev->pm.current_power_state_index ==0 ) + rdev->pm.requested_power_state_index = + rdev->pm.num_power_states -1 ; +else + rdev->pm.requested_power_state_index = + rdev->pm.current_power_state_index -1 ; + } } rdev->pm.requested_clock_mode_index =0 ;/* don't use the power state if crtcs are active and no display flag is set */
Signature · 1 line
1.7.0.1
2010/6/25 Alex Deucher <[email protected]>:
Quoted 4 lines
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28745Signed-off-by Alex Deucher <[email protected]>
Tested-by Rafał Miłecki <[email protected]>
Signature · 5 lines
Rafał _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
2010/6/25 Alex Deucher <[email protected]>:
Quoted 4 lines
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28745Signed-off-by Alex Deucher <[email protected]>
This fixes div by 0 which kills my machine, so I really would like to see this in .35
Signature · 5 lines
Rafał _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel