]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: endpoint: pci-epf-test: Advertise dynamic inbound mapping support
authorKoichiro Den <den@valinux.co.jp>
Sun, 15 Feb 2026 15:03:32 +0000 (00:03 +0900)
committerManivannan Sadhasivam <mani@kernel.org>
Tue, 24 Feb 2026 10:30:39 +0000 (16:00 +0530)
commit9a940a3d08b25cf8e864785ee06b65756d6e4573
tree7d06f9a6dabf40eee3296c2cebb68022ccdfa363
parent1cba96c0a795124c3229293ed7b5b5765e66f259
PCI: endpoint: pci-epf-test: Advertise dynamic inbound mapping support

The doorbell test requires the EPC driver to support dynamic inbound
mapping so the host can map the doorbell target address into a BAR
aperture.

Expose epc_features->dynamic_inbound_mapping via a new
CAP_DYNAMIC_INBOUND_MAPPING bit in the pci-epf-test capability register,
so the host-side pci_endpoint_test driver can detect missing support and
return -EOPNOTSUPP instead of running the test fruitlessly.

Suggested-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Koichiro Den <den@valinux.co.jp>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Link: https://patch.msgid.link/20260215150334.3391943-2-den@valinux.co.jp
drivers/pci/endpoint/functions/pci-epf-test.c