diff options
author | Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> | 2023-03-30 21:41:05 +0000 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-19 18:30:27 -0500 |
commit | f7339fe79654c2b63634d65eb72c089d45029065 (patch) | |
tree | c6657f3cb5bb8151129ba0ffc79696275af7f91e /drivers/gpu/drm/xe/tests | |
parent | 6b8ddaf3721e86bacc0be72bf12fa76233b9becf (diff) |
drm/xe/tests: Use proper batch base address
In xe_migrate_sanity_kunit test, use proper batch base address
by considering usm case.
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')
-rw-r--r-- | drivers/gpu/drm/xe/tests/xe_migrate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c index 17829f878757..90f4e1c4f029 100644 --- a/drivers/gpu/drm/xe/tests/xe_migrate.c +++ b/drivers/gpu/drm/xe/tests/xe_migrate.c @@ -35,8 +35,9 @@ static int run_sanity_job(struct xe_migrate *m, struct xe_device *xe, struct xe_bb *bb, u32 second_idx, const char *str, struct kunit *test) { + u64 batch_base = xe_migrate_batch_base(m, xe->info.supports_usm); struct xe_sched_job *job = xe_bb_create_migration_job(m->eng, bb, - m->batch_base_ofs, + batch_base, second_idx); struct dma_fence *fence; |