drm/radeon: unpin cursor BOs on suspend and pin them again on resume (v2)
authorGrigori Goronzy <greg@chown.ath.cx>
Tue, 7 Jul 2015 07:27:29 +0000 (16:27 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jul 2015 15:40:01 +0000 (11:40 -0400)
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.

[Michel Dänzer: Add pinning BOs on resume]

v2:
[Alex Deucher: merge cursor unpin into fb unpin loop]

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=100541
Cc: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com> (v1)
Signed-off-by: Grigori Goronzy <greg@chown.ath.cx>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c