Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] PCI: endpoint tests: Make doorbell test capability-aware
@ 2026-02-15 15:03 Koichiro Den
  2026-02-15 15:03 ` [PATCH 1/3] PCI: endpoint: pci-epf-test: Advertise dynamic inbound mapping support Koichiro Den
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Koichiro Den @ 2026-02-15 15:03 UTC (permalink / raw)
  To: mani, kwilczynski, kishon, bhelgaas, shuah, cassel, Frank.Li
  Cc: linux-pci, linux-kernel, linux-kselftest

Hi,

The pci-epf-test / pci_endpoint_test doorbell path requires the endpoint
controller (EPC) driver to support dynamic inbound mapping. Without it, the
host-side test can run anyway and fail in vain.

This series makes the doorbell test capability-aware by:
  - Advertising dynamic inbound mapping support from pci-epf-test via a
    new CAP_DYNAMIC_INBOUND_MAPPING bit.
  - Returning -EOPNOTSUPP for PCITEST_DOORBELL when the endpoint does not
    advertise this capability.
  - Skipping the kselftest doorbell case when -EOPNOTSUPP is returned.

This small series is derived from Niklas's suggestion:
  https://lore.kernel.org/linux-pci/aYte-7hTxb7kXNlQ@ryzen/

Thanks,

Koichiro Den (3):
  PCI: endpoint: pci-epf-test: Advertise dynamic inbound mapping support
  misc: pci_endpoint_test: Gate doorbell test on dynamic inbound mapping
  selftests: pci_endpoint: Skip doorbell test when unsupported

 drivers/misc/pci_endpoint_test.c                         | 4 ++++
 drivers/pci/endpoint/functions/pci-epf-test.c            | 4 ++++
 tools/testing/selftests/pci_endpoint/pci_endpoint_test.c | 2 ++
 3 files changed, 10 insertions(+)

-- 
2.51.0


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-15 15:03 [PATCH 0/3] PCI: endpoint tests: Make doorbell test capability-aware Koichiro Den
2026-02-15 15:03 ` [PATCH 1/3] PCI: endpoint: pci-epf-test: Advertise dynamic inbound mapping support Koichiro Den
2026-02-16 10:38   ` Niklas Cassel
2026-02-15 15:03 ` [PATCH 2/3] misc: pci_endpoint_test: Gate doorbell test on dynamic inbound mapping Koichiro Den
2026-02-16 10:38   ` Niklas Cassel
2026-02-15 15:03 ` [PATCH 3/3] selftests: pci_endpoint: Skip doorbell test when unsupported Koichiro Den
2026-02-16 10:39   ` Niklas Cassel
2026-02-24 10:32 ` [PATCH 0/3] PCI: endpoint tests: Make doorbell test capability-aware Manivannan Sadhasivam

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