From: Will Deacon Date: Fri, 7 Feb 2014 18:12:20 +0000 (+0100) Subject: ARM: 7953/1: mm: ensure TLB invalidation is complete before enabling MMU X-Git-Tag: v3.2.56~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b768f21422c7ba677c3a2e594881fd412984e665;p=pandora-kernel.git ARM: 7953/1: mm: ensure TLB invalidation is complete before enabling MMU commit bae0ca2bc550d1ec6a118fb8f2696f18c4da3d8e upstream. During __v{6,7}_setup, we invalidate the TLBs since we are about to enable the MMU on return to head.S. Unfortunately, without a subsequent dsb instruction, the invalidation is not guaranteed to have completed by the time we write to the sctlr, potentially exposing us to junk/stale translations cached in the TLB. This patch reworks the init functions so that the dsb used to ensure completion of cache/predictor maintenance is also used to ensure completion of the TLB invalidation. Reported-by: Albin Tonnerre Signed-off-by: Will Deacon Signed-off-by: Russell King Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed