Masahiro Yamada e3332e1a1a Make kmalloc'ed memory really DMA-safe
In Linux, the memory returned by kmalloc() is DMA-capable.
However, it is not true in U-Boot.

At a glance, kmalloc() in U-Boot returns address aligned with
ARCH_DMA_MINALIGN.  However, it never pads the allocated memory.
This half-way house is completely useless because calling kmalloc()
and malloc() in this order causes a cache sharing problem.

Change the implementation to call malloc_cache_aligned(), which
allocates really DMA-capable memory.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2018-08-31 11:59:44 -04:00
..
2018-08-13 14:03:57 -04:00
2011-01-18 23:38:08 +01:00
2017-04-13 09:41:10 -04:00
2010-09-19 19:29:47 +02:00
2018-06-13 07:49:12 -04:00
2012-04-29 14:14:08 +02:00
2017-05-12 08:37:18 -04:00
2018-08-10 13:45:34 -04:00
2017-06-01 07:03:12 -06:00
2018-07-25 14:57:44 +02:00