vmwgfx: Fix fb VRAM pinning failure due to fragmentation
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 1 Oct 2010 08:21:51 +0000 (10:21 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 1 Oct 2010 11:08:55 +0000 (21:08 +1000)
commitabb295f3b3db602f91accf58b526b30b48673af1
treea4882b7f01e7e5808a5023ac9897d289fe8b4e29
parentf1a28ee238bddfa48c5233543926af65a4445bf6
vmwgfx: Fix fb VRAM pinning failure due to fragmentation

If the soon-to-be scanout buffer is partly covering the intended
VRAM region, move and pin will fail. In that case, just move it out
to system before attempting to move it in again.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fb.c