Commit fa85b083 authored by Pallavi Mishra's avatar Pallavi Mishra Committed by Rodrigo Vivi

drm/xe/tests: Fix migrate test

Pass a valid vm to xe_migrate_update_pgtables.

Resolves NPD crash seen with igt@xe_live_ktest@migrate
Reviewed-by: default avatarBrian Welty <brian.welty@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Signed-off-by: default avatarPallavi Mishra <pallavi.mishra@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 86017f38
...@@ -236,7 +236,7 @@ static void test_pt_update(struct xe_migrate *m, struct xe_bo *pt, ...@@ -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); xe_map_memset(xe, &pt->vmap, 0, (u8)expected, pt->size);
then = ktime_get(); 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); NULL, 0, &pt_update);
now = ktime_get(); now = ktime_get();
if (sanity_fence_failed(xe, fence, "Migration pagetable update", test)) if (sanity_fence_failed(xe, fence, "Migration pagetable update", test))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment