drm/xe: Update migration tests.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | drm/xe: Simplify migration kunit testsdrivers/ | +72 | 1 reply | |
| 2/4 | drm/xe: Silence migrate debug message.drivers/ | +0 | 1 reply | |
| 3/4 | drm/xe: Fix small leak in migration error path.drivers/ | +35 | 1 reply | |
| 4/4 | drm/xe: Add migrate performance kunit testdrivers/ | +235 | 1 reply |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Matthew Brost |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] drm/xe: Update migration tests.
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(-)
Signature · 1 line
2.45.2