u-boot/arch/mips
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
..
cpu MIPS: Drop unused PTR_COUNT_SHIFT from u-boot.lds 2017-11-28 21:59:30 +01:00
dts mips: bmips: fix BCM3380 periph clock frequency 2017-05-31 15:45:29 +02:00
include/asm mips: Use asm-generic/io.h 2017-10-02 21:52:23 -04:00
lib MIPS: Ensure cache ops complete in cache maintenance functions 2017-11-28 21:59:30 +01:00
mach-ath79 board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
mach-au1x00 Fix spelling of "resetting". 2016-10-31 10:13:17 -04:00
mach-bmips mips: bmips: add board descriptions 2017-05-31 14:49:55 +02:00
mach-pic32 board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
config.mk MIPS: Stop building position independent code 2017-07-25 20:44:00 +02:00
Kconfig env: Convert CONFIG_ENV_IS_IN... to a choice 2017-08-15 20:50:01 -04:00
Makefile MIPS: add initial infrastructure for Broadcom MIPS SoCs 2017-05-10 16:16:09 +02:00
Makefile.postlink MIPS: Stop building position independent code 2017-07-25 20:44:00 +02:00