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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:55 +0000 (10:45 +0200)
commitdafbcfb8ffe6c6e4021f1d784d0a9cf62a894697
tree34dfb0f257727452384ec47a2ddfe7c680567f44
parent4f687721a981a657aef002ffb8aa7329e1950974
efi/libstub: Bump up EFI_MMAP_NR_SLACK_SLOTS to 32

commit ec4696925da6b9baec38345184403ce9e29a2e48 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/libstub/efistub.h