Ian Campbell
2012-Mar-15 12:13 UTC
[PATCH] 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) Signed-off-by: Ian Campbell <ian.campbell@citrix.com> --- xen/arch/arm/head.S | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen/arch/arm/head.S b/xen/arch/arm/head.S index 606ae66..4b05bcd 100644 --- a/xen/arch/arm/head.S +++ b/xen/arch/arm/head.S @@ -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 */ -- 1.7.2.5
David Vrabel
2012-Mar-15 12:21 UTC
Re: [PATCH] arm: map DTB as outer- rather than inner-shareable.
On 15/03/12 12:13, Ian Campbell wrote:> 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. Acked-by: David Vrabel <david.vrabel@citrix.com>> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> > --- > xen/arch/arm/head.S | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/xen/arch/arm/head.S b/xen/arch/arm/head.S > index 606ae66..4b05bcd 100644 > --- a/xen/arch/arm/head.S > +++ b/xen/arch/arm/head.S > @@ -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 */
Ian Campbell
2012-Mar-15 15:22 UTC
Re: [PATCH] arm: map DTB as outer- rather than inner-shareable.
On Thu, 2012-03-15 at 12:21 +0000, David Vrabel wrote:> On 15/03/12 12:13, Ian Campbell wrote: > > 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. > > Acked-by: David Vrabel <david.vrabel@citrix.com>Thanks, committed.> > > > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> > > --- > > xen/arch/arm/head.S | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/xen/arch/arm/head.S b/xen/arch/arm/head.S > > index 606ae66..4b05bcd 100644 > > --- a/xen/arch/arm/head.S > > +++ b/xen/arch/arm/head.S > > @@ -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 */ >