From: Nirmoy Das Date: Tue, 21 May 2024 10:27:15 +0000 (+0200) Subject: drm/xe/tests: Use uninterruptible VM lock X-Git-Tag: v6.11-rc1~141^2~26^2~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01d71dff61c7e1efae1d7f11b71dfa4549c172bb;p=thirdparty%2Fkernel%2Flinux.git drm/xe/tests: Use uninterruptible VM lock Interruptible lock can return error and needed a return value check. This test should finish quick enough so use a uninterruptible lock instead. Cc: Matthew Auld Reviewed-by: Matthew Auld Link: https://patchwork.freedesktop.org/patch/msgid/20240521102715.22700-1-nirmoy.das@intel.com Signed-off-by: Nirmoy Das --- diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c index b6e7f80c37749..962f6438e2192 100644 --- a/drivers/gpu/drm/xe/tests/xe_migrate.c +++ b/drivers/gpu/drm/xe/tests/xe_migrate.c @@ -344,7 +344,7 @@ static int migrate_test_run_device(struct xe_device *xe) struct xe_migrate *m = tile->migrate; kunit_info(test, "Testing tile id %d.\n", id); - xe_vm_lock(m->q->vm, true); + xe_vm_lock(m->q->vm, false); xe_migrate_sanity_test(m, test); xe_vm_unlock(m->q->vm); }