[PATCH v3 09/12] PCI: brcmstb: Refactor for chips with many regular inbound BARs
Stanimir Varbanov
svarbanov at suse.de
Mon Jul 15 03:38:56 PDT 2024
On 7/11/24 01:16, Jim Quinlan wrote:
> Previously, our chips provided three inbound "BARS" with fixed purposes:
> the first was for mapping SoC internal registers, the second was for
> memory, and the third was for memory but with the endian swapped. We
> typically only used one of these BARs.
>
> Complicating that BARs usage was the fact that the PCIe HW would do a
> baroque internal mapping of system memory, and concatenate the regions of
> multiple memory controllers.
>
> Newer chips such as the 7712 and Cable Modem SOCs have taken a step forward
> and now provide multiple inbound BARs. This works in concert with the
> dma-ranges property, where each provided range becomes an inbound BAR.
>
> This commit provides support for these new chips and their multiple
> inbound BARs but also keeps the legacy support for the older system.
>
> Signed-off-by: Jim Quinlan <james.quinlan at broadcom.com>
> ---
> drivers/pci/controller/pcie-brcmstb.c | 216 ++++++++++++++++++++------
> 1 file changed, 167 insertions(+), 49 deletions(-)
>
Reviewed-by: Stanimir Varbanov <svarbanov at suse.de>
~Stan
More information about the linux-arm-kernel
mailing list