drm/ttm: move SG flag check into ttm_bo_vm_reserve
authorChristian König <christian.koenig@amd.com>
Fri, 25 Sep 2020 10:40:03 +0000 (12:40 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 28 Sep 2020 10:33:41 +0000 (12:33 +0200)
commit0b5aebec2bbfb112140122732e7d10788127f682
tree6ac7b99c4198036ba6c575e550c8a90fa3f7e7f5
parent686d4b4b99afe791b0ee3f272843048b155fe53f
drm/ttm: move SG flag check into ttm_bo_vm_reserve

Just check earlier if a BO can be page faulted in the first place.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/392321/
drivers/gpu/drm/ttm/ttm_bo_vm.c