[PATCH] drm/xe: Failed getting VMA cause display stuck

wangxiaoming321 xiaoming.wang at intel.com
Mon Mar 18 04:12:44 UTC 2024


The failure of binding VMA is duing to interrupt,
So it needs to retry while return fail.

Signed-off-by: wangxiaoming321 <xiaoming.wang at intel.com>
---
 drivers/gpu/drm/xe/xe_vm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 99aa5ffb0ef1..d33476b631e1 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -2621,6 +2621,9 @@ static int __xe_vma_op_execute(struct xe_vm *vm, struct xe_vma *vma,
 	}
 	drm_exec_fini(&exec);
 
+	if (err == -ERESTARTSYS)
+		goto retry_userptr;
+
 	if (err == -EAGAIN) {
 		lockdep_assert_held_write(&vm->lock);
 
-- 
2.25.1



More information about the dri-devel mailing list