All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Add PCI configuration tests for SR-IOV VFs
@ 2026-10-02 11:33 Piórkowski, Piotr
  2026-10-02 11:33 ` [PATCH v4 1/4] lib/igt_pci: Add raw configuration space helpers Piórkowski, Piotr
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Piórkowski, Piotr @ 2026-10-02 11:33 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.

v3 -> v4:
- Added igt_pci_regs.h with the PCI register definitions used by the
  helpers and the test, instead of relying on linux/pci_regs.h, which
  may be too old on some distributions.
- Used a BAR type specific attribute mask when validating the VF BARs,
  so the address bits of an I/O BAR are no longer masked out along with
  the memory BAR attribute bits.

v2 -> v3:
- Shared the standard capability list walk between find_pci_cap_offset()
  and igt_pci_config_raw_find_cap_offset().
- Masked the reserved low bits of capability pointers instead of
  rejecting them.
- Reported an inaccessible (0xff) capability pointer as -ENODEV.
- Stopped the extended capability walk on an all-ones header.
- Documented the remaining raw configuration space helpers.
- Used PCI_CFG_SPACE_EXP_SIZE from linux/pci_regs.h instead of a local
  definition.
- Moved the test state from globals to igt_main().
- Rejected a 64-bit memory BAR type in BAR5.

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                   | 191 +++++++++++++++++--
 lib/igt_pci.h                   |   7 +-
 lib/igt_pci_regs.h              |  84 +++++++++
 lib/tests/igt_pci.c             |  76 ++++++++
 lib/tests/meson.build           |   1 +
 tests/intel-ci/xe.blocklist.txt |   1 +
 tests/meson.build               |   1 +
 tests/sriov_pci_config.c        | 324 ++++++++++++++++++++++++++++++++
 8 files changed, 665 insertions(+), 20 deletions(-)
 create mode 100644 lib/igt_pci_regs.h
 create mode 100644 lib/tests/igt_pci.c
 create mode 100644 tests/sriov_pci_config.c

-- 
2.34.1


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

end of thread, other threads:[~2026-10-12  9:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 11:33 [PATCH v4 0/4] Add PCI configuration tests for SR-IOV VFs Piórkowski, Piotr
2026-10-02 11:33 ` [PATCH v4 1/4] lib/igt_pci: Add raw configuration space helpers Piórkowski, Piotr
2026-10-06  9:37   ` Bernatowicz, Marcin
2026-10-02 11:33 ` [PATCH v4 2/4] tests/sriov_pci_config: Add VF core config checks Piórkowski, Piotr
2026-10-12  9:33   ` [v4,2/4] " Laguna, Lukasz
2026-10-02 11:33 ` [PATCH v4 3/4] tests/sriov_pci_config: Add optional capability checks Piórkowski, Piotr
2026-10-02 11:33 ` [PATCH v4 4/4] intel-ci: Block igt@sriov_pci_config.* Piórkowski, Piotr
2026-10-02 12:37 ` ✓ Xe.CI.BAT: success for Add PCI configuration tests for SR-IOV VFs Patchwork
2026-10-02 12:56 ` ✓ i915.CI.BAT: " Patchwork
2026-10-02 13:59 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-10-03 10:52 ` ✗ 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.