Skip to content
Snippets Groups Projects
Commit 7b688787 authored by Myron Stowe's avatar Myron Stowe
Browse files

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: default avatarDaire McNamara <daire.mcnamara@microchip.com>
    [bhelgaas: adapt for ac7f53b7e728 ("PCI: microchip: Add support for using
    either Root Port 1 or 2")]
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>

Signed-off-by: default avatarMyron Stowe <mstowe@redhat.com>
parent 4f045be4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment