summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_ggtt.c
diff options
context:
space:
mode:
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>2023-05-09 08:08:24 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-20 02:33:49 +0300
commit34f89ac8e66cd5121fb05c765acc3c67ddbef7a0 (patch)
tree21948eb5197c59918e94ffc0c3105a8817ec74c0 /drivers/gpu/drm/xe/xe_ggtt.c
parent9ca14f94d294862d6f5ee30a6b73f295cfaa5d08 (diff)
downloadlinux-34f89ac8e66cd5121fb05c765acc3c67ddbef7a0.tar.xz
drm/xe: Handle -EDEADLK case in exec ioctl
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. Update xe_exec_begin to retry validating BOs with a timeout upon -ENOMEM. Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_ggtt.c')
0 files changed, 0 insertions, 0 deletions