All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] lsefisystab: support device tree
@ 2019-07-06  9:11 Heinrich Schuchardt
  2019-07-06 11:06 ` Leif Lindholm
  0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2019-07-06  9:11 UTC (permalink / raw)
  To: Daniel Kiper; +Cc: Leif Lindholm, grub-devel, Heinrich Schuchardt

The device tree may passed by the firmware as UEFI configuration table.

Let lsefisystab display a short text and not only the GUID for the device
tree.

Here is an example output:

grub> lsefisystab
Address: 0xbff694d8
Signature: 5453595320494249 revision: 00020046
Vendor: Das U-Boot, Version=20190700
2 tables:
0xbe741000  eb9d2d31-2d88-11d3-9a160090273fc14d   SMBIOS
0x87f00000  b1b621d5-f19c-41a5-830bd9152c69aae0   DEVICE TREE

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 grub-core/commands/efi/lsefisystab.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/grub-core/commands/efi/lsefisystab.c b/grub-core/commands/efi/lsefisystab.c
index df1030221..97a838541 100644
--- a/grub-core/commands/efi/lsefisystab.c
+++ b/grub-core/commands/efi/lsefisystab.c
@@ -40,6 +40,7 @@ static const struct guid_mapping guid_mappings[] =
     { GRUB_EFI_CRC32_GUIDED_SECTION_EXTRACTION_GUID,
       "CRC32 GUIDED SECTION EXTRACTION"},
     { GRUB_EFI_DEBUG_IMAGE_INFO_TABLE_GUID, "DEBUG IMAGE INFO"},
+    { GRUB_EFI_DEVICE_TREE_GUID, "DEVICE TREE"},
     { GRUB_EFI_DXE_SERVICES_TABLE_GUID, "DXE SERVICES"},
     { GRUB_EFI_HCDP_TABLE_GUID, "HCDP"},
     { GRUB_EFI_HOB_LIST_GUID, "HOB LIST"},
--
2.20.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] lsefisystab: support device tree
  2019-07-06  9:11 [PATCH 1/1] lsefisystab: support device tree Heinrich Schuchardt
@ 2019-07-06 11:06 ` Leif Lindholm
  2019-07-11 15:21   ` Daniel Kiper
  0 siblings, 1 reply; 3+ messages in thread
From: Leif Lindholm @ 2019-07-06 11:06 UTC (permalink / raw)
  To: Heinrich Schuchardt; +Cc: Daniel Kiper, grub-devel

On Sat, Jul 06, 2019 at 11:11:02AM +0200, Heinrich Schuchardt wrote:
> The device tree may passed by the firmware as UEFI configuration table.
> 
> Let lsefisystab display a short text and not only the GUID for the device
> tree.
> 
> Here is an example output:
> 
> grub> lsefisystab
> Address: 0xbff694d8
> Signature: 5453595320494249 revision: 00020046
> Vendor: Das U-Boot, Version=20190700
> 2 tables:
> 0xbe741000  eb9d2d31-2d88-11d3-9a160090273fc14d   SMBIOS
> 0x87f00000  b1b621d5-f19c-41a5-830bd9152c69aae0   DEVICE TREE
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Good idea!
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

This is also a good nudge that I ought to go through and update that
table in general. SMBIOS 3.0, ESRT and MEMATTR are missing - and some
of the others are architecture-specific.

/
    Leif

> ---
>  grub-core/commands/efi/lsefisystab.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/grub-core/commands/efi/lsefisystab.c b/grub-core/commands/efi/lsefisystab.c
> index df1030221..97a838541 100644
> --- a/grub-core/commands/efi/lsefisystab.c
> +++ b/grub-core/commands/efi/lsefisystab.c
> @@ -40,6 +40,7 @@ static const struct guid_mapping guid_mappings[] =
>      { GRUB_EFI_CRC32_GUIDED_SECTION_EXTRACTION_GUID,
>        "CRC32 GUIDED SECTION EXTRACTION"},
>      { GRUB_EFI_DEBUG_IMAGE_INFO_TABLE_GUID, "DEBUG IMAGE INFO"},
> +    { GRUB_EFI_DEVICE_TREE_GUID, "DEVICE TREE"},
>      { GRUB_EFI_DXE_SERVICES_TABLE_GUID, "DXE SERVICES"},
>      { GRUB_EFI_HCDP_TABLE_GUID, "HCDP"},
>      { GRUB_EFI_HOB_LIST_GUID, "HOB LIST"},
> --
> 2.20.1
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] lsefisystab: support device tree
  2019-07-06 11:06 ` Leif Lindholm
@ 2019-07-11 15:21   ` Daniel Kiper
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Kiper @ 2019-07-11 15:21 UTC (permalink / raw)
  To: Leif Lindholm; +Cc: Heinrich Schuchardt, grub-devel, Daniel Kiper

On Sat, Jul 06, 2019 at 12:06:06PM +0100, Leif Lindholm wrote:
> On Sat, Jul 06, 2019 at 11:11:02AM +0200, Heinrich Schuchardt wrote:
> > The device tree may passed by the firmware as UEFI configuration table.
> >
> > Let lsefisystab display a short text and not only the GUID for the device
> > tree.
> >
> > Here is an example output:
> >
> > grub> lsefisystab
> > Address: 0xbff694d8
> > Signature: 5453595320494249 revision: 00020046
> > Vendor: Das U-Boot, Version=20190700
> > 2 tables:
> > 0xbe741000  eb9d2d31-2d88-11d3-9a160090273fc14d   SMBIOS
> > 0x87f00000  b1b621d5-f19c-41a5-830bd9152c69aae0   DEVICE TREE
> >
> > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>
> Good idea!
> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Daniel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-11 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-06  9:11 [PATCH 1/1] lsefisystab: support device tree Heinrich Schuchardt
2019-07-06 11:06 ` Leif Lindholm
2019-07-11 15:21   ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.