]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
efi/libstub: Bump up EFI_MMAP_NR_SLACK_SLOTS to 32
authorHamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Mon, 9 Dec 2024 18:20:39 +0000 (13:20 -0500)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 19 Dec 2024 10:25:06 +0000 (11:25 +0100)
Recent platforms require more slack slots than the current value of
EFI_MMAP_NR_SLACK_SLOTS, otherwise they fail to boot. The current
workaround is to append `efi=disable_early_pci_dma` to the kernel's
cmdline. So, bump up EFI_MMAP_NR_SLACK_SLOTS to 32 to allow those
platforms to boot with the aforementioned workaround.

Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Allen Pais <apais@linux.microsoft.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efistub.h

index 76e44c185f29e1758c09dd02988f3b723d3793a0..e95ce6ae5c26b070248aa10d5e003dd4f24b3c55 100644 (file)
@@ -171,7 +171,7 @@ void efi_set_u64_split(u64 data, u32 *lo, u32 *hi)
  * the EFI memory map. Other related structures, e.g. x86 e820ext, need
  * to factor in this headroom requirement as well.
  */
-#define EFI_MMAP_NR_SLACK_SLOTS        8
+#define EFI_MMAP_NR_SLACK_SLOTS        32
 
 typedef struct efi_generic_dev_path efi_device_path_protocol_t;