drm/ttm: Fix swapin regression
authorThomas Hellstrom <thellstrom@vmware.com>
Sat, 21 Dec 2013 21:23:02 +0000 (22:23 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Dec 2013 00:33:07 +0000 (10:33 +1000)
commit2e6d8b469b8000b4aa9b95dfcebd89eafae3e8cf
tree5613851f2728a14177a9e48c26e07837ebec3bcb
parent488574dbc47e0f570330c8c2b56ae299c28ade14
drm/ttm: Fix swapin regression

Commit "drm/ttm: Don't move non-existing data" didn't take the
swapped-out corner case into account. This patch corrects that.
Fixes blank screen after attempted suspend / hibernate on vmwgfx.

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