[Intel-xe] [PATCH] drm/xe/tests: Fix migrate test
Matthew Brost
matthew.brost at intel.com
Tue Nov 7 13:31:27 UTC 2023
On Wed, Nov 08, 2023 at 01:07:51AM +0530, Pallavi Mishra wrote:
> Pass a valid vm to xe_migrate_update_pgtables.
>
> Resolves NPD crash seen with igt at xe_live_ktest@migrate
>
> Signed-off-by: Pallavi Mishra <pallavi.mishra at intel.com>
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/tests/xe_migrate.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c
> index c984307560ee..7aad09140d7e 100644
> --- a/drivers/gpu/drm/xe/tests/xe_migrate.c
> +++ b/drivers/gpu/drm/xe/tests/xe_migrate.c
> @@ -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))
> --
> 2.25.1
>
More information about the Intel-xe
mailing list