diff options
author | Will Deacon <will.deacon@arm.com> | 2014-02-07 19:12:20 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-02-10 11:44:26 +0000 |
commit | bae0ca2bc550d1ec6a118fb8f2696f18c4da3d8e (patch) | |
tree | d3bb5504e13472fad2bdbb928b8a7cdfeee1c594 /crypto/sha512_generic.c | |
parent | ca4744084772e1fee999391bee0fcdca5d91a757 (diff) | |
download | talos-op-linux-bae0ca2bc550d1ec6a118fb8f2696f18c4da3d8e.tar.gz talos-op-linux-bae0ca2bc550d1ec6a118fb8f2696f18c4da3d8e.zip |
ARM: 7953/1: mm: ensure TLB invalidation is complete before enabling MMU
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.
Cc: <stable@vger.kernel.org>
Reported-by: Albin Tonnerre <Albin.Tonnerre@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'crypto/sha512_generic.c')
0 files changed, 0 insertions, 0 deletions