[PATCH 0/3] PCI: endpoint tests: Make doorbell test capability-aware

Koichiro Den posted 3 patches 1 month, 2 weeks ago
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(+)
[PATCH 0/3] PCI: endpoint tests: Make doorbell test capability-aware
Posted by Koichiro Den 1 month, 2 weeks ago
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
Re: [PATCH 0/3] PCI: endpoint tests: Make doorbell test capability-aware
Posted by Manivannan Sadhasivam 1 month, 1 week ago
On Mon, 16 Feb 2026 00:03:31 +0900, Koichiro Den wrote:
> 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.
> 
> [...]

Applied, thanks!

[1/3] PCI: endpoint: pci-epf-test: Advertise dynamic inbound mapping support
      commit: 9a940a3d08b25cf8e864785ee06b65756d6e4573
[2/3] misc: pci_endpoint_test: Gate doorbell test on dynamic inbound mapping
      commit: 51fba4aa66192fa65a31f213218167d9af326f1e
[3/3] selftests: pci_endpoint: Skip doorbell test when unsupported
      commit: b4a31737679576dc8aa6de43d3c10bfad7d3f57e

Best regards,
-- 
Manivannan Sadhasivam <mani@kernel.org>