[Intel-xe] [PATCH 0/2] drm/xe: Handle -EDEADLK case during BO validation

Niranjana Vishwanathapura niranjana.vishwanathapura at intel.com
Tue May 9 05:24:17 UTC 2023


With multiple active VMs, under memory pressure, it is possible that
ttm_bo_validate() run into -EDEADLK in ttm_mem_evict_wait_busy() and
return -ENOMEM.

Until ttm properly handles locking in such scenarios, best thing the
driver can do is unwind the lock and retry.

Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>

Niranjana Vishwanathapura (2):
  drm/xe: Handle -EDEADLK case in preempt worker
  drm/xe: Handle -EDEADLK case in exec ioctl

 drivers/gpu/drm/xe/xe_exec.c | 27 ++++++++++++++++++++++++---
 drivers/gpu/drm/xe/xe_vm.c   | 25 ++++++++++++++++++++++---
 2 files changed, 46 insertions(+), 6 deletions(-)

-- 
2.21.0.rc0.32.g243a4c7e27



More information about the Intel-xe mailing list