Skip to contentSkip to conversation

xen/arm64: Use virtual address when setting up early_printk fixmap

PATCH In review Chen Baozi 3 participants 6 messages Apr 7, 2015 – May 5, 2015

lore
Share & tools
lore

Chen Baozi

author
#0 lore raw

PATCH v2 1/1 xen/arm64: Use virtual address when setting up early_printk fixmap

We have already had the boot pagetable when reaching the point of early_printk fixmap setup. Thus there is no longer necessary to calculate physical address of xen_fixmap.

---
 xen/arch/arm/arm64/head.S | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
xen/arch/arm/arm64/head.S +1 -2
index 75b7ee1..9ed9a93 100644
@@ -519,8 +519,7 @@ paging:
         cbnz  x22, 1f
 
         /* Add UART to the fixmap table */
-        ldr   x1, =xen_fixmap
-        add   x1, x1, x20            /* x1 := paddr (xen_fixmap) */
+        ldr   x1, =xen_fixmap        /* x1 := vaddr (xen_fixmap) */
         lsr   x2, x23, #THIRD_SHIFT
         lsl   x2, x2, #THIRD_SHIFT   /* 4K aligned paddr of UART */
         mov   x3, #PT_DEV_L3
Signature · 1 line
2.1.4
Reviewed-by on v2 1/1
#1 lore raw

Hi Chen,

Quoted 1 line · Chen Baozi

We have already had the boot pagetable when reaching the point

s/had/added/ ?

Quoted 1 line

of early_printk fixmap setup. Thus there is no longer necessary

s/there is/it is/ ?

Quoted 3 lines

to calculate physical address of xen_fixmap.

Other than the possible typoes above:

Regards,

Signature · 1 line
Julien Grall
Acked-by
#2 lore raw
Quoted 6 lines · Julien Grall

Hi Chen,

Quoted 1 line · Chen Baozi

We have already had the boot pagetable when reaching the point

s/had/added/ ?

I think "switched too" is what was meant and more correct.

Quoted 3 lines
Quoted 1 line

of early_printk fixmap setup. Thus there is no longer necessary

s/there is/it is/ ?

Yes.

Quoted 7 lines
Quoted 3 lines

to calculate physical address of xen_fixmap.

Other than the possible typoes above:

If it is confirmed that I got the correct meaning in the first one I can fix both on commit.

Ian.

author
#3 lore raw
Quoted 10 lines · Ian Campbell
Quoted 6 lines · Julien Grall

Hi Chen,

Quoted 1 line · Chen Baozi

We have already had the boot pagetable when reaching the point

s/had/added/ ?

I think "switched too" is what was meant and more correct.

So do I ;-)

Quoted 10 lines
Quoted 3 lines
Quoted 1 line

of early_printk fixmap setup. Thus there is no longer necessary

s/there is/it is/ ?

Yes.

Quoted 4 lines
Quoted 3 lines

to calculate physical address of xen_fixmap.

Quoted 8 lines
Quoted 3 lines

Other than the possible typoes above:

If it is confirmed that I got the correct meaning in the first one I can fix both on commit.

Yes, please. Thanks.

Baozi

#5 lore raw
In reply to Chen Baozi

Hi Ian,

Quoted 5 lines · Chen Baozi

We have already had the boot pagetable when reaching the point of early_printk fixmap setup. Thus there is no longer necessary to calculate physical address of xen_fixmap.

This patch has been fully ack and Chen agreed that you fix the typoes. Can you commit it?

Cheers,

Quoted 19 lines
---
 xen/arch/arm/arm64/head.S | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
xen/arch/arm/arm64/head.S +1 -2
index 75b7ee1..9ed9a93 100644
@@ -519,8 +519,7 @@ paging:
         cbnz  x22, 1f
 
         /* Add UART to the fixmap table */
-        ldr   x1, =xen_fixmap
-        add   x1, x1, x20            /* x1 := paddr (xen_fixmap) */
+        ldr   x1, =xen_fixmap        /* x1 := vaddr (xen_fixmap) */
         lsr   x2, x23, #THIRD_SHIFT
         lsl   x2, x2, #THIRD_SHIFT   /* 4K aligned paddr of UART */
         mov   x3, #PT_DEV_L3
Signature · 1 line
Julien Grall