ARM: 8164/1: mm: clear SCTLR.HA instead of setting it for LPAE
authorWill Deacon <will.deacon@arm.com>
Thu, 25 Sep 2014 10:39:19 +0000 (11:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Sep 2014 14:32:57 +0000 (15:32 +0100)
commit2c553ac19e73235b61b67fdc5c14be9913a2758d
tree49e7743423d609cea33343f89f384571827f1596
parent505013bc9065391f09a51d51cd3bf0b06dfb570a
ARM: 8164/1: mm: clear SCTLR.HA instead of setting it for LPAE

SCTLR.HA (hardware access flag) is deprecated and not actually
implemented by any CPUs. Furthermore, it can confuse cr_alignment checks
where the whole value of SCTLR is compared against the value sitting in
the hardware, since the bit is actually RAZ/WI and will not match the
saved cr_alignment value.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-v7-3level.S