drm/ttm: Allow vm fault retries
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 9 Oct 2013 10:18:07 +0000 (03:18 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2013 12:14:43 +0000 (04:14 -0800)
commitcbe12e74ee4e29b6cb4e63fa284e80b73ad57926
treeef667b3eca6206be60d338af822ab707365d1f74
parent4695b03970df378dcb93fe3e7158381f1e980fa2
drm/ttm: Allow vm fault retries

Make use of the FAULT_FLAG_ALLOW_RETRY flag to allow dropping the
mmap_sem while waiting for bo idle.

FAULT_FLAG_ALLOW_RETRY appears to be primarily designed for disk waits
but should work just as fine for GPU waits..

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/ttm/ttm_bo_vm.c