Skip to content

Fix boot hang issue on Ampere Emag server

Jia He linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2efi: libstub: Fix the retriving of supported rutime servicesdrivers/firmware/efi/libstub/efi-stub.c+2 -01 reply
2/2efi: Introduce efi_get_supported_rt_services() to get the runtime services maskdrivers/firmware/efi/arm-runtime.c drivers/firmware/efi/efi.c include/linux/efi.h+24 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix boot hang issue on Ampere Emag server

I met a hung task warning and then kernel was hung forever with latest kernel on an Ampere Emag server.

The root cause is kernel was hung when invoking an efi rts call to set the RandomSeed variable during the booting stage. The arch_efi_call_virt call (set_variable) was never returned and then caused the hung task error.

On the Emag server, efi_rt_services_supported(EFI_RT_SUPPORTED_SET_VARIABLE) is returned with "true"

Fix it by introducing the efi_get_supported_rt_services() and then determine to set or clear the runtime services bit of efi.flags.

Jia He (2):
efi: libstub: Fix the retriving of supported rutime services
efi: Introduce efi_get_supported_rt_services() to get the runtime
services mask

 drivers/firmware/efi/arm-runtime.c      |  5 ++++-
 drivers/firmware/efi/efi.c              | 28 +++++++++++++++++--------
 drivers/firmware/efi/libstub/efi-stub.c |  2 ++
 include/linux/efi.h                     |  1 +
 4 files changed, 26 insertions(+), 10 deletions(-)
Signature · 1 line
2.25.1