Skip to content

tests/xe: Add xe_page_reclaim test suite

Brian Nguyen igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/xe: Add page reclaim testtests/intel/xe_page_reclaim.c tests/meson.build+442 -01 reply
2/4tests/xe: Add random page reclaim subtesttests/intel/xe_page_reclaim.c+151 -01 reply
3/4tests/xe: Add transient display PRL skiptests/intel/xe_page_reclaim.c+87 -01 reply
4/4tests/xe: Add large VMA range tests for better coveragetests/intel/xe_page_reclaim.c+147 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchXin Wang
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] tests/xe: Add xe_page_reclaim test suite

Page Reclamation is a Xe3p feature that optimizes TLB invalidations by targeting only the specific physical pages being unmapped, rather than issuing a full PPC flush. With Page Reclamation, the driver maintains a Page Reclaim List (PRL), on the backing pages of a VMA range, which is passed into the hardware, limiting the flush to only the affected pages.

PRL supports up to 512 entries and beyond that results in a fallback to full TLB invalidation, and invalidating the PRL. The page reclamation test cases validate different combinations of the possible VMA ranges.

The primary source of validation of these cases is derived from the gt_stats in debugfs to confirm the proper PRL generation.

Brian Nguyen (4):
tests/xe: Add page reclaim test
tests/xe: Add random page reclaim subtest tests/xe: Add transient display PRL skip tests/xe: Add large VMA range tests for better coverage

 tests/intel/xe_page_reclaim.c | 826 ++++++++++++++++++++++++++++++++++
 tests/meson.build             |   1 +
 2 files changed, 827 insertions(+)
 create mode 100644 tests/intel/xe_page_reclaim.c
Signature · 1 line
2.43.0