drm/amdgpu: unpin cursor BOs on suspend and pin them again on resume
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 8 Oct 2015 04:03:36 +0000 (00:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Oct 2015 20:16:35 +0000 (16:16 -0400)
commit756e6880c51376d2e4d53050582d66d88fc281c7
treea6bce16a540df09f39770e9b4c76deaa9390e454
parenta2df42da61109653782949789ffe6c358e5d2685
drm/amdgpu: unpin cursor BOs on suspend and pin them again on resume

Everything is evicted from VRAM before suspend, so we need to make
sure all BOs are unpinned and re-pinned after resume. Fixes broken
mouse cursor after resume introduced by commit b9729b17.

Port of radeon commit:
f3cbb17bcf676a2fc6aedebe9fbebd59e550c51a

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c