u-boot-brain/arch/mips/lib
Paul Burton 219c2db384 MIPS: Ensure cache ops complete in cache maintenance functions
A typical use of cache maintenance functions is to force writeback of
data which a device is about to read using DMA - for example a
descriptor or command structure. Such users of cache maintenance
functions require that operations on the cache have completed before
they proceed to instruct a device to read memory. This requires that we
place a completion barrier (ie. sync instruction) between the cache ops
and whatever write informs the device to perform DMA.

Whilst strictly speaking this isn't all users of the cache maintenance
functions & we could instead place the barriers in the drivers that
require them, it would be much more invasive to do so than to just have
the barrier be the default by placing it in the cache functions
themselves. The cost is low enough that it shouldn't matter to us in any
rare cases that we use the cache functions when not performing DMA.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: u-boot@lists.denx.de
2017-11-28 21:59:30 +01:00
..
ashldi3.c dm: mips: Import libgcc components from Linux 2012-08-17 20:13:48 +02:00
ashrdi3.c dm: mips: Import libgcc components from Linux 2012-08-17 20:13:48 +02:00
asm-offsets.c MIPS: add asm-offsets for struct pt_regs 2016-11-30 16:11:46 +01:00
bootm.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
cache_init.S MIPS: Ensure cache ops complete in mips_cache_reset 2016-09-21 15:04:04 +02:00
cache.c MIPS: Ensure cache ops complete in cache maintenance functions 2017-11-28 21:59:30 +01:00
genex.S MIPS: add handling for generic and EJTAG exceptions 2016-11-30 16:12:17 +01:00
libgcc.h dm: mips: Import libgcc components from Linux 2012-08-17 20:13:48 +02:00
lshrdi3.c dm: mips: Import libgcc components from Linux 2012-08-17 20:13:48 +02:00
Makefile MIPS: Stop building position independent code 2017-07-25 20:44:00 +02:00
reloc.c MIPS: Stop building position independent code 2017-07-25 20:44:00 +02:00
stack.c MIPS: reserve space for exception vectors 2016-11-30 16:11:46 +01:00
traps.c MIPS: add handling for generic and EJTAG exceptions 2016-11-30 16:12:17 +01:00