]> git.baikalelectronics.ru Git - kernel.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)
commite19ab8ca73a7f9376f33e3c381aa54de9f0000a1
treecd864576a32bf016965eb50c1736577779ab10c5
parenta9a090c5e9e5391e3cb979584bf8077851e351e1
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