mirror-linux/drivers/gpu/drm/ttm
Tvrtko Ursulin 402b3a8650 drm/ttm: Add an allocation flag to propagate -ENOSPC on OOM
Some graphics APIs differentiate between out-of-graphics-memory and
out-of-host-memory (system memory). Add a device init flag to have -ENOSPC
propagated from the resource managers instead of being converted to
-ENOMEM, to aid driver stacks in determining what error code to return or
whether corrective action can be taken at the driver level.

Co-developed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>
Link: https://lore.kernel.org/r/20251020115411.36818-7-tvrtko.ursulin@igalia.com
2025-10-31 09:27:28 +00:00
..
tests drm/ttm: Replace multiple booleans with flags in device init 2025-10-31 09:14:35 +00:00
Makefile drm/ttm: Provide a shmem backup implementation 2025-03-05 17:08:59 +01:00
ttm_agp_backend.c drm/ttm: Include <linux/export.h> 2025-06-16 09:02:44 +02:00
ttm_backup.c Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
ttm_bo.c drm/ttm: Add an allocation flag to propagate -ENOSPC on OOM 2025-10-31 09:27:28 +00:00
ttm_bo_internal.h drm/ttm: rename ttm_bo_put to _fini v3 2025-09-17 14:03:21 +02:00
ttm_bo_util.c drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
ttm_bo_vm.c drm/ttm: Include <linux/export.h> 2025-06-16 09:02:44 +02:00
ttm_device.c drm/ttm: Add an allocation flag to propagate -ENOSPC on OOM 2025-10-31 09:27:28 +00:00
ttm_execbuf_util.c drm/ttm: Include <linux/export.h> 2025-06-16 09:02:44 +02:00
ttm_module.c drm/ttm: add pgprot handling for RISC-V 2025-10-28 09:19:46 +01:00
ttm_module.h
ttm_pool.c drm/ttm: Allow drivers to specify maximum beneficial TTM pool size 2025-10-31 09:14:50 +00:00
ttm_pool_internal.h drm/ttm: Allow drivers to specify maximum beneficial TTM pool size 2025-10-31 09:14:50 +00:00
ttm_range_manager.c drm/ttm: Include <linux/export.h> 2025-06-16 09:02:44 +02:00
ttm_resource.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
ttm_sys_manager.c
ttm_tt.c drm/ttm: Add getter for some pool properties 2025-10-31 08:54:54 +00:00