projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f53eb6
)
drm/radeon/kms/pm: fix power state indexing on igp chips in dynpm mode
author
Alex Deucher
<
[email protected]
>
Fri, 25 Jun 2010 20:21:27 +0000
(16:21 -0400)
committer
Dave Airlie
<
[email protected]
>
Thu, 1 Jul 2010 01:59:46 +0000
(11:59 +1000)
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=28745
Signed-off-by: Alex Deucher <
[email protected]
>
Tested-by: Rafał Miłecki <
[email protected]
>
Signed-off-by: Dave Airlie <
[email protected]
>
drivers/gpu/drm/radeon/r600.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/r600.c
b/drivers/gpu/drm/radeon/r600.c
index 90f28175a7bc44f0180947b1ea00ebea5bc6b765..3d6645ce21518a640dd0981e38a67e223e86a49e 100644
(file)
--- a/
drivers/gpu/drm/radeon/r600.c
+++ b/
drivers/gpu/drm/radeon/r600.c
@@
-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 */