PCI: microchip: Set inbound address translation for coherent or non-coherent mode
JIRA: https://issues.redhat.com/browse/RHEL-83611 Upstream Status: 1390a33b3d04fdf6ba4e3e7082107a12027fc188 commit 1390a33b3d04fdf6ba4e3e7082107a12027fc188 Author: Daire McNamara <daire.mcnamara@microchip.com> Date: Fri Oct 11 15:00:42 2024 +0100 PCI: microchip: Set inbound address translation for coherent or non-coherent mode On Microchip PolarFire SoC the PCIe Root Port can be behind one of three general purpose Fabric Interface Controller (FIC) buses that encapsulates an AXI-S bus. Depending on which FIC(s) the Root Port is connected through to CPU space, and what address translation is done by that FIC, the Root Port driver's inbound address translation may vary. For all current supported designs and all future expected designs, inbound address translation done by a FIC on PolarFire SoC varies depending on whether PolarFire SoC is operating in coherent DMA mode or noncoherent DMA mode. The setup of the outbound address translation tables in the Root Port driver only needs to handle these two cases. Setup the inbound address translation tables to one of two address translations, depending on whether the Root Port is being used with coherent DMA or noncoherent DMA. Link: https://lore.kernel.org/r/20241011140043.1250030-3-daire.mcnamara@microchip.com Fixes: 6f15a9c9 ("PCI: microchip: Add Microchip PolarFire PCIe controller driver") Signed-off-by:Daire McNamara <daire.mcnamara@microchip.com> [bhelgaas: adapt for ac7f53b7e728 ("PCI: microchip: Add support for using either Root Port 1 or 2")] Signed-off-by:
Bjorn Helgaas <bhelgaas@google.com> Acked-by:
Conor Dooley <conor.dooley@microchip.com> Signed-off-by:
Myron Stowe <mstowe@redhat.com>
Showing
- drivers/pci/controller/plda/pcie-microchip-host.c 96 additions, 0 deletionsdrivers/pci/controller/plda/pcie-microchip-host.c
- drivers/pci/controller/plda/pcie-plda-host.c 14 additions, 3 deletionsdrivers/pci/controller/plda/pcie-plda-host.c
- drivers/pci/controller/plda/pcie-plda.h 4 additions, 2 deletionsdrivers/pci/controller/plda/pcie-plda.h
Loading
Please register or sign in to comment