]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/ttm: TTM fault handler helpers
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Feb 2019 11:55:08 +0000 (12:55 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 18 Jun 2019 13:19:34 +0000 (15:19 +0200)
commit7a39f35ce43f96ff293cc90f845416d03566b14b
treecd864576a32bf016965eb50c1736577779ab10c5
parent32d1f6985ceb6b9099bc9e02dc04e58660f28c16
drm/ttm: TTM fault handler helpers

With the vmwgfx dirty tracking, the default TTM fault handler is not
completely sufficient (vmwgfx need to modify the vma->vm_flags member,
and also needs to restrict the number of prefaults).

We also want to replicate the new ttm_bo_vm_reserve() functionality

So start turning the TTM vm code into helpers: ttm_bo_vm_fault_reserved()
and ttm_bo_vm_reserve(), and provide a default TTM fault handler for other
drivers to use.

Cc: "Christian König" <christian.koenig@amd.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: "Christian König" <christian.koenig@amd.com> #v1
drivers/gpu/drm/ttm/ttm_bo_vm.c
include/drm/ttm/ttm_bo_api.h