All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 i-g-t 0/6] Add SR-IOV exit-handler-based cleanup
@ 2026-06-15 10:32 Marcin Bernatowicz
  2026-06-15 10:32 ` [PATCH v2 i-g-t 1/6] lib/igt_device_sriov: Add generic SR-IOV exit cleanup helper Marcin Bernatowicz
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Marcin Bernatowicz @ 2026-06-15 10:32 UTC (permalink / raw)
  To: igt-dev; +Cc: adam.miszczak, jakub1.kolakowski, lukasz.laguna,
	Marcin Bernatowicz

This series adds SR-IOV exit-handler-based cleanup in SR-IOV test paths to
improve recovery when a test exits unexpectedly (for example, via SIGQUIT
from igt_runner), while preserving strict explicit teardown
in normal fixture flow.

Goal: keep PF state restoration robust across failures:
- disable VFs on exit
- restore sriov_drivers_autoprobe state
- restore XE SR-IOV admin scheduling defaults when modified by the test
- keep explicit fixture teardown authoritative, and clear the exit handler
  only after teardown succeeds

Series is split by teardown pattern to keep review and maintenance simple:
- no-callback users
- XE admin callback users
- FLR-specific callback users, plus helper refactor to reduce duplication

v2: No need for restore_autoprobe option,
    just always restore on exit. (Lukasz)

Marcin Bernatowicz (6):
  lib/igt_device_sriov: Add generic SR-IOV exit cleanup helper
  lib/xe/xe_sriov_admin: Add SR-IOV admin exit cleanup restore helper
  tests/sriov_basic: Arm SR-IOV exit cleanup
  tests/xe: Arm SR-IOV exit cleanup
  tests/xe: Arm SR-IOV exit cleanup with callback
  tests/intel/xe_sriov_flr: Arm SR-IOV exit cleanup

 lib/igt_sriov_device.c                   | 91 ++++++++++++++++++++++++
 lib/igt_sriov_device.h                   |  5 ++
 lib/xe/xe_sriov_admin.c                  | 21 ++++++
 lib/xe/xe_sriov_admin.h                  |  2 +
 tests/intel/xe_pmu.c                     |  4 ++
 tests/intel/xe_sriov_admin.c             |  4 ++
 tests/intel/xe_sriov_auto_provisioning.c |  2 +
 tests/intel/xe_sriov_flr.c               | 42 ++++++++---
 tests/intel/xe_sriov_scheduling.c        |  4 ++
 tests/intel/xe_sriov_vram.c              |  2 +
 tests/sriov_basic.c                      |  2 +
 11 files changed, 170 insertions(+), 9 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-06-16  1:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 10:32 [PATCH v2 i-g-t 0/6] Add SR-IOV exit-handler-based cleanup Marcin Bernatowicz
2026-06-15 10:32 ` [PATCH v2 i-g-t 1/6] lib/igt_device_sriov: Add generic SR-IOV exit cleanup helper Marcin Bernatowicz
2026-06-15 10:32 ` [PATCH v2 i-g-t 2/6] lib/xe/xe_sriov_admin: Add SR-IOV admin exit cleanup restore helper Marcin Bernatowicz
2026-06-15 10:32 ` [PATCH v2 i-g-t 3/6] tests/sriov_basic: Arm SR-IOV exit cleanup Marcin Bernatowicz
2026-06-15 10:32 ` [PATCH v2 i-g-t 4/6] tests/xe: " Marcin Bernatowicz
2026-06-15 10:32 ` [PATCH v2 i-g-t 5/6] tests/xe: Arm SR-IOV exit cleanup with callback Marcin Bernatowicz
2026-06-15 10:32 ` [PATCH v2 i-g-t 6/6] tests/intel/xe_sriov_flr: Arm SR-IOV exit cleanup Marcin Bernatowicz
2026-06-15 17:36 ` ✓ i915.CI.BAT: success for Add SR-IOV exit-handler-based cleanup (rev2) Patchwork
2026-06-15 17:36 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-15 18:44 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-16  1:02 ` ✗ i915.CI.Full: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.