drm/radeon/kms: mark 3D power states as performance
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 4 Aug 2010 15:10:26 +0000 (11:10 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Aug 2010 00:46:54 +0000 (10:46 +1000)
Fixes lack of power saving with multiple heads on
some desktop cards.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=16474

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

index a416ab5c0c454bba7f4a1170a1101fbdf3f7819b..6d30868744eeed8e1890a13532dd77a36161fa4b 100644 (file)
@@ -2064,6 +2064,11 @@ void radeon_atombios_get_power_modes(struct radeon_device *rdev)
                                                rdev->pm.power_state[state_index].type =
                                                        POWER_STATE_TYPE_PERFORMANCE;
                                                break;
+                                       case ATOM_PPLIB_CLASSIFICATION_UI_NONE:
+                                               if (misc2 & ATOM_PPLIB_CLASSIFICATION_3DPERFORMANCE)
+                                                       rdev->pm.power_state[state_index].type =
+                                                               POWER_STATE_TYPE_PERFORMANCE;
+                                               break;
                                        }
                                        rdev->pm.power_state[state_index].flags = 0;
                                        if (misc & ATOM_PPLIB_SINGLE_DISPLAY_ONLY)