Re: [U-Boot] [PATCH] dm: core: Round up size when allocating so that it is cache line aligned

2017-09-29 Thread sjg
On 19 September 2017 at 05:23, Faiz Abbas wrote: > The size variable may not be always be a mulitple of > ARCH_DMA_MINALIGN and using it to flush cache leads to cache > misaligned warnings. > > Therefore, round up the size to a multiple of ARCH_DMA_MINLAIGN > when allocating private data. > > Sign

Re: [U-Boot] [PATCH] dm: core: Round up size when allocating so that it is cache line aligned

2017-09-24 Thread Simon Glass
On 19 September 2017 at 05:23, Faiz Abbas wrote: > The size variable may not be always be a mulitple of > ARCH_DMA_MINALIGN and using it to flush cache leads to cache > misaligned warnings. > > Therefore, round up the size to a multiple of ARCH_DMA_MINLAIGN > when allocating private data. > > Sign

Re: [U-Boot] [PATCH] dm: core: Round up size when allocating so that it is cache line aligned

2017-09-19 Thread Faiz Abbas
Hi Bin, On Tuesday 19 September 2017 05:42 PM, Bin Meng wrote: > Hi Faiz, > > On Tue, Sep 19, 2017 at 7:23 PM, Faiz Abbas wrote: >> The size variable may not be always be a mulitple of >> ARCH_DMA_MINALIGN and using it to flush cache leads to cache >> misaligned warnings. >> >> Therefore, round

Re: [U-Boot] [PATCH] dm: core: Round up size when allocating so that it is cache line aligned

2017-09-19 Thread Bin Meng
Hi Faiz, On Tue, Sep 19, 2017 at 7:23 PM, Faiz Abbas wrote: > The size variable may not be always be a mulitple of > ARCH_DMA_MINALIGN and using it to flush cache leads to cache > misaligned warnings. > > Therefore, round up the size to a multiple of ARCH_DMA_MINLAIGN > when allocating private da

[U-Boot] [PATCH] dm: core: Round up size when allocating so that it is cache line aligned

2017-09-19 Thread Faiz Abbas
The size variable may not be always be a mulitple of ARCH_DMA_MINALIGN and using it to flush cache leads to cache misaligned warnings. Therefore, round up the size to a multiple of ARCH_DMA_MINLAIGN when allocating private data. Signed-off-by: Faiz Abbas --- drivers/core/device.c | 1 + 1 file