[PATCH v2 0/2] drm/xe: Avoid unnecessary OOM kills

Thomas Hellström thomas.hellstrom at linux.intel.com
Thu Oct 31 15:37:30 UTC 2024


On kernel memory allocations where invoking the OOM killer is to be
avoided, but trying pretty hard to fulfill the allocation is still
desirable, one can use __GFP_RETRY_MAYFAIL.

Use that for buffer memory allocation-and validation and for
multiple bind memory allocation.

v2:
- Add __GFP_NOWARN to __GFP_RETRY_MAYFAIL allocations

Thomas Hellström (2):
  drm/xe: Avoid the OOM killer on buffer object memory allocation
  drm/xe: Don't unnecessarily invoke the OOM killer on multiple binds

 drivers/gpu/drm/xe/xe_bo.c |  9 ++++++++-
 drivers/gpu/drm/xe/xe_vm.c | 11 +++++++----
 2 files changed, 15 insertions(+), 5 deletions(-)

-- 
2.46.2



More information about the Intel-xe mailing list