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 |
||
|---|---|---|
| .. | ||
| Makefile | ||
| ttm_agp_backend.c | ||
| ttm_bo.c | ||
| ttm_bo_util.c | ||
| ttm_bo_vm.c | ||
| ttm_device.c | ||
| ttm_execbuf_util.c | ||
| ttm_module.c | ||
| ttm_module.h | ||
| ttm_pool.c | ||
| ttm_range_manager.c | ||
| ttm_resource.c | ||
| ttm_sys_manager.c | ||
| ttm_tt.c | ||