• Hans de Goede's avatar
    x86/PCI: Revert "x86/PCI: Clip only host bridge windows for E820 regions" · a2b36ffb
    Hans de Goede authored
    This reverts commit 4c5e242d.
    
    Prior to 4c5e242d ("x86/PCI: Clip only host bridge windows for E820
    regions"), E820 regions did not affect PCI host bridge windows.  We only
    looked at E820 regions and avoided them when allocating new MMIO space.
    If firmware PCI bridge window and BAR assignments used E820 regions, we
    left them alone.
    
    After 4c5e242d, we removed E820 regions from the PCI host bridge
    windows before looking at BARs, so firmware assignments in E820 regions
    looked like errors, and we moved things around to fit in the space left
    (if any) after removing the E820 regions.  This unnecessary BAR
    reassignment broke several machines.
    
    Guilherme reported that Steam Deck fails to boot after 4c5e242d.  We
    clipped the window that contained most 32-bit BARs:
    
      BIOS-e820: [mem 0x00000000a0000000-0x00000000a00fffff] reserved
      acpi PNP0A08:00: clipped [mem 0x80000000-0xf7ffffff window] to [mem 0xa0100000-0xf7ffffff windo...
    a2b36ffb
pci_x86.h 6.7 KB