JP's Website
Why are my two Cortex-A9 cores cache coherent?
Posted on 2026-09-12
This is a follow-up to my last blog post.
I fixed it, and I don't really know how.
First up, some people online suggested it ws because I didn't have an FPGA loaded. Well, no, the Hard Processor Subsystem works fine without an FPGA loaded. However, the DE0 Nano seems to have a hardware design flaw where if you don't have an FPGA loaded you can expect an extra 5W of power consumption and the board to get very very hot and quite crashy. Now I'm loading the default image from the vendor supplied Linux SD Card, and it seems cooler and more reliable. But that didn't fix coherency.
Some wise folks who are professionally very close to the Cortex-A9 said it was an order of operations issue, because I didn't have enough barriers. Well I added barriers and it didn't help. And once I got it working I took them out, and it stayed working. So I don't think it was that.
Others said it was because I set the SMP bit in ACTLR before enabling the SCU. Well, now I have it working I'm able to test that theory and it works either way around.
One thing I can reliably do to do stop it working, is to only do one TLB Invalidate All operation. It only works if I do two, back to back. Putting an ISB; DSB pair in-between them stops it working.
I don't understand why this is.