Skip to content

tests/intel/xe_madvise: Add atomic madvise subtests

Varun Gupta igt-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 4 repliesSuperseded
  3. v14 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Print pagefault count only when count changed (Nishit)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tests/intel/xe_madvise: Generalize metadata and group purgeable subteststests/intel/xe_madvise.c+49 -450 replies
2/4tests/intel/xe_madvise: Add atomic-device subtesttests/intel/xe_madvise.c+122 -10 replies
3/4tests/intel/xe_madvise: Add atomic-global subtesttests/intel/xe_madvise.c+87 -00 replies
4/4tests/intel/xe_madvise: Add atomic-cpu subtesttests/intel/xe_madvise.c+83 -00 replies

Reviews trailers per patch

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

PatchNishit Sharma
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 v3 thread

Cover letter [PATCH i-g-t v3 0/4] tests/intel/xe_madvise: Add atomic madvise subtests

Add three subtests to validate DRM_XE_MEM_RANGE_ATTR_ATOMIC madvise on fault-mode SVM VMAs:

atomic-device — GPU MI_ATOMIC_INC succeeds via fault handler atomic-global — CPU atomic increments + GPU MI_ATOMIC_INC with
fault-driven SMEM-to-VRAM migration
atomic-cpu — GPU MI_ATOMIC_INC rejected (-EACCES), engine reset

Patch 1 generalizes the test metadata and groups existing purgeable subtests so the atomic subtests can coexist without being gated on purgeable support.

v2:
- Add UNMAP of CPU_ADDR_MIRROR binding before xe_vm_destroy in all three atomic tests (Nishit)
- Add pagefault count print before/after exec in atomic-device and atomic-global (Nishit)
- Add comment explaining single-engine rationale in atomic-cpu (Nishit)
v3:
- Print pagefault count only when count changed (Nishit)

Varun Gupta (4):
tests/intel/xe_madvise: Generalize metadata and group purgeable
subtests
tests/intel/xe_madvise: Add atomic-device subtest tests/intel/xe_madvise: Add atomic-global subtest tests/intel/xe_madvise: Add atomic-cpu subtest

 tests/intel/xe_madvise.c | 381 ++++++++++++++++++++++++++++++++++-----
 1 file changed, 338 insertions(+), 43 deletions(-)
Signature · 1 line
2.43.0