Skip to content

tests/intel/xe_vm: Add support for overcommit tests

Sobin Thomas igt-dev 13 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest2 patches 2 repliesIn review
  2. v122 patches 1 replySuperseded
  3. v112 patches 1 replySuperseded
Earlier versions · 10
VersionPostedPatchesRepliesStatus
v102 patches2 repliesSuperseded
v93 patches2 repliesSuperseded
v83 patches1 replySuperseded
v7 posting 3/33 patches3 repliesSuperseded
v7 posting 2/33 patches0 repliesSuperseded
v7 posting 1/33 patches0 repliesSuperseded
v62 patches0 repliesSuperseded
v4 posting 2/22 patches3 repliesSuperseded
v4 posting 1/22 patches0 repliesSuperseded
v32 patches2 repliesSuperseded

Patches in v13 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/xe: Add failable variant of xe_vm_bind_lr_sync()lib/xe/xe_ioctl.c lib/xe/xe_ioctl.h+27 -100 replies
2/2tests/intel/xe_vm: Add support for overcommit teststests/intel/xe_vm.c+390 -10 replies

Reviews trailers per patch

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

PatchThomas Hellström
1/2R-b
2/2R-b

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

Read the v13 thread

Cover letter [PATCH i-g-t v13 0/2] tests/intel/xe_vm: Add support for overcommit tests

Current tests focus on VM creation and basic mode selection, but do not cover overcommit scenarios.

This change adds tests to verify overcommit behavior across different VM modes.

Non-fault mode tests:
- vram-lr-defer: DEFER_BACKING rejects overcommit at bind time
- vram-lr-external-nodefer: Long-running mode with an external BO and no deferred backing
- vram-no-lr: Non-long-running mode

Fault mode tests:
- vram-lr-fault: Fault handling allows graceful overcommit via page faults
- vram-lr-fault-no-overcommit: Verifies NO_VM_OVERCOMMIT blocks same-VM BO eviction during VM_BIND, while still allowing eviction during page-fault OOM handling

These tests validate that VMs respond correctly to memory pressure based on their configuration—by rejecting at bind time, failing during execution, or handling overcommit gracefully via page faults.

Currently, overcommit behavior is tested for VRAM only.

--------------------------------------
Link (historical context):
https://patchwork.freedesktop.org/series/161557/

Sobin Thomas (2):
lib/xe: Add failable variant of xe_vm_bind_lr_sync() tests/intel/xe_vm: Add support for overcommit tests

 lib/xe/xe_ioctl.c   |  35 ++--
 lib/xe/xe_ioctl.h   |   2 +
 tests/intel/xe_vm.c | 391 +++++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 417 insertions(+), 11 deletions(-)
Signature · 1 line
2.52.0