I-cache/D-cache inconsistency issue with page cache

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Sep 23 15:39:41 EDT 2011


On Fri, Sep 23, 2011 at 01:57:21PM +0200, Mike Hommey wrote:
> We've been hitting random crashes at startup with Firefox on tegras
> (under Android), and narrowed it down to a I-cache/D-cache
> inconsistency. A reduced testcase of the issue looks like the following
> (compile as ARM, not Thumb):

If you write code at run time, you need to use the sys_cacheflush
API to ensure that it's properly synchronized with the I-cache.  It's
a well known issue, and it applies to any harvard cache structured
CPU which doesn't automatically ensure coherence (which essentially
means all ARMs.)



More information about the linux-arm-kernel mailing list