Skip to content

Madvise Tests in IGT

[email protected] igt-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest5 patches 4 repliesIn review
  2. v115 patches 4 repliesSuperseded
  3. v95 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v85 patches1 replySuperseded
v75 patches0 repliesSuperseded
v15 patches0 repliesSuperseded

Changes in v12 from the cover letter

- Incorporated review comments (Matt B)
- Patch-1 commit aligned with KMD uAPI commit

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm-uapi/xe: Sync with madvise interfaceinclude/drm-uapi/xe_drm.h+285 -50 replies
2/5lib/xe: Add xe_vm_madvise ioctl supportlib/xe/xe_ioctl.c lib/xe/xe_ioctl.h+61 -10 replies
3/5lib/xe: Add Helper to get memory attributeslib/xe/xe_ioctl.c lib/xe/xe_ioctl.h+96 -01 reply
4/5tests/intel/xe_exec_system_allocator: Add madvise-swizzle testtests/intel/xe_exec_system_allocator.c+35 -02 replies
5/5tests/intel/xe_exec_system_allocator: Add atomic_batch test in IGTtests/intel/xe_exec_system_allocator.c+366 -371 reply

Reviews trailers per patch

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

PatchPravalika GurramMatthew Brost
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v12 thread

Cover letter [PATCH v12 0/5] Madvise Tests in IGT

From: Nishit Sharma <[email protected]>

Revision 1:
Added madvise tests in IGT which validate different features related to attributes passed. Madvise tests related to Atomic operation, Preferred Loc have been added and validated. Madvise tests are called as part of different struct section and available as madvise-<test-name> in list of subtests.

v2:
- added back subtest which was deleted due to rebasing

v3:
- added variable deleted during rebase.

v4:
- Removed redundant loop for multi-vma test. Instead added multi-vma check in which is manipulating address, batch addreess only and the remaining execution is done as per default flow.
- Passed region DRM_XE_CONSULT_MEM_ADVISE_PREF_LOC in prefetch tests.

v5:
- Incorporated review comments
- Removed section from test which was not required
- Added subtests description
- Tests executed on latest drm tip

v6:
- Incorporated review comments
- Removed dead code checked-in due to rebasing
- Added new subtests in section
- Modified madvise subtests by adding flags
- Added description of new sub-tests
- Called helper functions from test_exec which performs

v7:
- Fixed code which was calling madvise op only for device mem
- Fixed warnings

v8:
- Done Code cleanup

v9:
- Moved madvise-swizzle section in main loop. Each pass can toggle between device/system memory
- Removed redundant code for writing data at location
- called helper in test_exec() for handling madvise-swizzle

v11:
- For maintaining patch series version parity with Patchwork set v11
- Sync latest uAPI KMD header

v12:
- Incorporated review comments (Matt B)
- Patch-1 commit aligned with KMD uAPI commit

Nishit Sharma (5):
drm-uapi/xe: Sync with madvise interface
lib/xe: Add xe_vm_madvise ioctl support
lib/xe: Add Helper to get memory attributes tests/intel/xe_exec_system_allocator: Add madvise-swizzle test tests/intel/xe_exec_system_allocator: Add atomic_batch test in IGT

 include/drm-uapi/xe_drm.h              | 290 +++++++++++++++-
 lib/xe/xe_ioctl.c                      | 149 +++++++++
 lib/xe/xe_ioctl.h                      |   9 +-
 tests/intel/xe_exec_system_allocator.c | 436 +++++++++++++++++++++++--
 4 files changed, 842 insertions(+), 42 deletions(-)
Signature · 1 line
2.43.0