diff options
| author | Hamza Mahfooz <hamzamahfooz@linux.microsoft.com> | 2024-12-09 13:20:39 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-25 10:45:55 +0200 |
| commit | dafbcfb8ffe6c6e4021f1d784d0a9cf62a894697 (patch) | |
| tree | 34dfb0f257727452384ec47a2ddfe7c680567f44 /drivers/firmware | |
| parent | 4f687721a981a657aef002ffb8aa7329e1950974 (diff) | |
| download | linux-dafbcfb8ffe6c6e4021f1d784d0a9cf62a894697.tar.gz linux-dafbcfb8ffe6c6e4021f1d784d0a9cf62a894697.tar.bz2 linux-dafbcfb8ffe6c6e4021f1d784d0a9cf62a894697.zip | |
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>
Diffstat (limited to 'drivers/firmware')
| -rw-r--r-- | drivers/firmware/efi/libstub/efistub.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/efi/libstub/efistub.h b/drivers/firmware/efi/libstub/efistub.h index fc18fd649ed7..5ecb9d3f3e9f 100644 --- a/drivers/firmware/efi/libstub/efistub.h +++ b/drivers/firmware/efi/libstub/efistub.h @@ -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; |
