]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: endpoint: Add dynamic_inbound_mapping EPC feature
authorKoichiro Den <den@valinux.co.jp>
Sat, 24 Jan 2026 14:50:05 +0000 (23:50 +0900)
committerManivannan Sadhasivam <mani@kernel.org>
Wed, 28 Jan 2026 13:45:48 +0000 (19:15 +0530)
commit06a81c5940e46cc7bddee28f16bdd29a12a76344
treeb856ef3ab201d7dbd943fba4cec0745f226ba1e4
parent0ecd890e3cf54a0586247b9a384702703277e4fd
PCI: endpoint: Add dynamic_inbound_mapping EPC feature

Introduce a new EPC feature bit (dynamic_inbound_mapping) that indicates
whether an Endpoint Controller can update the inbound address
translation for a BAR without requiring the EPF driver to clear/reset
the BAR first.

Endpoint Function drivers (e.g. vNTB) can use this information to decide
whether it really is safe to call pci_epc_set_bar() multiple times to
update inbound mappings for the BAR.

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>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260124145012.2794108-2-den@valinux.co.jp
include/linux/pci-epc.h