]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:10 +0000 (09:29 -0700)
commit46b334754f07e698c52ffbbbe33d58f303cab8e9
tree548572408533b6516d2eb1c2304735663c647b1a
parent5161879c7e43ba40edbe2991ec31bfa6f7e2fe30
drm/radeon: unpin cursor BOs on suspend and pin them again on resume (v2)

commit f3cbb17bcf676a2fc6aedebe9fbebd59e550c51a upstream.

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
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_device.c