Skip to content

efi: arm64: Introduce /proc/efi/memreserve to tell the persistent pages

Masayoshi Mizuma kexec linux-arm-kernel linux-efi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v11 patch 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2efi: add /proc/efi directorydrivers/firmware/efi/efi.c+22 -00 replies
2/2efi: arm64: Introduce /proc/efi/memreserve to tell the persistent pagesdrivers/firmware/efi/efi.c+72 -31 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] efi: arm64: Introduce /proc/efi/memreserve to tell the persistent pages

From: Masayoshi Mizuma <[email protected]>

kexec reboot sometime fails in early boot sequence on aarch64 machine. That is because kexec overwrites the LPI property tables and pending tables with the initrd.

To avoid the overwrite, introduce /proc/efi/memreserve to tell the tables region to kexec so that kexec can avoid the memory region to locate initrd.

kexec also needs a patch to handle /proc/efi/memreserve. I'm preparing the patch for kexec.

Changelog
v2: - Change memreserve file location from sysfs to procfs.
memreserve may exceed the PAGE_SIZE in case efi_memreserve_root has a lot of entries. So we cannot use sysfs_kf_seq_show(). Use seq_printf() in procfs instead.

Masayoshi Mizuma (2):
efi: add /proc/efi directory
efi: arm64: Introduce /proc/efi/memreserve to tell the persistent
pages

 drivers/firmware/efi/efi.c | 93 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 92 insertions(+), 1 deletion(-)
Signature · 7 lines
2.18.1


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec