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

Thomas Hellström thomas.hellstrom at linux.intel.com
Thu Oct 17 14:44:05 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.

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 | 8 ++++----
 2 files changed, 12 insertions(+), 5 deletions(-)

-- 
2.46.0



More information about the Intel-xe mailing list