summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc
diff options
context:
space:
mode:
authorVidya Sagar <vidyas@nvidia.com>2019-04-16 16:21:44 +0530
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2019-04-16 15:27:46 +0100
commit21e2079fe4938e84c0c5c0996cc03d63d5f9cacc (patch)
tree36c8ed8d066df3e601d0afd2a3f2d19d0f971be0 /drivers/pci/controller/dwc
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff)
PCI: tegra: Use the DMA-API to get the MSI address
Since the upstream MSI memory writes are generated by downstream devices, it is logically correct to have MSI target memory coming from the DMA pool reserved for PCIe than from the general memory pool reserved for CPU access to avoid PCIe DMA addresses coinciding with MSI target address thereby raising unwanted MSI interrupts. Enforce this behaviour by retrieving the MSI address through the DMA API. Limit the MSI target address to 32-bits to make it work for PCIe endpoints that support only 32-bit MSI target address; endpoints that support 64-bit MSI target address work with 32-bit MSI target address too. Signed-off-by: Vidya Sagar <vidyas@nvidia.com> [lorenzo.pieralisi@arm.com: updated commit log] Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/pci/controller/dwc')
0 files changed, 0 insertions, 0 deletions