public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v2 i-g-t 0/4] PCI driver helpers and xe-vfio-pci FLR improvement
@ 2026-02-03 15:33 Marcin Bernatowicz
  2026-02-03 15:33 ` [PATCH v2 i-g-t 1/4] lib/igt_sriov_device: Add helper to get VF PCI slot address Marcin Bernatowicz
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Marcin Bernatowicz @ 2026-02-03 15:33 UTC (permalink / raw)
  To: igt-dev
  Cc: jakub1.kolakowski, lukasz.laguna, michal.winiarski,
	Marcin Bernatowicz

This series improves PCI driver management infrastructure in IGT
and updates the xe_sriov_flr test to rely on xe-vfio-pci FLR semantics.

It introduces generic PCI driver helpers for driver_override handling
and explicit bind/unbind operations.
Adds a small SR-IOV utility to resolve VF PCI slot addresses.
Fixes igt_kmod PCI bind/unbind logic to correctly handle module vs driver
name mismatches (e.g. xe_vfio_pci vs xe-vfio-pci), marking those helpers
as deprecated in favor of driver-level APIs.

The xe_sriov_flr test is updated to attach VFs to xe-vfio-pci
before initiating FLR, allowing the test to wait for FLR completion
via the driver.

V2 -> V1:
- Add igt_pci_get_bound_driver_name() to query the currently bound PCI
  driver via the /sys/bus/pci/devices/<BDF>/driver symlink.
- Extend igt_pci_bind_driver_override() and igt_pci_unbind_driver_override()
  with a timeout_ms parameter so callers can wait for bind/unbind to
  actually complete, instead of relying on drivers_probe write success.
  drivers_probe only initiates an async reprobe, so a successful write
  does not mean bind/unbind succeeded - verify the effective bound driver
  with a timeout.
- Unbind VFs only if they were successfully bound.

Marcin Bernatowicz (4):
  lib/igt_sriov_device: Add helper to get VF PCI slot address
  lib/igt_pci: Add generic PCI driver override and bind/unbind helpers
  tests/intel/xe_sriov_flr: Attach VFs to xe-vfio-pci before initiating
    FLR
  lib/igt_kmod: Fix PCI bind/unbind for module/driver name mismatch

 lib/igt_kmod.c             |  90 +++++-----
 lib/igt_pci.c              | 351 +++++++++++++++++++++++++++++++++++++
 lib/igt_pci.h              |  13 +-
 lib/igt_sriov_device.c     |  25 +++
 lib/igt_sriov_device.h     |   1 +
 tests/intel/xe_sriov_flr.c |  65 +++++++
 6 files changed, 505 insertions(+), 40 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-02-05 10:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-03 15:33 [PATCH v2 i-g-t 0/4] PCI driver helpers and xe-vfio-pci FLR improvement Marcin Bernatowicz
2026-02-03 15:33 ` [PATCH v2 i-g-t 1/4] lib/igt_sriov_device: Add helper to get VF PCI slot address Marcin Bernatowicz
2026-02-03 15:33 ` [PATCH v2 i-g-t 2/4] lib/igt_pci: Add generic PCI driver override and bind/unbind helpers Marcin Bernatowicz
2026-02-03 15:33 ` [PATCH v2 i-g-t 3/4] tests/intel/xe_sriov_flr: Attach VFs to xe-vfio-pci before initiating FLR Marcin Bernatowicz
2026-02-03 15:33 ` [PATCH v2 i-g-t 4/4] lib/igt_kmod: Fix PCI bind/unbind for module/driver name mismatch Marcin Bernatowicz
2026-02-03 17:16 ` ✗ Xe.CI.BAT: failure for PCI driver helpers and xe-vfio-pci FLR improvement (rev2) Patchwork
2026-02-03 17:35 ` ✓ i915.CI.BAT: success " Patchwork
2026-02-04  8:04 ` ✗ i915.CI.Full: failure " Patchwork
2026-02-04  9:30 ` ✗ Xe.CI.FULL: " Patchwork
2026-02-05 10:10   ` Bernatowicz, Marcin

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