linux/drivers/gpu/drm/ttm
Thomas Hellström e44f18c6ff drm/ttm: Make the call to ttm_tt_populate() interruptible when faulting
When swapping in, or under memory pressure ttm_tt_populate() may sleep
for a substantiable amount of time. Allow interrupts during the sleep.
This will also allow us to inject -EINTR errors during swapin in upcoming
patches.

Also avoid returning VM_FAULT_OOM, since that will confuse the core
mm, making it print out a confused message and retrying the fault.
Return VM_FAULT_SIGBUS also under OOM conditions.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230404200650.11043-4-thomas.hellstrom@linux.intel.com
2023-04-06 10:01:42 +02:00
..
Makefile
ttm_agp_backend.c drm/ttm: Add a parameter to add extra pages into ttm_tt 2022-04-02 08:22:48 +05:30
ttm_bo.c Linux 6.3-rc4 2023-03-29 16:00:23 +02:00
ttm_bo_util.c drm/gem-vram: handle NULL bo->resource in move callback 2023-02-23 10:29:00 +01:00
ttm_bo_vm.c drm/ttm: Make the call to ttm_tt_populate() interruptible when faulting 2023-04-06 10:01:42 +02:00
ttm_device.c Linux 6.3-rc4 2023-03-29 16:00:23 +02:00
ttm_execbuf_util.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_module.c LoongArch: Add writecombine support for drm 2022-06-03 20:09:27 +08:00
ttm_module.h
ttm_pool.c drm/ttm: Reduce the number of used allocation orders for TTM pages 2023-04-06 10:00:21 +02:00
ttm_range_manager.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
ttm_resource.c drm/ttm: prevent moving of pinned BOs 2023-02-06 12:10:17 +01:00
ttm_sys_manager.c drm/ttm: add back a reference to the bdev to the res manager 2022-01-26 15:29:24 +01:00
ttm_tt.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00