OSDN Git Service

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)
commitf3cbb17bcf676a2fc6aedebe9fbebd59e550c51a
treeacc5a1c7b87e4c8610df0a224ce22d77535f7316
parentcd404af0c930104462aa91344f07d002cf8248ed
drm/radeon: unpin cursor BOs on suspend and pin them again on resume (v2)

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