[Intel-xe] [PATCH] drm/xe/tests: Fix migrate test

Welty, Brian brian.welty at intel.com
Tue Nov 7 20:29:56 UTC 2023



On 11/7/2023 11:37 AM, 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: Brian Welty <brian.welty 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))


More information about the Intel-xe mailing list