drm/radeon: never unpin UVD bo v3
authorChristian König <christian.koenig@amd.com>
Fri, 12 Jul 2013 14:18:09 +0000 (10:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sun, 14 Jul 2013 14:11:30 +0000 (10:11 -0400)
commit9cc2e0e9f13315559c85c9f99f141e420967c955
treecd5215addab4c8d8d9e8d81e2d682a08677745e9
parentc9a6ca4abd5f1978ef15b3ece3474f4372ae5fe7
drm/radeon: never unpin UVD bo v3

Changing the UVD BOs offset on suspend/resume doesn't work because the VCPU
internally keeps pointers to it. Just keep it always pinned and save the
content manually.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=66425
v2: fix compiler warning
v3: fix CIK support

Note: a version of this patch needs to go to stable.

Signed-off-by: Christian König <christian.koenig@amd.com>
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