[RFC 0/2] x86/PCI: Ignore EFI memmap MMIO entries

From: Hans de Goede
Date: Mon Feb 14 2022 - 10:18:28 EST


Hi All,

Here is a new attempt at fixing the issue where on some laptops
there are EFI memmap MMIO entries covering the entire PCI bridge
mem window, causing Linux to be unable to find free space to
assign to unassigned BARs.

This is marked as RFC atm because I'm waiting for feedback from
testers.

Regards,

Hans


Hans de Goede (2):
x86/e820: Map EFI_MEMORY_MAPPED_IO to a new E820_TYPE_MMIO type
x86/PCI: Ignore EFI memmap MMIO entries

arch/x86/include/asm/e820/types.h | 3 +++
arch/x86/include/asm/iommu.h | 3 ++-
arch/x86/kernel/e820.c | 5 +++++
arch/x86/kernel/resource.c | 4 ++++
arch/x86/mm/ioremap.c | 1 +
arch/x86/pci/mmconfig-shared.c | 15 +++++++++++----
arch/x86/platform/efi/efi.c | 5 ++++-
drivers/firmware/efi/libstub/x86-stub.c | 5 ++++-
8 files changed, 34 insertions(+), 7 deletions(-)

--
2.33.1