radeon: workaround pinning failure on low ram gpu
authorJerome Glisse <jglisse@redhat.com>
Tue, 12 Nov 2013 15:51:16 +0000 (10:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2013 19:05:53 +0000 (11:05 -0800)
commitb82f7e1e06fc1b7cbef13eb7a0a18968eeb657fd
tree974f2ffd35fd1d400805c57f80a00fb44bc78c00
parenta6573fea8f65709bbacc81957dc68c857fc0f71d
radeon: workaround pinning failure on low ram gpu

commit 97b6ff6be9da7675aab339334fda996d6c5077d9 upstream.

GPU with low amount of ram can fails at pinning new framebuffer before
unpinning old one. On such failure, retry with unpinning old one before
pinning new one allowing to work around the issue. This is somewhat
ugly but only affect those old GPU we care about.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_legacy_crtc.c