diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2019-02-06 14:55:08 +0300 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2019-11-06 15:02:00 +0300 |
commit | 7aef29f4d4613570f413301b0807ea66a21f5e3b (patch) | |
tree | 98675e0433ca5110d1cdc8bbe4699fcd0a1db2e1 /include/linux/huge_mm.h | |
parent | 13f8a6148a50e9219491c3d0843056377695cb85 (diff) | |
download | linux-7aef29f4d4613570f413301b0807ea66a21f5e3b.tar.xz |
drm/ttm: Convert vm callbacks to helpers
The default TTM fault handler may not be completely sufficient
(vmwgfx needs to do some bookkeeping, control the write protectionand also
needs to restrict the number of prefaults).
Also make it possible replicate ttm_bo_vm_reserve() functionality for,
for example, mkwrite handlers.
So turn the TTM vm code into helpers: ttm_bo_vm_fault_reserved(),
ttm_bo_vm_open(), ttm_bo_vm_close() and ttm_bo_vm_reserve(). Also provide
a default TTM fault handler for other drivers to use.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include/linux/huge_mm.h')
0 files changed, 0 insertions, 0 deletions