[PATCH v2 0/2] uefi: fix fwts_uefi_rt_support_status_get()

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Dec 28 18:57:26 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.

Test results for current U-Boot with and without the IOCTL ares available
as:

https://github.com/U-Boot-EFI/u-boot-fwts-results/blob/master/results-with-ioctl.log
https://github.com/U-Boot-EFI/u-boot-fwts-results/blob/master/results-without-ioctl.log

v2:
	correct status tests

Heinrich Schuchardt (2):
  uefi: update header for EFI runtime services
  uefi: fix fwts_uefi_rt_support_status_get()

 src/lib/include/fwts_efi_runtime.h       |  6 ++
 src/lib/include/fwts_uefi.h              |  4 +-
 src/lib/src/fwts_uefi.c                  | 49 +++++-----------
 src/uefi/uefirtmisc/uefirtmisc.c         | 27 ++++-----
 src/uefi/uefirttime/uefirttime.c         | 72 ++++++++++--------------
 src/uefi/uefirtvariable/uefirtvariable.c | 66 +++++++++-------------
 6 files changed, 90 insertions(+), 134 deletions(-)

--
2.29.2




More information about the fwts-devel mailing list