[PATCH v3 6/6] ARM: mm: Change the order of TLB/cache maintenance operations.

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Oct 4 04:46:43 EDT 2013


On Thu, Oct 03, 2013 at 05:18:00PM -0400, Santosh Shilimkar wrote:
> From: Sricharan R <r.sricharan at ti.com>
> 
> As per the arm ARMv7 manual, the sequence of TLB maintenance
> operations after making changes to the translation table is
> to clean the dcache first, then invalidate the TLB. With
> the current sequence we see cache corruption when the
> flush_cache_all is called after tlb_flush_all.

This needs testing on ARMv4 CPUs which don't have a way to flush the
cache except by reading memory - hence they need the new page table
entries to be visible to the MMU before calling flush_cache_all().



More information about the linux-arm-kernel mailing list