Re: [PATCH v3 3/4] sh/PCI: Pass GAPSPCI_DMA_BASE CPU & bus address to dma_declare_coherent_memory()

2014-05-26 Thread Bjorn Helgaas
On Mon, May 26, 2014 at 8:46 AM, Geert Uytterhoeven wrote: > On Thu, May 8, 2014 at 10:49 PM, Bjorn Helgaas wrote: >> --- a/arch/sh/drivers/pci/fixups-dreamcast.c >> +++ b/arch/sh/drivers/pci/fixups-dreamcast.c >> @@ -31,6 +31,8 @@ >> static void gapspci_fixup_resources(struct pci_dev *dev) >>

Re: [PATCH v3 3/4] sh/PCI: Pass GAPSPCI_DMA_BASE CPU & bus address to dma_declare_coherent_memory()

2014-05-26 Thread Geert Uytterhoeven
On Thu, May 8, 2014 at 10:49 PM, Bjorn Helgaas wrote: > --- a/arch/sh/drivers/pci/fixups-dreamcast.c > +++ b/arch/sh/drivers/pci/fixups-dreamcast.c > @@ -31,6 +31,8 @@ > static void gapspci_fixup_resources(struct pci_dev *dev) > { > struct pci_channel *p = dev->sysdata; > + struct

[PATCH v3 3/4] sh/PCI: Pass GAPSPCI_DMA_BASE CPU & bus address to dma_declare_coherent_memory()

2014-05-08 Thread Bjorn Helgaas
dma_declare_coherent_memory() needs both the CPU physical address and the bus address of the device memory. They are the same on this platform, but in general we should use pcibios_resource_to_bus() to account for any address translation done by the PCI host bridge. This makes no difference on Dr