Message ID | 20160212124542.GA7051@dhcp-128-65.nay.redhat.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Fri, 12 Feb, at 08:45:42PM, Dave Young wrote: > > Yes, rethink about this issue, how about something like below: Let's put a pin this idea. I've got another approach that I want to explore a little first. I'll send the patches out soon. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
--- linux-x86.orig/arch/x86/platform/efi/efi-bgrt.c +++ linux-x86/arch/x86/platform/efi/efi-bgrt.c @@ -107,4 +107,10 @@ void __init efi_bgrt_init(void) memcpy_fromio(bgrt_image, image, bgrt_image_size); if (ioremapped) early_iounmap(image, bmp_header.size); + + /* + * Invalidate bgrt table because kexec reboot will access the bgrt image + * which stays in freed boot service area. + */ + bgrt_tab->status &= 0xfe; }