drm/xe/tests: Fix migrate test
authorPallavi Mishra <pallavi.mishra@intel.com>
Tue, 7 Nov 2023 19:24:24 +0000 (00:54 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:43:38 +0000 (11:43 -0500)
Pass a valid vm to xe_migrate_update_pgtables.

Resolves NPD crash seen with igt@xe_live_ktest@migrate

Reviewed-by: Brian Welty <brian.welty@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Pallavi Mishra <pallavi.mishra@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/tests/xe_migrate.c

index c984307560eec83e6b9dd450ae142522a78d1f47..7aad09140d7ed0a473a3b71e676413058f7f79c5 100644 (file)
@@ -236,7 +236,7 @@ static void test_pt_update(struct xe_migrate *m, struct xe_bo *pt,
        xe_map_memset(xe, &pt->vmap, 0, (u8)expected, pt->size);
 
        then = ktime_get();
-       fence = xe_migrate_update_pgtables(m, NULL, NULL, m->q, &update, 1,
+       fence = xe_migrate_update_pgtables(m, m->q->vm, NULL, m->q, &update, 1,
                                           NULL, 0, &pt_update);
        now = ktime_get();
        if (sanity_fence_failed(xe, fence, "Migration pagetable update", test))