alistair23-linux/drivers/pci
Murali Karicheri de335bb492 PCI: Update DMA configuration from DT
If there is a DT node available for the root bridge's parent device, use
the DMA configuration from that device node.  For example, Keystone PCI
devices would require dma_pfn_offset to be set correctly in the device
structure of the PCI device in order to have the correct DMA mask.  The DT
node will have dma-ranges defined for this.  Also support using the DT
property dma-coherent to allow coherent DMA operation by the PCI device.

Use the new helper function of_pci_dma_configure() to update the device DMA
configuration.  This fixes DMA on systems where DMA addresses are a
constant offset from CPU physical addresses.

Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> (AMD Seattle)
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
CC: Joerg Roedel <joro@8bytes.org>
CC: Grant Likely <grant.likely@linaro.org>
CC: Rob Herring <robh+dt@kernel.org>
CC: Russell King <linux@arm.linux.org.uk>
CC: Arnd Bergmann <arnd@arndb.de>
2015-03-12 11:43:09 -05:00
..
host ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
hotplug ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
pcie Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
access.c PCI: Add generic config accessors 2015-01-22 13:59:45 -06:00
ats.c
bus.c PCI: Use common resource list management code instead of private implementation 2015-02-05 15:09:25 +01:00
host-bridge.c PCI: Add helper functions pci_get[put]_host_bridge_device() 2015-03-03 14:42:57 -06:00
hotplug-pci.c
htirq.c
iov.c
irq.c
Kconfig
Makefile
msi.c PCI: Fail MSI-X mappings if there's no space assigned to MSI-X BAR 2015-01-28 09:25:57 -06:00
of.c
pci-acpi.c PCI / PM: Avoid resuming PCI devices during system suspend 2015-01-23 22:13:54 +01:00
pci-driver.c ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
pci-label.c
pci-stub.c
pci-sysfs.c
pci.c ACPI and power management updates for v3.20-rc1 2015-02-10 15:09:41 -08:00
pci.h Merge branches 'pm-pci' and 'pm-cpuidle' 2015-02-10 16:07:10 +01:00
probe.c PCI: Update DMA configuration from DT 2015-03-12 11:43:09 -05:00
proc.c
quirks.c PCI changes for the v3.20 merge window: 2015-02-10 14:31:28 -08:00
remove.c
rom.c PCI: Fix infinite loop with ROM image of size 0 2015-01-23 17:42:59 -06:00
search.c
setup-bus.c PCI: Add pci_claim_bridge_resource() to clip window if necessary 2015-01-16 10:04:42 -06:00
setup-irq.c
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c