dma_alloc_coherent() on PPC32: physical addresses above 2G possible?

2008-07-20 Thread Stefan Richter
Hi all, I have to implement a workaround for a PCI device which gets into trouble if descriptors are located at 32bit addresses, while 31bit addresses are fine. I would like to avoid this workaround on machines on which dma_alloc_coherent() won't ever go at memory above 2 GB. Is defined(CON

Re: dma_alloc_coherent() on PPC32: physical addresses above 2G possible?

2008-07-20 Thread Arjan van de Ven
On Sun, 20 Jul 2008 20:36:23 +0200 Stefan Richter <[EMAIL PROTECTED]> wrote: > PS: I don't want to set the DMA mask of this device to > DMA_31BIT_MASK because that would be detrimental to other functions > of the device. It's a TI TSB43AB22A FireWire controller. Hi, just want to mention that yo

Re: dma_alloc_coherent() on PPC32: physical addresses above 2G possible?

2008-07-20 Thread Arjan van de Ven
On Sun, 20 Jul 2008 21:25:51 +0200 Stefan Richter <[EMAIL PROTECTED]> wrote: > > Later on: > > if (dev->needs_dma_mask_workaround) > pci_set_consistent_dma_mask(pdev, DMA_31BIT_MASK); > allocate_something_special; > if (dev->needs_dma_mask_workaround) >

Re: dma_alloc_coherent() on PPC32: physical addresses above 2G possible?

2008-07-20 Thread Arjan van de Ven
On Sun, 20 Jul 2008 21:25:51 +0200 Stefan Richter <[EMAIL PROTECTED]> wrote: > Arjan van de Ven wrote: > > On Sun, 20 Jul 2008 20:36:23 +0200 > > Stefan Richter <[EMAIL PROTECTED]> wrote: > > > >> PS: I don't want to set the DMA mask of this device to > >> DMA_31BIT_MASK because that would be de

Re: dma_alloc_coherent() on PPC32: physical addresses above 2G possible?

2008-07-20 Thread Stefan Richter
Arjan van de Ven wrote: > On Sun, 20 Jul 2008 20:36:23 +0200 > Stefan Richter <[EMAIL PROTECTED]> wrote: > >> PS: I don't want to set the DMA mask of this device to >> DMA_31BIT_MASK because that would be detrimental to other functions >> of the device. It's a TI TSB43AB22A FireWire controller. >

Re: dma_alloc_coherent() on PPC32: physical addresses above 2G possible?

2008-07-20 Thread Stefan Richter
Arjan van de Ven wrote: > On Sun, 20 Jul 2008 21:25:51 +0200 > Stefan Richter <[EMAIL PROTECTED]> wrote: >> if (dev->needs_dma_mask_workaround) >> pci_set_consistent_dma_mask(pdev, DMA_31BIT_MASK); >> allocate_something_special; >> if (dev->needs_dma_mask_workaround) >>

Re: dma_alloc_coherent() on PPC32: physical addresses above 2G possible?

2008-07-20 Thread Benjamin Herrenschmidt
On Sun, 2008-07-20 at 20:36 +0200, Stefan Richter wrote: > Hi all, > > I have to implement a workaround for a PCI device which gets into > trouble if descriptors are located at 32bit addresses, while 31bit > addresses are fine. I would like to avoid this workaround on machines > on which dma_a