diff options
author | Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> | 2023-03-31 19:40:12 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:31:10 +0300 |
commit | 370997d168d64e84c12164bffdd326fd240a9790 (patch) | |
tree | 15de266552e3982ef98238e4a925f9c8060ff67a /drivers/gpu/drm/xe/tests/xe_migrate.c | |
parent | f7339fe79654c2b63634d65eb72c089d45029065 (diff) | |
download | linux-370997d168d64e84c12164bffdd326fd240a9790.tar.xz |
drm/xe/tests: Set correct expectation
In xe_migrate_sanity_kunit test, use correct expected value as
the expected value was not only used for the xe_migrate_clear(),
but also for the xe_migrate_copy() operation.
v2: Add 'Fixes' tag and update commit text
Fixes: 11a2407ed5f0 ("drm/xe: Stop accepting value in xe_migrate_clear")
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/tests/xe_migrate.c')
-rw-r--r-- | drivers/gpu/drm/xe/tests/xe_migrate.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; fence = xe_migrate_copy(m, sysmem, sysmem->ttm.resource, bo->ttm.resource); if (!sanity_fence_failed(xe, fence, big ? "Copying big bo sysmem -> vram" : |