"Simple record, add later"
1. Cache Overview
-
The cache is as the name implies, in order to solve the problem of speed mismatch between high speed CPU and low speed main memory. Cache according to the speed and capacity of different, can also be divided into L1, L2, L3, the speed is gradually slow, and capacity is increasing. The L1 cache difference between different CPUs is often small, so its performance is significantly related to the L2 cache capacity size.
2. zynq7000 Cache Feature
The zynq7000 uses ARM cortex-a9 dual-core, with 2 levels of cache,32k L1 Icache and Dcache, as well as the 512K L2 Cache.
3. Cache consistency
3.1DMA vs. Cache consistency
Related functions:
When initializing: xil_settlbattributes
When sending: Dcacheflushrange
When received: Dcacheinvalidaterange
3.2 Dual-core vs. Cache consistency
Xilinx's amp example simply shuts down CPU1 's L2 cache to resolve dual-core interaction consistency issues.
CPU0 running UC,CPU1 running Linux, you currently need to comment out the L2cache code in the cpu0 BSP, otherwise it will cause the uboot to not ping at startup and cannot start kernel
ZYNQ7000 's Cache