[PATCH 0/3] efi_loader: disk: add EFI_PARTITION_INFO_PROTOCOL support

Javier Martinez Canillas javierm at redhat.com
Fri Jun 13 10:57:35 CEST 2025


This patch series implements support for the EFI_PARTITION_INFO_PROTOCOL,
to provide cached partition information for GPT partition types.

The EFI specification mentions that the protocol can understand legacy MBR
partition types, but that's for backward compatibility and not implemented
by this series. It can be added as a follow-up if needed, to make it fully
compliant with the spec.

Patch #1 moves the logic to get a GPT partition table entry to a helper
part_get_gpt_pte() function.

Patch #2 exposes that helper function to be used by the efi_loader.

Patch #3 implements the actual protocol support using the mentioned helper
to get the GPT partitions table entries.


Javier Martinez Canillas (3):
  disk: efi: Move logic to get a GPT entry into a helper function
  disk: efi: expose the part_get_gpt_pte() helper function
  efi_loader: disk: add EFI_PARTITION_INFO_PROTOCOL support

 disk/part_efi.c           | 67 +++++++++++++++++++++++----------------
 include/part.h            | 14 ++++++++
 include/part_efi.h        | 20 ++++++++++++
 lib/efi_loader/efi_disk.c | 38 ++++++++++++++++++++--
 4 files changed, 110 insertions(+), 29 deletions(-)

-- 
2.49.0

base-commit: 2ab10ed2399b0c1c790733884935c94ad65aa2a8
branch: add-efi-part-info-proto



More information about the U-Boot mailing list