Skip to contentSkip to conversation

arm/docs: Drop mentioning of ACPI for properties under "hypervisor" node

PATCH In review Oleksandr Tyshchenko 3 participants 4 messages Dec 9, 2021 – Dec 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/docs: Drop mentioning of ACPI for properties under "hypervisor" node

From: Oleksandr Tyshchenko <[email protected]>

Remove the following sentence:
"This property is unnecessary when booting Dom0 using ACPI." for "reg" and "interrupts" properties as the initialization is not done via device-tree "hypervisor" node in that case anyway.

---
 docs/misc/arm/device-tree/guest.txt | 2 --
 1 file changed, 2 deletions(-)
docs/misc/arm/device-tree/guest.txt +0 -2
index c115751..2b974bb 100644
@@ -15,11 +15,9 @@ the following properties:
   or equal to gnttab_max_grant_frames()).
   Regions 1...N are extended regions (unused address space) for mapping foreign
   GFNs and grants, they might be absent if there is nothing to expose.
-  This property is unnecessary when booting Dom0 using ACPI.
 
 - interrupts: the interrupt used by Xen to inject event notifications.
   A GIC node is also required.
-  This property is unnecessary when booting Dom0 using ACPI.
 
 To support UEFI on Xen ARM virtual platforms, Xen populates the FDT "uefi" node
 under /hypervisor with following parameters:
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Oleksandr Tyshchenko

From: Oleksandr Tyshchenko <[email protected]>

Remove the following sentence:
"This property is unnecessary when booting Dom0 using ACPI." for "reg" and "interrupts" properties as the initialization is not done via device-tree "hypervisor" node in that case anyway.

Quoted 23 lines
---
 docs/misc/arm/device-tree/guest.txt | 2 --
 1 file changed, 2 deletions(-)
docs/misc/arm/device-tree/guest.txt +0 -2
index c115751..2b974bb 100644
@@ -15,11 +15,9 @@ the following properties:
   or equal to gnttab_max_grant_frames()).
   Regions 1...N are extended regions (unused address space) for mapping foreign
   GFNs and grants, they might be absent if there is nothing to expose.
-  This property is unnecessary when booting Dom0 using ACPI.
 
 - interrupts: the interrupt used by Xen to inject event notifications.
   A GIC node is also required.
-  This property is unnecessary when booting Dom0 using ACPI.
 
 To support UEFI on Xen ARM virtual platforms, Xen populates the FDT "uefi" node
 under /hypervisor with following parameters:
Signature · 1 line
2.7.4
#2 lore raw
In reply to Oleksandr Tyshchenko

Hi Oleksandr,

Quoted 6 lines · Oleksandr Tyshchenko

From: Oleksandr Tyshchenko <[email protected]>

Remove the following sentence:
"This property is unnecessary when booting Dom0 using ACPI." for "reg" and "interrupts" properties as the initialization is not done via device-tree "hypervisor" node in that case anyway.

Why do you think that? On ACPI, the hypervisor node is used to discover whether the OS is running on top of Xen (see [1]).

For dom0, Xen will actually create the hypervisor node with the compatible property and the uefi bits (see [2]).

The properties "regs" and "interrupts" are not created for ACPI and therefore this should be mentioned in the Device-Tree bindings.

Quoted 12 lines
---
  docs/misc/arm/device-tree/guest.txt | 2 --
  1 file changed, 2 deletions(-)
docs/misc/arm/device-tree/guest.txt +0 -0
index c115751..2b974bb 100644
@@ -15,11 +15,9 @@ the following properties:
    or equal to gnttab_max_grant_frames()).

docs/misc/arm/device-tree/guest.txt the following properties: · line 23

Quoted 10 lines
docs/misc/arm/device-tree/guest.txt +0 -2
    Regions 1...N are extended regions (unused address space) for mapping foreign
    GFNs and grants, they might be absent if there is nothing to expose.
-  This property is unnecessary when booting Dom0 using ACPI.
 
  - interrupts: the interrupt used by Xen to inject event notifications.
    A GIC node is also required.
-  This property is unnecessary when booting Dom0 using ACPI.
 
  To support UEFI on Xen ARM virtual platforms, Xen populates the FDT "uefi" node
  under /hypervisor with following parameters:

Cheers,

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/xen/enlighten.c#n253

[2] https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/arm/acpi/domain_build.c;h=bbdc90f92c003c0c6d0f0b0290a1776336224719;hb=HEAD#l90

Signature · 1 line
Julien Grall
author
#3 lore raw
Quoted 1 line · Julien Grall

Hi Oleksandr,

Hi Julien

Quoted 9 lines · Oleksandr Tyshchenko
Quoted 6 lines

From: Oleksandr Tyshchenko <[email protected]>

Remove the following sentence:
"This property is unnecessary when booting Dom0 using ACPI." for "reg" and "interrupts" properties as the initialization is not done via device-tree "hypervisor" node in that case anyway.

Quoted 5 lines

Why do you think that? On ACPI, the hypervisor node is used to discover whether the OS is running on top of Xen (see [1]).

For dom0, Xen will actually create the hypervisor node with the compatible property and the uefi bits (see [2]).

The properties "regs" and "interrupts" are not created for ACPI and therefore this should be mentioned in the Device-Tree bindings.

You are right. I missed that fact. Current patch is not needed in this case.

Quoted 29 lines
Quoted 14 lines

---
  docs/misc/arm/device-tree/guest.txt | 2 --

  1 file changed, 2 deletions(-)
docs/misc/arm/device-tree/guest.txt +0 -0
index c115751..2b974bb 100644
@@ -15,11 +15,9 @@ the following properties:

    or equal to gnttab_max_grant_frames()).

Quoted 8 lines

    Regions 1...N are extended regions (unused address space) for mapping foreign GFNs and grants, they might be absent if there is nothing to expose. -  This property is unnecessary when booting Dom0 using ACPI.
    - interrupts: the interrupt used by Xen to inject event notifications. A GIC node is also required.
-  This property is unnecessary when booting Dom0 using ACPI.
    To support UEFI on Xen ARM virtual platforms, Xen populates the FDT "uefi" node under /hypervisor with following parameters:

Cheers,

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/xen/enlighten.c#n253

[2] https://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/arch/arm/acpi/domain_build.c;h=bbdc90f92c003c0c6d0f0b0290a1776336224719;hb=HEAD#l90

Signature · 3 lines
Regards,

Oleksandr Tyshchenko