Re: [PATCH] MIPS: DMA: fix coherent alloc in non-coherent systems

2014-10-30 Thread Leonid Yegoshin
On 10/30/2014 03:07 AM, James Hogan wrote: Hi Leonid, On 30/10/14 01:48, Leonid Yegoshin wrote: A default dma_alloc_coherent() fails to alloc a coherent memory on non-coherent systems in case of device->coherent_dma_mask covering the whole memory space. In case of non-coherent systems the cohe

Re: [PATCH] MIPS: DMA: fix coherent alloc in non-coherent systems

2014-10-30 Thread James Hogan
Hi Leonid, On 30/10/14 01:48, Leonid Yegoshin wrote: > A default dma_alloc_coherent() fails to alloc a coherent memory on > non-coherent > systems in case of device->coherent_dma_mask covering the whole memory space. > > In case of non-coherent systems the coherent memory on MIPS is restricted b

Re: [PATCH] MIPS: DMA: fix coherent alloc in non-coherent systems

2014-10-30 Thread Markos Chandras
On 10/30/2014 09:51 AM, James Hogan wrote: > Hi Markos, > > On 30/10/14 09:48, Markos Chandras wrote: >>> diff --git a/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >>> b/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >>> index f9f4486..fe0b465 100644 >>> --- a/arch/mips/incl

Re: [PATCH] MIPS: DMA: fix coherent alloc in non-coherent systems

2014-10-30 Thread James Hogan
Hi Markos, On 30/10/14 09:48, Markos Chandras wrote: >> diff --git a/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >> b/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >> index f9f4486..fe0b465 100644 >> --- a/arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h >> +++ b/a

Re: [PATCH] MIPS: DMA: fix coherent alloc in non-coherent systems

2014-10-30 Thread Markos Chandras
Hi, On 10/30/2014 01:48 AM, Leonid Yegoshin wrote: > A default dma_alloc_coherent() fails to alloc a coherent memory on > non-coherent > systems in case of device->coherent_dma_mask covering the whole memory space. > > In case of non-coherent systems the coherent memory on MIPS is restricted by