[PATCH v9 5/5] Documentation: PCI: endpoint: Clarify pci_epc_set_bar() usage

Niklas Cassel cassel at kernel.org
Thu Jan 22 20:07:37 AEDT 2026


On Thu, Jan 22, 2026 at 05:49:09PM +0900, Koichiro Den wrote:
> The current documentation implies that pci_epc_set_bar() is only used
> before the host enumerates the endpoint.
> 
> In practice, some Endpoint Controllers support calling pci_epc_set_bar()
> multiple times for the same BAR (without clearing it) in order to update
> inbound address translations after the host has programmed the BAR base
> address, which some Endpoint Functions such as vNTB already rely on.
> Add document text for that.
> 
> Also document the expected call flow for BAR subrange mapping
> (pci_epf_bar.num_submap / pci_epf_bar.submap), which may require a
> second pci_epc_set_bar() call after the host has programmed the BAR base
> address.
> 
> Reviewed-by: Frank Li <Frank.Li at nxp.com>
> Signed-off-by: Koichiro Den <den at valinux.co.jp>
> ---

Reviewed-by: Niklas Cassel <cassel at kernel.org>


More information about the Linuxppc-dev mailing list