Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "UEFI: Don't pass boot services regions to SetVirtualAddressMap()"

This reverts commit 1acba98f810a14b1255e34bc620594f83de37e36.

The firmware on both Dave's Thinkpad and Maarten's Macbook Pro appear to
rely on the old behaviour, and their machines fail to boot with the
above commit.

Reported-by: Dave Young <dyoung@redhat.com>
Reported-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Seth Forshee <seth.forshee@canonical.com>
Cc: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>

-7
-7
arch/x86/platform/efi/efi.c
··· 931 931 va = efi_ioremap(md->phys_addr, size, 932 932 md->type, md->attribute); 933 933 934 - if (!(md->attribute & EFI_MEMORY_RUNTIME)) { 935 - if (!va) 936 - pr_err("ioremap of 0x%llX failed!\n", 937 - (unsigned long long)md->phys_addr); 938 - continue; 939 - } 940 - 941 934 md->virt_addr = (u64) (unsigned long) va; 942 935 943 936 if (!va) {