Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add PCI configuration tests for SR-IOV VFs
@ 2026-09-21 14:37 Piórkowski, Piotr
  2026-09-21 14:37 ` [PATCH v2 1/4] lib/igt_pci: Add raw configuration space helpers Piórkowski, Piotr
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Piórkowski, Piotr @ 2026-09-21 14:37 UTC (permalink / raw)
  To: igt-dev; +Cc: Piotr Piórkowski

From: Piotr Piórkowski <piotr.piorkowski@intel.com>

This series introduces PCI configuration space tests for SR-IOV Virtual Functions.
It verifies the required values and read-only fields in the common PCI header, BARs,
PCI Express capabilities, and optional Power Management, AER, and ATS capabilities.
The series also adds the PCI helpers needed to read raw configuration space and find
standard and extended capabilities.

v1 -> v2:
- Dropped the unused find_pci_ext_cap_offset() helper.
- Registered sriov_pci_config in tests/meson.build.
- Enabled the VF and read its configuration space once in the fixture
  instead of repeating the setup for every subtest.
- Restored the driver autoprobe state and disabled the VF in the final
  fixture.
- Removed redundant informational messages.
- Simplified subtest descriptions while retaining detailed documentation.
- Corrected PCI register macro names for compatibility with pci_regs.h.
- Improved malformed conventional and extended capability chain handling.
- Added unit tests for valid, invalid, cyclic, and boundary capability
  chains.
- Added sriov_pci_config to the Xe CI blocklist as a separate patch,
  since it is intended for HW verification rather than recurring CI runs.

Piotr Piórkowski (4):
  lib/igt_pci: Add raw configuration space helpers
  tests/sriov_pci_config: Add VF core config checks
  tests/sriov_pci_config: Add optional capability checks
  intel-ci: Block igt@sriov_pci_config.*

 lib/igt_pci.c                   |  90 +++++++++
 lib/igt_pci.h                   |   8 +-
 lib/tests/igt_pci.c             |  66 +++++++
 lib/tests/meson.build           |   1 +
 tests/intel-ci/xe.blocklist.txt |   1 +
 tests/meson.build               |   1 +
 tests/sriov_pci_config.c        | 320 ++++++++++++++++++++++++++++++++
 7 files changed, 486 insertions(+), 1 deletion(-)
 create mode 100644 lib/tests/igt_pci.c
 create mode 100644 tests/sriov_pci_config.c

-- 
2.34.1


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

end of thread, other threads:[~2026-09-28 12:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-21 14:37 [PATCH v2 0/4] Add PCI configuration tests for SR-IOV VFs Piórkowski, Piotr
2026-09-21 14:37 ` [PATCH v2 1/4] lib/igt_pci: Add raw configuration space helpers Piórkowski, Piotr
2026-09-22 11:00   ` Bernatowicz, Marcin
2026-09-21 14:37 ` [PATCH v2 2/4] tests/sriov_pci_config: Add VF core config checks Piórkowski, Piotr
2026-09-28 12:46   ` [v2,2/4] " Laguna, Lukasz
2026-09-21 14:37 ` [PATCH v2 3/4] tests/sriov_pci_config: Add optional capability checks Piórkowski, Piotr
2026-09-28 12:49   ` [v2,3/4] " Laguna, Lukasz
2026-09-21 14:37 ` [PATCH v2 4/4] intel-ci: Block igt@sriov_pci_config.* Piórkowski, Piotr
2026-09-28 12:50   ` [v2,4/4] " Laguna, Lukasz

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