Skip to content

pci_endpoint_test: Add support for PCITEST_IRQ_TYPE_AUTO

Niklas Cassel linux-pci 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7PCI: endpoint: pcitest: Add IRQ_TYPE_* defines to UAPI headerinclude/uapi/linux/pcitest.h+5 -00 replies
2/7misc: pci_endpoint_test: Use IRQ_TYPE_* defines from UAPI headerdrivers/misc/pci_endpoint_test.c+23 -230 replies
3/7selftests: pci_endpoint: Use IRQ_TYPE_* defines from UAPI headertools/testing/selftests/pci_endpoint/pci_endpoint_test.c+9 -90 replies
4/7PCI: endpoint: Add intx_capable to epc_featuresinclude/linux/pci-epc.h+1 -04 replies
5/7PCI: dw-rockchip: EP mode cannot raise INTx interruptsdrivers/pci/controller/dwc/pcie-dw-rockchip.c+2 -00 replies
6/7PCI: endpoint: pci-epf-test: Expose supported IRQ types in CAPS registerdrivers/pci/endpoint/functions/pci-epf-test.c+12 -00 replies
7/7misc: pci_endpoint_test: Add support for PCITEST_IRQ_TYPE_AUTOdrivers/misc/pci_endpoint_test.c include/uapi/linux/pcitest.h tools/testing/selftests/pci_endpoint/pci_endpoint_test.c+27 -115 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] pci_endpoint_test: Add support for PCITEST_IRQ_TYPE_AUTO

Hello all,

For the PCITEST_WRITE, PCITEST_READ, and PCITEST_COPY test cases, tools/testing/selftests/pci_endpoint/pci_endpoint_test.c unconditionally uses MSIs, even for EPC drivers that do not support MSI. (E.g. an EPC could support only INTx, or only MSI-X.)

Thus, improve tools/testing/selftests/pci_endpoint/pci_endpoint_test.c to use any supported IRQ type (by introducing a new IRQ type PCITEST_IRQ_TYPE_AUTO).

Note that it is only the PCITEST_WRITE, PCITEST_READ, and PCITEST_COPY test cases that will use this new IRQ type. (PCITEST_MSI, PCITEST_MSIX, and PCITEST_LEGACY_IRQ actually test a specific IRQ type, so these test cases must still use a specific IRQ type.)

Kind regards,
Niklas

Niklas Cassel (7):
PCI: endpoint: pcitest: Add IRQ_TYPE_* defines to UAPI header
misc: pci_endpoint_test: Use IRQ_TYPE_* defines from UAPI header
selftests: pci_endpoint: Use IRQ_TYPE_* defines from UAPI header
PCI: endpoint: Add intx_capable to epc_features
PCI: dw-rockchip: EP mode cannot raise INTx interrupts
PCI: endpoint: pci-epf-test: Expose supported IRQ types in CAPS
register
misc: pci_endpoint_test: Add support for PCITEST_IRQ_TYPE_AUTO

 drivers/misc/pci_endpoint_test.c              | 69 +++++++++++--------
 drivers/pci/controller/dwc/pcie-dw-rockchip.c |  2 +
 drivers/pci/endpoint/functions/pci-epf-test.c | 12 ++++
 include/linux/pci-epc.h                       |  1 +
 include/uapi/linux/pcitest.h                  |  6 ++
 .../pci_endpoint/pci_endpoint_test.c          | 24 +++----
 6 files changed, 75 insertions(+), 39 deletions(-)
Signature · 1 line
2.48.1