[PATCH 0/3] uefi: fix fwts_uefi_rt_support_status_get()

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Dec 27 20:52:22 UTC 2020


The UEFI 2.8 Errata A specification has clarified that
RuntimeServicesSupported is not a UEFI variable but a value in the
EFI_RT_PROPERTIES_TABLE configuration table. Since Linux 5.11 the value can
be retrieved via an IOCTL call.

Replace the code trying to read the non-existent RuntimeServicesSupported
variable by the IOCTL call.

If RuntimeServicesSupported == 0, no runtime service is supported.

Heinrich Schuchardt (3):
  uefi: update header for EFI runtime services
  uefi: fix fwts_uefi_rt_support_status_get()
  uefi: significance of RuntimeServicesSupported == 0

 src/lib/include/fwts_efi_runtime.h       |  6 +++
 src/lib/include/fwts_uefi.h              |  4 +-
 src/lib/src/fwts_uefi.c                  | 47 ++++++-----------------
 src/uefi/uefirtmisc/uefirtmisc.c         | 21 ++--------
 src/uefi/uefirttime/uefirttime.c         | 49 +++++++-----------------
 src/uefi/uefirtvariable/uefirtvariable.c | 49 +++++++-----------------
 6 files changed, 51 insertions(+), 125 deletions(-)

--
2.29.2




More information about the fwts-devel mailing list