[U-Boot] [PATCH v4] nios2: convert dma_alloc_coherent to use malloc_cache_aligned

Marek Vasut marex at denx.de
Sat Oct 17 00:53:03 CEST 2015


On Wednesday, October 14, 2015 at 03:48:21 AM, Thomas Chou wrote:
> Hi Marek,

Hi!

> >>> On 10/12/2015 06:32 PM, Marek Vasut wrote:
> >>>> Wouldn't invalidate_dcache_range() be enough here ? You don't care
> >>>> about
> >>>> the data in the newly allocated area at this point I guess -- either
> >>>> you
> >>>> fill them in and then flush, for DMA from CPU to device OR you receive
> >>>> data from device to CPU and then you invalidate this buffer again.
> 
> Thanks a lot for your suggestion. I added invalidate_dcache_range()
> which will check if the initda instruction is supported by the nios2 cpu.

Ah, thanks!

Best regards,
Marek Vasut


More information about the U-Boot mailing list