[Intel-xe] [PATCH 2/3] drm/xe/tests: Set correct expectation

Niranjana Vishwanathapura niranjana.vishwanathapura at intel.com
Mon Apr 3 18:45:10 UTC 2023


On Fri, Mar 31, 2023 at 10:38:58PM -0700, Lucas De Marchi wrote:
>On Fri, Mar 31, 2023 at 08:02:59PM -0700, Niranjana Vishwanathapura wrote:
>>In xe_migrate_sanity_kunit test, use correct expected value from
>>xe_migrate_copy() operation.
>>
>>Reviewed-by: Matthew Brost <matthew.brost at intel.com>
>>Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>
>>---
>>drivers/gpu/drm/xe/tests/xe_migrate.c | 1 +
>>1 file changed, 1 insertion(+)
>>
>>diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c
>>index 90f4e1c4f029..862d11b2210f 100644
>>--- a/drivers/gpu/drm/xe/tests/xe_migrate.c
>>+++ b/drivers/gpu/drm/xe/tests/xe_migrate.c
>>@@ -147,6 +147,7 @@ static void test_copy(struct xe_migrate *m, struct xe_bo *bo,
>>	xe_map_memset(xe, &sysmem->vmap, 0, 0xc0, sysmem->size);
>>	xe_map_memset(xe, &bo->vmap, 0, 0xd0, bo->size);
>>
>>+	expected = 0xc0c0c0c0c0c0c0c0;
>
>Fixes: c1a4e05c9aeb ("drm/xe: Stop accepting value in xe_migrate_clear")
>
>as the expected value was not only used for the xe_migrate_clear(), but
>also for the xe_migrate_copy.
>

Thanks, updated and applied.

Niranjana

>Lucas De Marchi
>
>>	fence = xe_migrate_copy(m, sysmem, sysmem->ttm.resource,
>>				bo->ttm.resource);
>>	if (!sanity_fence_failed(xe, fence, big ? "Copying big bo sysmem -> vram" :
>>-- 
>>2.21.0.rc0.32.g243a4c7e27
>>


More information about the Intel-xe mailing list