drm/radeon: only save UVD bo when we have open handles
authorChristian König <christian.koenig@amd.com>
Mon, 5 Aug 2013 12:10:55 +0000 (14:10 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Aug 2013 21:37:15 +0000 (17:37 -0400)
commit4ad9c1c774c2af152283f510062094e768876f55
treeaf8887721f494b5ac18374a34f1677c68a5ca628
parent6fab3febf6d949b0a12b1e4e73db38e4a177a79e
drm/radeon: only save UVD bo when we have open handles

Otherwise just reinitialize from scratch on resume,
and so make it more likely to succeed.

Signed-off-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_fence.c
drivers/gpu/drm/radeon/radeon_uvd.c
drivers/gpu/drm/radeon/rv770.c