[U-Boot] [RFC] mmc: fsl_esdhc: fix misaligned cache operation warning

Clemens Gruber clemens.gruber at pqgruber.com
Mon Aug 29 17:18:09 CEST 2016


Hi,

On Sun, Aug 28, 2016 at 04:55:36PM -0700, Stefan Agner wrote:
> Hm, that seems dangerous to me, especially the src rounding...
> 
> Not sure where that memory gets aligned, but I guess we should use
> memalign and align the length to cache size or the like... 

Yes, you are right. I looked into this some more and found the source of
the problem is actually in lib/gunzip.c and not the flush_dcache_range
call in fsl_esdhc.c.
I sent a new patch to cache-align the memory allocation in gzwrite.

Regards,
Clemens


More information about the U-Boot mailing list