Skip to contentSkip to conversation

arm: map DTB as outer- rather than inner-shareable.

PATCH In review Ian Campbell 2 participants 3 messages Mar 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: map DTB as outer- rather than inner-shareable.

This is consistent with how we map Xen which is important if they happen to be in the same 2MB super page (which they generally are)

---
 xen/arch/arm/head.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
xen/arch/arm/head.S +1 -1
index 606ae66..4b05bcd 100644
@@ -238,7 +238,7 @@ hyp:
 	mov   r3, #0x0
 	lsr   r2, r8, #21
 	lsl   r2, r2, #21            /* 2MB-aligned paddr of DTB */
-	orr   r2, r2, #0xf00
+	orr   r2, r2, #0xe00
 	orr   r2, r2, #0x07d         /* r2:r3 := 2MB RAM incl. DTB */
 	add   r4, r4, #8
 	strd  r2, r3, [r1, r4]       /* Map it in the early boot slot */
Signature · 1 line
1.7.2.5
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Ian Campbell

This is consistent with how we map Xen which is important if they happen to be in the same 2MB super page (which they generally are)

Not sure why I made this different.

Quoted 19 lines
---
 xen/arch/arm/head.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
xen/arch/arm/head.S +1 -1
index 606ae66..4b05bcd 100644
@@ -238,7 +238,7 @@ hyp:
 	mov   r3, #0x0
 	lsr   r2, r8, #21
 	lsl   r2, r2, #21            /* 2MB-aligned paddr of DTB */
-	orr   r2, r2, #0xf00
+	orr   r2, r2, #0xe00
 	orr   r2, r2, #0x07d         /* r2:r3 := 2MB RAM incl. DTB */
 	add   r4, r4, #8
 	strd  r2, r3, [r1, r4]       /* Map it in the early boot slot */
#2 lore raw
Quoted 7 lines · David Vrabel
Quoted 2 lines · Ian Campbell

This is consistent with how we map Xen which is important if they happen to be in the same 2MB super page (which they generally are)

Not sure why I made this different.

Thanks, committed.

Quoted 21 lines
Quoted 20 lines
---
 xen/arch/arm/head.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
xen/arch/arm/head.S +1 -1
index 606ae66..4b05bcd 100644
@@ -238,7 +238,7 @@ hyp:
 	mov   r3, #0x0
 	lsr   r2, r8, #21
 	lsl   r2, r2, #21            /* 2MB-aligned paddr of DTB */
-	orr   r2, r2, #0xf00
+	orr   r2, r2, #0xe00
 	orr   r2, r2, #0x07d         /* r2:r3 := 2MB RAM incl. DTB */
 	add   r4, r4, #8
 	strd  r2, r3, [r1, r4]       /* Map it in the early boot slot */