All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ARM: mm: clear SCTLR.HA instead of setting it for LPAE
@ 2014-09-24 17:41 Will Deacon
  2014-09-25  9:52 ` Catalin Marinas
  0 siblings, 1 reply; 2+ messages in thread
From: Will Deacon @ 2014-09-24 17:41 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Will Deacon <will.deacon@arm.com>
---

v1 -> v2: Reword commit message

 arch/arm/mm/proc-v7-3level.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mm/proc-v7-3level.S b/arch/arm/mm/proc-v7-3level.S
index b64e67c7f176..d3daed0ae0ad 100644
--- a/arch/arm/mm/proc-v7-3level.S
+++ b/arch/arm/mm/proc-v7-3level.S
@@ -157,9 +157,9 @@ ENDPROC(cpu_v7_set_pte_ext)
 	 *  TFR   EV X F   IHD LR    S
 	 * .EEE ..EE PUI. .TAT 4RVI ZWRS BLDP WCAM
 	 * rxxx rrxx xxx0 0101 xxxx xxxx x111 xxxx < forced
-	 *   11    0 110    1  0011 1100 .111 1101 < we want
+	 *   11    0 110    0  0011 1100 .111 1101 < we want
 	 */
 	.align	2
 	.type	v7_crval, #object
 v7_crval:
-	crval	clear=0x0120c302, mmuset=0x30c23c7d, ucset=0x00c01c7c
+	crval	clear=0x0122c302, mmuset=0x30c03c7d, ucset=0x00c01c7c
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH v2] ARM: mm: clear SCTLR.HA instead of setting it for LPAE
  2014-09-24 17:41 [PATCH v2] ARM: mm: clear SCTLR.HA instead of setting it for LPAE Will Deacon
@ 2014-09-25  9:52 ` Catalin Marinas
  0 siblings, 0 replies; 2+ messages in thread
From: Catalin Marinas @ 2014-09-25  9:52 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Sep 24, 2014 at 06:41:38PM +0100, Will Deacon wrote:
> 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.
> 
> Signed-off-by: Will Deacon <will.deacon@arm.com>

Acked-by: Catalin Marinas <catalin.marinas@arm.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-25  9:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24 17:41 [PATCH v2] ARM: mm: clear SCTLR.HA instead of setting it for LPAE Will Deacon
2014-09-25  9:52 ` Catalin Marinas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.