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