]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: use variable UVD clocks
authorAlex Deucher <alexdeucher@gmail.com>
Fri, 21 Feb 2014 16:34:35 +0000 (11:34 -0500)
committerChristian König <christian.koenig@amd.com>
Fri, 28 Feb 2014 09:53:20 +0000 (10:53 +0100)
commitd180bd1d3a05f8f30cdb06f0ada934b150276154
treead9f4313dc7e7fe505c7f977b93be87b097895d8
parent665aad3d03a7df90825585195ff715c87a12deb9
drm/radeon: use variable UVD clocks

Now that Christian fixed the performance problems with
the feedback buffer in mesa, we can enable variable UVD
clocks.  There are multiple UVD power states associated
with different types and numbers of streams.  This uses
the appropriate state based on that information rather
than always using the fastest UVD clocks which saves some
power.  One possible downside is that this may adversely
affect decode benchmarks since these power states target
specific playback requirements rather than maximum
performance.  If that becomes an issue, we can add a
sysfs attribute to force the max UVD state.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/radeon/radeon_pm.c
drivers/gpu/drm/radeon/radeon_uvd.c