Skip to content

ACPI, x86/efi: Remove ACPI BGRT tables for kexec

Matt Fleming kexec linux-acpi linux-efi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ACPICA: Tables: Add function to remove ACPI tablesdrivers/acpi/acpica/tbxface.c include/acpi/acpixf.h+57 -05 replies
2/2x86/efi: Delete ACPI BGRT when booting via kexecarch/x86/include/asm/efi.h arch/x86/kernel/setup.c arch/x86/platform/efi/efi.c+42 -10 replies

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] ACPI, x86/efi: Remove ACPI BGRT tables for kexec

Based on Dave's report that the BGRT image regions are being accessed on kexec reboot (which by that time contain garbage),

https://lkml.kernel.org/r/20160127112044.GA2961-0VdLhd/A9Pl+NNSt+8eSiB/[email protected]

the following patches simply delete the table when doing a kexec boot.

This is part of a wider compaign to stop kexec-specific code from leaking into all parts of arch/x86. Instead of sprinkling "if (efi_setup)", kexec should be shaping the platform information to more accurately describe which features are still available, so that existing drivers work transparently without kexec quirks.

Matt Fleming (2):
ACPICA: Tables: Add function to remove ACPI tables x86/efi: Delete ACPI BGRT when booting via kexec

 arch/x86/include/asm/efi.h    |  1 +
 arch/x86/kernel/setup.c       |  4 +++-
 arch/x86/platform/efi/efi.c   | 38 ++++++++++++++++++++++++++++++
 drivers/acpi/acpica/tbxface.c | 54 +++++++++++++++++++++++++++++++++++++++++++
 include/acpi/acpixf.h         |  3 +++
 5 files changed, 99 insertions(+), 1 deletion(-)
Signature · 1 line
2.6.2