drm/radeon: fix write back suspend regression with uvd v2
authorJerome Glisse <jglisse@redhat.com>
Thu, 6 Jun 2013 21:51:21 +0000 (17:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Jun 2013 12:16:29 +0000 (08:16 -0400)
commit089920f21db0108fb105ecfd81de4c92d88f06d0
tree2bdece83b9d396767ff6795b110af36a2dd0c388
parent3813f5ca9ab7a00e80a17aab34f155453c66c78a
drm/radeon: fix write back suspend regression with uvd v2

UVD ring can't use scratch thus it does need writeback buffer to keep
a valid address or radeon_ring_backup will trigger a kernel fault.

It's ok to not unpin the write back buffer on suspend as it leave in
gtt and thus does not need eviction.

v2: Fix the uvd case.

Reported and tracked by Wojtek <wojtask9@wp.pl>

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_fence.c
drivers/gpu/drm/radeon/radeon_uvd.c