Skip to content

tests/intel/xe_svm: Add tests for Shared Virtual Memory (SVM)

Bommu Krishnaiah igt-dev intel-xe 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 16 repliesIn review
  2. v210 patches 3 repliesSuperseded
  3. v1 RFC2 patches 7 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10lib/xe/xe_util: Introduce helper functions for buffer creation and command submission etclib/xe/xe_util.c lib/xe/xe_util.h+184 -02 replies
2/10tests/intel/xe_svm: basic xe-basic testtests/intel/xe_svm.c tests/meson.build+100 -02 replies
3/10tests/intel/xe_svm: Add SVM basic tests using malloc and mmapinclude/drm-uapi/xe_drm.h tests/intel/xe_svm.c+53 -02 replies
4/10tests/intel/xe_svm: add random access test for SVMtests/intel/xe_svm.c+41 -01 reply
5/10tests/intel/xe_svm: add huge page access test for SVMtests/intel/xe_svm.c+50 -01 reply
6/10tests/intel/xe_svm: Add support for GPU atomic access test for svmlib/xe/xe_util.c lib/xe/xe_util.h tests/intel/xe_svm.c+83 -01 reply
7/10tests/intel/xe_svm: Add svm-invalid-va test to verify SVM functionality with invalid address accesstests/intel/xe_svm.c+36 -01 reply
8/10tests/intel/xe_svm: Add svm-benchmark test to measure SVM performance with a simple benchmarklib/xe/xe_util.c lib/xe/xe_util.h tests/intel/xe_svm.c+87 -01 reply
9/10tests/intel/xe_svm: Add svm-mprotect test to verify SVM functionality with read-only memory accesstests/intel/xe_svm.c+39 -00 replies
10/10tests/intel/xe_svm: Add svm-sparse-access test to verify sparsely accessing two memory locations with SVMlib/xe/xe_util.c lib/xe/xe_util.h tests/intel/xe_svm.c+59 -00 replies

Reviews trailers per patch

3 of 10 patches have a Reviewed-by or Acked-by.

PatchOak Zeng
1/10R-b
2/10R-b R-b
3/10
4/10
5/10
6/10
7/10R-b
8/10
9/10
10/10

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 00/10] tests/intel/xe_svm: Add tests for Shared Virtual Memory (SVM)

Introduce helper functions for object creation, binding, submission, and destruction, applicable for SVM and other tests

xe-basic test is validating the helper function introduced in 'lib/xe/xe_util: helper function'

svm test cases:
svm-basic-malloc
svm-basic-mmap
svm-random-access
svm-huge-page
svm-atomic-access
svm-atomic-access
svm_invalid_va
svm-mprotect
svm-benchmark
svm-sparse-access

svm kernel implimentation:
https://gitlab.freedesktop.org/oak/xe-kernel-driver-svm.git
branch: origin/drm-xe-next-svm-unify-userptr

v2 igt patch: https://patchwork.freedesktop.org/series/133096/

Note: xe-basic test is validated without SVM. Remaining tests are not validated because the SVM driver code is still under development

Bommu Krishnaiah (10):
lib/xe/xe_util: Introduce helper functions for buffer creation and
command submission etc
tests/intel/xe_svm: basic xe-basic test tests/intel/xe_svm: Add SVM basic tests using malloc and mmap tests/intel/xe_svm: add random access test for SVM tests/intel/xe_svm: add huge page access test for SVM tests/intel/xe_svm: Add support for GPU atomic access test for svm tests/intel/xe_svm: Add svm-invalid-va test to verify SVM
functionality with invalid address access
tests/intel/xe_svm: Add svm-benchmark test to measure SVM performance
with a simple benchmark
tests/intel/xe_svm: Add svm-mprotect test to verify SVM functionality
with read-only memory access
tests/intel/xe_svm: Add svm-sparse-access test to verify sparsely
accessing two memory locations with SVM

 include/drm-uapi/xe_drm.h |   1 +
 lib/xe/xe_util.c          | 214 +++++++++++++++++
 lib/xe/xe_util.h          |  40 ++++
 tests/intel/xe_svm.c      | 476 ++++++++++++++++++++++++++++++++++++++
 tests/meson.build         |   1 +
 5 files changed, 732 insertions(+)
 create mode 100644 tests/intel/xe_svm.c
Signature · 1 line
2.25.1