Skip to contentSkip to conversation

arm64/xen: Add missing #address-cells and #size-cells properties

PATCH In review Julien Grall 3 participants 10 messages Nov 29, 2017 – Dec 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64/xen: Add missing #address-cells and #size-cells properties

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
 grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +11 -0
index c95d6c5a8..6780b1f0c 100644
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
   if (chosen_node < 1)
     return grub_error (GRUB_ERR_IO, "failed to get chosen node in FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. Set
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#address-cells", 2);
+  if (retval)
+    return grub_error (GRUB_ERR_IO, "failed to set #address-cells");
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#size-cells", 2);
+  if (retval)
+    return grub_error (GRUB_ERR_IO, "failed to set #size-cells");
+
   grub_dprintf ("xen_loader",
 		"Xen Hypervisor cmdline : %s @ %p size:%d\n",
 		xen_hypervisor->cmdline, xen_hypervisor->cmdline,
Signature · 1 line
2.11.0
#1 lore raw
Quoted 5 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

Quoted 16 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
 grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 119

Quoted 5 lines
grub-core/loader/arm64/xen_boot.c +2 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
   if (chosen_node < 1)
     return grub_error (GRUB_ERR_IO, "failed to get chosen node in FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. Set

Here you say "64-bits value"...

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 122

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#address-cells", 2);

...and then call grub_fdt_set_prop32(). I am confused...

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 125

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+  if (retval)
+    return grub_error (GRUB_ERR_IO, "failed to set #address-cells");
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#size-cells", 2);

Ditto.

Daniel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
In reply to Julien Grall
Quoted 5 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

Quoted 16 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
 grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 119

Quoted 5 lines
grub-core/loader/arm64/xen_boot.c +2 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
   if (chosen_node < 1)
     return grub_error (GRUB_ERR_IO, "failed to get chosen node in FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. Set

Here you say "64-bits value"...

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 122

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#address-cells", 2);

...and then call grub_fdt_set_prop32(). I am confused...

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 125

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+  if (retval)
+    return grub_error (GRUB_ERR_IO, "failed to set #address-cells");
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#size-cells", 2);

Ditto.

Daniel

#3 lore raw

Hi Daniel,

Quoted 11 lines · Daniel Kiper
Quoted 5 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

That's the name of the node see the MODULE_CUSTOM_COMPATIBLE in the code... But this it not the Linux Arm boot protocol, it is an extension currently only used by Xen. See [1].

Quoted 25 lines
Quoted 17 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
  grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
  1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 119

Quoted 5 lines
grub-core/loader/arm64/xen_boot.c +2 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
    if (chosen_node < 1)
      return grub_error (GRUB_ERR_IO, "failed to get chosen node in FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. Set

Here you say "64-bits value"...

Quoted 5 lines

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 122

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#address-cells", 2);

...and then call grub_fdt_set_prop32(). I am confused...

#address-cells and #size-cells are property to know the number of cells per address/size.

The address and size are 64-bit (i.e 2 cells) as you can see the call to grub_fdt_set_reg64 in the prepare_xen_module_params.

Quoted 6 lines

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 125

Quoted 4 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+  if (retval)
+    return grub_error (GRUB_ERR_IO, "failed to set #address-cells");
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#size-cells", 2);

Ditto.

Cheers,

[1] https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=docs/misc/arm/device-tree/booting.txt

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#4 lore raw
In reply to Daniel Kiper

Hi Daniel,

Quoted 11 lines · Daniel Kiper
Quoted 5 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

That's the name of the node see the MODULE_CUSTOM_COMPATIBLE in the code... But this it not the Linux Arm boot protocol, it is an extension currently only used by Xen. See [1].

Quoted 25 lines
Quoted 17 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
  grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
  1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 119

Quoted 5 lines
grub-core/loader/arm64/xen_boot.c +2 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
    if (chosen_node < 1)
      return grub_error (GRUB_ERR_IO, "failed to get chosen node in FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. Set

Here you say "64-bits value"...

Quoted 5 lines

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 122

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#address-cells", 2);

...and then call grub_fdt_set_prop32(). I am confused...

#address-cells and #size-cells are property to know the number of cells per address/size.

The address and size are 64-bit (i.e 2 cells) as you can see the call to grub_fdt_set_reg64 in the prepare_xen_module_params.

Quoted 6 lines

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 125

Quoted 4 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+  if (retval)
+    return grub_error (GRUB_ERR_IO, "failed to set #address-cells");
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#size-cells", 2);

Ditto.

Cheers,

[1] https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=docs/misc/arm/device-tree/booting.txt

Signature · 1 line
Julien Grall
#5 lore raw
Quoted 10 lines · Julien Grall

Hi Daniel,

Quoted 7 lines · Daniel Kiper
Quoted 5 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

Quoted 8 lines
Quoted 4 lines

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

That's the name of the node see the MODULE_CUSTOM_COMPATIBLE in the code... But this it not the Linux Arm boot protocol, it is an extension currently only used by Xen. See [1].

Oh, boy! It is unfortunate. Sadly it looks that we have to live with this right now... Too late for change... I would just add the comment to this file that this is not related to the Multiboot protocol family in any way.

Quoted 28 lines
Quoted 28 lines
Quoted 16 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
 grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 119

Quoted 5 lines
grub-core/loader/arm64/xen_boot.c +2 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
   if (chosen_node < 1)
     return grub_error (GRUB_ERR_IO, "failed to get chosen node in FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. Set

Here you say "64-bits value"...

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#address-cells", 2);
Quoted 7 lines
Quoted 1 line

...and then call grub_fdt_set_prop32(). I am confused...

#address-cells and #size-cells are property to know the number of cells per address/size.

The address and size are 64-bit (i.e 2 cells) as you can see the call to grub_fdt_set_reg64 in the prepare_xen_module_params.

Understood! I will apply this patch next week.

Daniel

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#6 lore raw
Quoted 16 lines · Daniel Kiper
Quoted 15 lines · Julien Grall

Hi Daniel,

Quoted 11 lines · Daniel Kiper
Quoted 5 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

Quoted 8 lines
Quoted 3 lines

That's the name of the node see the MODULE_CUSTOM_COMPATIBLE in the code... But this it not the Linux Arm boot protocol, it is an extension currently only used by Xen. See [1].

Oh, boy! It is unfortunate. Sadly it looks that we have to live with this right now... Too late for change... I would just add the comment to this file that this is not related to the Multiboot protocol family in any way.

I will send a patch for that.

Quoted 31 lines
Quoted 31 lines
Quoted 30 lines
Quoted 17 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
 grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 119

Quoted 5 lines
grub-core/loader/arm64/xen_boot.c +2 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
   if (chosen_node < 1)
     return grub_error (GRUB_ERR_IO, "failed to get chosen node in FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. Set

Here you say "64-bits value"...

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 122

Quoted 3 lines
grub-core/loader/arm64/xen_boot.c +3 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, "#address-cells", 2);

...and then call grub_fdt_set_prop32(). I am confused...

Quoted 7 lines
Quoted 5 lines

#address-cells and #size-cells are property to know the number of cells per address/size.

The address and size are 64-bit (i.e 2 cells) as you can see the call to grub_fdt_set_reg64 in the prepare_xen_module_params.

Understood! I will apply this patch next week.

Thank you!

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#7 lore raw
In reply to Daniel Kiper

-----Original Message-----
From: Grub-devel [mailto:[email protected]] On Behalf Of Daniel Kiper
Sent: Thursday, November 30, 2017 10:23 PM
To: Julien Grall <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] arm64/xen: Add missing #address-cells and #size-cells properties

Quoted 11 lines · Julien Grall

Hi Daniel,

Quoted 8 lines · Daniel Kiper
Quoted 6 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

Quoted 8 lines
Quoted 4 lines

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

That's the name of the node see the MODULE_CUSTOM_COMPATIBLE in the code... But this it not the Linux Arm boot protocol, it is an extension currently only used by Xen. See [1].

Oh, boy! It is unfortunate. Sadly it looks that we have to live with this right now... Too late for change... I would just add the comment to this file that this is not related to the Multiboot protocol family in any way.

Quoted 32 lines
Quoted 32 lines
Quoted 17 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
 grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 121

Quoted 7 lines
grub-core/loader/arm64/xen_boot.c +3 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
   if (chosen_node < 1)
     return grub_error (GRUB_ERR_IO, "failed to get chosen node in 
 FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. 
+ Set

Here you say "64-bits value"...

Quoted 4 lines
grub-core/loader/arm64/xen_boot.c +4 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, 
+ "#address-cells", 2);
Quoted 7 lines
Quoted 1 line

...and then call grub_fdt_set_prop32(). I am confused...

#address-cells and #size-cells are property to know the number of cells per address/size.

The address and size are 64-bit (i.e 2 cells) as you can see the call to grub_fdt_set_reg64 in the prepare_xen_module_params.

Understood! I will apply this patch next week.

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#8 lore raw
In reply to Daniel Kiper

-----Original Message-----
From: Grub-devel [mailto:[email protected]] On Behalf Of Daniel Kiper
Sent: Thursday, November 30, 2017 10:23 PM
To: Julien Grall <[email protected]>
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] arm64/xen: Add missing #address-cells and #size-cells properties

Quoted 11 lines · Julien Grall

Hi Daniel,

Quoted 8 lines · Daniel Kiper
Quoted 6 lines · Julien Grall

The properties #address-cells and #size-cells are used to know the number of cells for ranges provided by "regs". If they don't exist, the value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells

Quoted 8 lines
Quoted 4 lines

IIRC ARM boot protocol is not related to Multiboot protocol in any way. So, calling it in that way is very confusing. Could you invent a better not confusion name. Or at least provide a spec. I am happy to see it in GRUB2 tree.

That's the name of the node see the MODULE_CUSTOM_COMPATIBLE in the code... But this it not the Linux Arm boot protocol, it is an extension currently only used by Xen. See [1].

Oh, boy! It is unfortunate. Sadly it looks that we have to live with this right now... Too late for change... I would just add the comment to this file that this is not related to the Multiboot protocol family in any way.

Quoted 32 lines
Quoted 32 lines
Quoted 17 lines

and #size-cells are exactly 2. However, they are never set by GRUB and will result to later failure when the device-tree is generated by GRUB or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

---
 grub-core/loader/arm64/xen_boot.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
grub-core/loader/arm64/xen_boot.c +0 -0
index c95d6c5a8..6780b1f0c 100644

grub-core/loader/arm64/xen_boot.c prepare_xen_hypervisor_params (void *xen_boot_fdt) · line 121

Quoted 7 lines
grub-core/loader/arm64/xen_boot.c +3 -0
@@ -115,6 +115,17 @@ prepare_xen_hypervisor_params (void *xen_boot_fdt)
   if (chosen_node < 1)
     return grub_error (GRUB_ERR_IO, "failed to get chosen node in 
 FDT");
 
+  /*
+   * The address and size are always written using 64-bits value. 
+ Set

Here you say "64-bits value"...

Quoted 4 lines
grub-core/loader/arm64/xen_boot.c +4 -0
+   * #address-cells and #size-cells accordingly.
+   */
+  retval = grub_fdt_set_prop32 (xen_boot_fdt, chosen_node, 
+ "#address-cells", 2);
Quoted 7 lines
Quoted 1 line

...and then call grub_fdt_set_prop32(). I am confused...

#address-cells and #size-cells are property to know the number of cells per address/size.

The address and size are 64-bit (i.e 2 cells) as you can see the call to grub_fdt_set_reg64 in the prepare_xen_module_params.

Understood! I will apply this patch next week.

Daniel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.