public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v9 0/3] tests/intel/xe_vm: Add support for overcommit tests
@ 2026-03-30  8:01 Sobin Thomas
  2026-03-30  8:01 ` [PATCH i-g-t v9 1/3] drm-uapi/xe: sync with kernel header Sobin Thomas
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Sobin Thomas @ 2026-03-30  8:01 UTC (permalink / raw)
  To: igt-dev; +Cc: thomas.hellstrom, nishit.sharma, Sobin Thomas

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 (3):
  drm-uapi/xe: sync with kernel header
  lib/xe: Add failable variant of xe_vm_bind_lr_sync()
  tests/intel/xe_vm: Add support for overcommit tests

 include/drm-uapi/xe_drm.h |  22 +--
 lib/xe/xe_ioctl.c         |  41 +++-
 lib/xe/xe_ioctl.h         |   4 +
 tests/intel/xe_vm.c       | 394 +++++++++++++++++++++++++++++++++++++-
 4 files changed, 439 insertions(+), 22 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-04-02  7:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30  8:01 [PATCH i-g-t v9 0/3] tests/intel/xe_vm: Add support for overcommit tests Sobin Thomas
2026-03-30  8:01 ` [PATCH i-g-t v9 1/3] drm-uapi/xe: sync with kernel header Sobin Thomas
2026-03-30  8:01 ` [PATCH i-g-t v9 2/3] lib/xe: Add failable variant of xe_vm_bind_lr_sync() Sobin Thomas
2026-04-02  7:09   ` Hellstrom, Thomas
2026-03-30  8:01 ` [PATCH i-g-t v9 3/3] tests/intel/xe_vm: Add support for overcommit tests Sobin Thomas
2026-04-02  7:32   ` Hellstrom, Thomas
2026-03-31  1:04 ` ✓ Xe.CI.BAT: success for tests/intel/xe_vm: Add support for overcommit tests (rev5) Patchwork
2026-03-31  1:34 ` ✓ i915.CI.BAT: " Patchwork
2026-03-31  5:24 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-31  8:40 ` ✗ i915.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox