[PATCH 0/4] drm/xe: Update migration tests.
Maarten Lankhorst
dev at lankhorst.se
Fri May 2 09:35:09 UTC 2025
Now that we have a reliable migration implementation, it makes sense to update
and clean up the tests.
I'm also adding a testcase that copies 1/3rd of VRAM to sysmem or another buffer,
to measure the performance impact of our implementation of migration.
This makes it easier to see if our migration is performant, or how changes to optimize
it affect the speed, compared to a direct copy of the same buffer, using the same commands,
but without our VM mapping done in migration.
For completeness, all 4 paths are tested:
- VRAM -> VRAM
- VRAM -> sysmem
- sysmem -> VRAM
- sysmem -> sysmem (same buffer, don't care about contents)
During my first testing, copying a buffer through migration is about 7% slower than performing the
same copy directly. This is likely the result from "<flush>update PT<flush>copy 8MB<flush> next job to repeat" compared
to "copy the entire BO in 8MB chunks in a single job" repeatedly.
Maarten Lankhorst (4):
drm/xe: Simplify migration kunit tests
drm/xe: Silence migrate debug message.
drm/xe: Fix small leak in migration error path.
drm/xe: Add migrate performance kunit test
drivers/gpu/drm/xe/tests/xe_migrate.c | 401 +++++++++++++++++++-------
drivers/gpu/drm/xe/xe_migrate.c | 64 ++--
2 files changed, 338 insertions(+), 127 deletions(-)
--
2.45.2
More information about the Intel-xe
mailing list