Vidya Sagar 21e2079fe4 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>
2019-04-16 15:27:46 +01:00
..
2019-03-06 15:30:15 -06:00
2019-03-06 15:30:15 -06:00
2018-03-19 14:20:43 -05:00
2019-01-14 17:01:20 -06:00
2018-03-19 14:20:43 -05:00
2019-01-05 17:57:34 -08:00
2019-02-08 13:40:36 -06:00
2018-03-19 14:20:43 -05:00
2018-10-02 10:14:32 +02:00
2018-03-19 14:20:43 -05:00
2019-03-09 14:57:08 -08:00
2019-03-06 15:30:11 -06:00
2019-03-09 14:57:08 -08:00
2018-06-29 21:17:26 -05:00
2018-03-19 14:20:43 -05:00
2018-03-19 14:20:43 -05:00
2018-09-21 12:18:10 -05:00
2018-03-19 14:20:43 -05:00
2018-02-01 11:40:07 -06:00
2018-03-19 14:20:43 -05:00