]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drm/radeon: add support for 3d perf states on older asics
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jul 2013 15:48:31 +0000 (11:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Jul 2013 22:09:02 +0000 (18:09 -0400)
commitedcaa5b12525f0de79e027ea1ae8a96ee7d785b3
tree9d6dad6f0929f8d315c2ee0187f774809f75fca9
parentc6cf7777a32da874fabec4fd1c2a579f0ba4e4dd
drm/radeon: add support for 3d perf states on older asics

Certain older rv770 asics have both a performance and
a 3D performance state rather than just multiple performance
levels in the state power state.  The current code would
select the performance state rather than the 3D performance
state when the "performance" profile was selected.  This change
switches to the "balanced" profile by default which ends up being
the internal performance profile.  When the user selects the
"performance" profile, it selects the internal 3D performance
state so the user can select the higher performance modes.

For most asics this changes nothing.  For certain rv770 asics
with static performance and 3D performance states, this allows
you to select between then using by selecting the "balanced"
and "performance" dpm profiles.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_pm.c