summaryrefslogtreecommitdiffstats
path: root/qemu/roms/u-boot/doc/README.arm-caches
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/u-boot/doc/README.arm-caches
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/u-boot/doc/README.arm-caches')
-rw-r--r--qemu/roms/u-boot/doc/README.arm-caches53
1 files changed, 0 insertions, 53 deletions
diff --git a/qemu/roms/u-boot/doc/README.arm-caches b/qemu/roms/u-boot/doc/README.arm-caches
deleted file mode 100644
index f6a52e3e3..000000000
--- a/qemu/roms/u-boot/doc/README.arm-caches
+++ /dev/null
@@ -1,53 +0,0 @@
-Disabling I-cache:
-- Set CONFIG_SYS_ICACHE_OFF
-
-Disabling D-cache:
-- Set CONFIG_SYS_DCACHE_OFF
-
-Enabling I-cache:
-- Make sure CONFIG_SYS_ICACHE_OFF is not set and call icache_enable().
-
-Enabling D-cache:
-- Make sure CONFIG_SYS_DCACHE_OFF is not set and call dcache_enable().
-
-Enabling Caches at System Startup:
-- Implement enable_caches() for your platform and enable the I-cache and
- D-cache from this function. This function is called immediately
- after relocation.
-
-Guidelines for Working with D-cache:
-
-Memory to Peripheral DMA:
-- Flush the buffer after the MPU writes the data and before the DMA is
- initiated.
-
-Peripheral to Memory DMA:
-- Invalidate the buffer before starting the DMA. In case there are any dirty
- lines from the DMA buffer in the cache, subsequent cache-line replacements
- may corrupt the buffer in memory while the DMA is still going on. Cache-line
- replacement can happen if the CPU tries to bring some other memory locations
- into the cache while the DMA is going on.
-- Invalidate the buffer after the DMA is complete and before the MPU reads
- it. This may be needed in addition to the invalidation before the DMA
- mentioned above, because in some processors memory contents can spontaneously
- come to the cache due to speculative memory access by the CPU. If this
- happens with the DMA buffer while DMA is going on we have a coherency problem.
-
-Buffer Requirements:
-- Any buffer that is invalidated(that is, typically the peripheral to
- memory DMA buffer) should be aligned to cache-line boundary both at
- at the beginning and at the end of the buffer.
-- If the buffer is not cache-line aligned invalidation will be restricted
- to the aligned part. That is, one cache-line at the respective boundary
- may be left out while doing invalidation.
-- A suitable buffer can be alloced on the stack using the
- ALLOC_CACHE_ALIGN_BUFFER macro.
-
-Cleanup Before Linux:
-- cleanup_before_linux() should flush the D-cache, invalidate I-cache, and
- disable MMU and caches.
-- The following sequence is advisable while disabling d-cache:
- 1. disable_dcache() - flushes and disables d-cache
- 2. invalidate_dcache_all() - invalid any entry that came to the cache
- in the short period after the cache was flushed but before the
- cache got disabled.