diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2013-08-29 02:12:59 +0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2013-08-31 00:31:12 +0400 |
commit | 2ce529dac71ae7753981a587932d074fdb248608 (patch) | |
tree | 4e41ab114f1404642f6b44c7f5dced56ec6487a0 /drivers/gpu/drm/radeon/uvd_v4_2.c | |
parent | 27c505ca84e164ec66ad55dcf3f5befaac83f10a (diff) | |
download | linux-2ce529dac71ae7753981a587932d074fdb248608.tar.xz |
drm/radeon: split out radeon_uvd_resume from uvd_v4_2_resume
For powergating, we just need to re-init the registers, there
is no need to restore the uvd BOs. This just adds needless
work when powergating uvd for playback while the system is
on. We only need to restore the uvd BOs on an actual resume
from suspend or when the driver loads.
This fixes multi-stream UVD playback on KB systems.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/uvd_v4_2.c')
-rw-r--r-- | drivers/gpu/drm/radeon/uvd_v4_2.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/radeon/uvd_v4_2.c b/drivers/gpu/drm/radeon/uvd_v4_2.c index d7e480786098..d04d5073eef2 100644 --- a/drivers/gpu/drm/radeon/uvd_v4_2.c +++ b/drivers/gpu/drm/radeon/uvd_v4_2.c @@ -39,11 +39,6 @@ int uvd_v4_2_resume(struct radeon_device *rdev) { uint64_t addr; uint32_t size; - int r; - - r = radeon_uvd_resume(rdev); - if (r) - return r; /* programm the VCPU memory controller bits 0-27 */ addr = rdev->uvd.gpu_addr >> 3; |