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

Niranjana Vishwanathapura niranjana.vishwanathapura at intel.com
Tue May 9 06:57:07 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.

v2: revert retry timeout upon -EAGAIN in preempt worker (Thomas)
z
Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
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   | 22 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 3 deletions(-)

-- 
2.21.0.rc0.32.g243a4c7e27



More information about the Intel-xe mailing list