This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

is it necessary for ARM-v8 soc to flush L2 cache to DRAM ?

hi :

I know , we can flush L1 I/D cache items to PoU with kernel interface(flush_cache_*).

however, I can not find any clue about flushing L2 cache to DRAM(if without L3). 

and I saw some points that L2 flushing was not needed.

for ARMv8,  how can OS  control the L2 cache for enable/disable/flush(maybe?) ?

for ARM v7,  there was a L2 controller(pl310) to control L2.

Parents
  • because of cci,  the dirty cache line could be write-back .

    now , I foucs on the cpu power down process , which armv8 trm just say disable L1/L2 cache firstly.

    I think, before diable L1/L2  we should flush L1/L2 to main memory.

    however, I can not find the interface of flushing L2 like outer_cache.clean_range() for ARMv8.

Reply
  • because of cci,  the dirty cache line could be write-back .

    now , I foucs on the cpu power down process , which armv8 trm just say disable L1/L2 cache firstly.

    I think, before diable L1/L2  we should flush L1/L2 to main memory.

    however, I can not find the interface of flushing L2 like outer_cache.clean_range() for ARMv8.

Children