Hi all,
I am working on OrangePi board. The board configuration is,
I have few queries related to Cache memory,
Thanks in advance.
I have few queries related to Cache memory,How to disable L2 cache of Cortex-A7 in the board?
There is only one way on the Cortex-A7 -- and it is to not enable the cache enable bit at all (SCTLR.C bit) which will prevent any allocation into the caches at all architectural levels (L1 and L2). However if it was previously enabled, there may still be valid lines in the cache (it just won't add new ones) and even while disabled, it may still 'naturally' evict those lines, showing some evidence of activity caused by the caches. After disabling the caches you may want to invalidate them.
If you want to not use the L2 cache, but keep using the L1 cache, that's somewhat difficult. The L2 in the Cortex-A7 is "tightly coupled" in the sense that it is always present, and always going to be used.
How to configure L2 cache size of Cortex-A7? (ARM TRM says L2 cache is configurable)
You don't -- whoever designed the SoC on the OrangePi board configured the size of the cache for you. All you can do is turn it on and off with the rest of the cache subsystem.
Ta,
Matt