diff options
| author | Serge Semin <[email protected]> | 2023-01-13 20:13:50 +0300 |
|---|---|---|
| committer | Lorenzo Pieralisi <[email protected]> | 2023-01-27 17:15:33 +0100 |
| commit | aa92fa1e53befd7c0ff50f8346cb7980584f0beb (patch) | |
| tree | 3bc5491edb9417578d5279ef68466377e59c3910 /drivers/fpga/zynqmp-fpga.c | |
| parent | 993d57bbaacf7ad7a742e51cb717e21e0eb4ef72 (diff) | |
dmaengine: dw-edma: Add PCI bus address getter to the remote EP glue driver
The Synopsys PCIe Endpoint IP prototype kit can be attached via any PCI
host controller, including one where the PCI bus address space is different
from the CPU address space. Therefore, we need to make sure the source and
destination addresses of the DMA slave devices are converted to the PCI bus
address space; otherwise DMA transactions may cause memory corruption.
Add a new dw_edma_pcie_address() interface to perform this translation by
using pcibios_resource_to_bus().
Link: https://lore.kernel.org/r/[email protected]
Fixes: 41aaff2a2ac0 ("dmaengine: Add Synopsys eDMA IP PCIe glue-logic")
Tested-by: Manivannan Sadhasivam <[email protected]>
Signed-off-by: Serge Semin <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
0 files changed, 0 insertions, 0 deletions