drm/radeon/dpm: use multiple UVD power states (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Jul 2013 16:12:49 +0000 (12:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:29:59 +0000 (16:29 -0400)
commitce3537d57196dfc7094755532e1ffc1af133ca5f
tree359175733656379b334b532f6410c700ccda912d
parent85a129ca8db375ce046faa34eb1387ea4247e268
drm/radeon/dpm: use multiple UVD power states (v3)

Use the UVD handle information to determine which
which power states to select when using UVD.  For
example, decoding a single SD stream requires much
lower clocks than multiple HD streams.

v2: switch to a cleaner dpm/uvd interface
v3: change the uvd power state while streams
are active if need be

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