
15 Jul
2012
15 Jul
'12
12:11 a.m.
Dear Marek,
On Tue, Jul 10, 2012 at 5:55 AM, Marek Vasut marex@denx.de wrote:
invalidate_dcache_range((uint32_t)buffer,
ALIGN_END_ADDR(u8, buffer, length));
We shouldn't use ALIGN_END_ADDR here. This can lead to strange results on systems with ARCH_DMA_MINALIGN < 32.
Good point, ALIGN_END_ADDR should align it to max(32, length) ?
Hm.. no, actually we should align buffer length to ARCH_DMA_MINALIGN.
Regards, Ilya.