drm/radeon/kms/pm: fix r6xx+ profile setup
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 17 May 2010 23:41:26 +0000 (19:41 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 18 May 2010 08:21:55 +0000 (18:21 +1000)
commit4bff51711ca8709c5f18640ad6e8ae6b9e8f8047
treee39d0f9069936f590443fcac7cbd62f7c54cf355
parentce8a3eb20c4cb7d9e0c33e7560070688cd9066fc
drm/radeon/kms/pm: fix r6xx+ profile setup

This patch is a combination of the previous two profile
patches, but without the index bugs.  It cleans up and
fixes some issues with pm profile setup on r6xx chips.
Some tables have different orderings for the power states,
also, r600 only has 1 clock mode per power state. On
desktop cards there are no battery modes, so the low and high
power states are the same.  For the low profile case, choose
the lower clock mode.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600.c