devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question about dma-ranges property for PCI host controllers
@ 2016-08-11 15:00 Phil Edworthy
  2016-08-11 15:09 ` Arnd Bergmann
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Edworthy @ 2016-08-11 15:00 UTC (permalink / raw)
  To: linux-pci@vger.kernel.org
  Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org

Hi,

A few PCI host controllers use the "dma-ranges" property to specify the
mapping from PCI bus addresses to physical addresses.

In the case of R-Car PCIe Host controllers, the intention was to set this
property as a 1 to 1 mapping for all DDR that could be addressed by the
device. However, there are some limitations for the R-Car controller which
meant that we could only map a subset of the DDR range - this limitation
has prompted us to work on enabling the IOMMU behind the PCI controller.

When there is an IOMMU behind the PCI controller, the "dma-ranges"
property specifies the mapping from PCI bus addresses to an IOVA address.
So should the property map all address space?

Note that this is not actually possible with the R-Car hardware, but I
found that the IOVA address space is outside of the DDR address space
that we were using so had change it.

Thanks
Phil

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-25 16:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 15:00 Question about dma-ranges property for PCI host controllers Phil Edworthy
2016-08-11 15:09 ` Arnd Bergmann
2016-08-12  9:43   ` Phil Edworthy
2016-08-25 16:03     ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).