Skip to content

Commit ec46969

Browse files
effective-lightardbiesheuvel
authored andcommitted
efi/libstub: Bump up EFI_MMAP_NR_SLACK_SLOTS to 32
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 <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Reviewed-by: Allen Pais <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent 78d4f34 commit ec46969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/efi/libstub/efistub.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ void efi_set_u64_split(u64 data, u32 *lo, u32 *hi)
171171
* the EFI memory map. Other related structures, e.g. x86 e820ext, need
172172
* to factor in this headroom requirement as well.
173173
*/
174-
#define EFI_MMAP_NR_SLACK_SLOTS 8
174+
#define EFI_MMAP_NR_SLACK_SLOTS 32
175175

176176
typedef struct efi_generic_dev_path efi_device_path_protocol_t;
177177

0 commit comments

Comments
 (0)