
24 Apr
2012
24 Apr
'12
8:45 p.m.
* Simon Glass wrote:
On Tue, Apr 24, 2012 at 7:53 PM, Thierry Reding thierry.reding@avionic-design.de wrote:
Some hardware requires the data buffers to be cacheline-aligned to make sure DMA operations can be properly executed.
This patch uses the ALLOC_CACHE_ALIGN_BUFFER macro to allocate buffers with proper alignment. The same was already done for EFI partitions in commit f75dd58 "part_efi: dcache: allocate cacheline aligned buffers".
Signed-off-by: Thierry Reding thierry.reding@avionic-design.de
Acked-by: Simon Glass sjg@chromium.org
I just noticed that the same patch was already posted by Eric Nelson back in March. Anatolij Gustschin just applied it to u-boot-staging/agust@denx.de.
Thierry