Any RAM that collided with those BAR windows became the infamous “PCI memory hole” and was hidden from the OS. With a lot of devices you could easily lose 512 MB or more of low RAM.
1.2 The 64-bit era revealed the bottleneck
Modern GPUs (8 GB, 16 GB, 24 GB VRAM), NVMe controllers, 40 GbE NICs with huge DMA rings, SR-IOV virtual functions, and especially Resizable BAR / Large BAR need hundreds of MB to multiple gigabytes of MMIO window. Trying to stuff that inside 0–4 GB is impossible:
code
<—— 4 GB boundary —————————————————————————————>
0x0000_0000 0xFFFF_FFFF
low RAM…….|| GPU BAR 8 GB ??? || NIC BAR 256 MB ||…
When the firmware can place MMIO above 0x1_0000_0000 (4 GB), the low RAM is preserved and gigantic BARs become feasible.
2. What exactly does “Above 4G Decoding” do?
Toggles the firmware’s resource allocator:
• Disabled → Only addresses below 4 GB may be assigned to 32-bit and 64-bit BARs alike (legacy behavior).
• Enabled →
• 64-bit capable BARs (01b) are forced above 4 GB,
• 32-bit BARs stay below 4 GB,
• Optional: firmware can even remap RAM holes to “high memory” so the OS still sees the full installed RAM (the memory remap option you often see next to Above 4G).
Updates ACPI & UEFI hand-off tables:
• The ACPI MCFG table (Extended PCIe Configuration ‑ ECAM) must advertise which address range the OS can use for MMCONFIG.
• The E820 or UEFI GetMemoryMap() handed to the kernel must mark the >4 GB MMIO windows as Reserved so the OS will not treat them as RAM.
Modifies the root-complex decode registers (Intel MCHBAR / AMD SMN):
• Chipset registers define which address ranges are forwarded to which PCIe root ports or internal devices. Above 4G toggles the bits that enable “high decode”.
3. Interaction with Operating Systems
• 64-bit OSes (Windows x64, Linux x86-64, macOS, most hypervisors) fully support ≥ 48-bit physical addresses. They love Above 4G because it gives them more low-memory and avoids ugly “hardware reserved” chunks.
• 32-bit OSes without PAE (old DOS, Win9x, early XP) cannot see anything above 4 GB. If you enable Above 4G, devices assigned high MMIO will simply not work, causing POST beeps or OS crashes.
• 32-bit OSes with PAE (some Linux distros, Win 2000/XP PAE) can technically access >4 GB physical space, but many 32-bit device drivers were never written to issue 64-bit addresses and will fail. Vendors therefore tell you to disable Above 4G when running 32-bit guests.
4. Relationship to other buzzwords
BIOS option
Relation
TL;DR
Memory Remap / Memory Hole Remapping
Usually works with Above 4G. Moves any RAM that was forced out by BARs back into high addresses so the OS can still use it.
Resizable BAR (ReBAR, PCIe 4.0)
Once Above 4G is ON, the firmware/driver can grow a GPU BAR from 256 MB to 4 GB or more. Without Above 4G there is often no contiguous room to enlarge the BAR.
SR-IOV & GPU Passthrough
Hyper-visors like KVM/ESXi must map VF BARs into guest memory. If Above 4G is OFF they run out of low MMIO and keep only a few VFs enabled.
CSM / Legacy BIOS
CSM modules run 16-bit PCI code that sometimes assumes all BARs are <4 GB. Above 4G therefore forces CSM = OFF on several boards.
Crypto Mining mode
Marketing gimmick: mining rigs with eight GPUs need 8×256 MB BARs = 2 GB of MMIO. Vendors just pre-enable Above 4G in “mining” presets.
5. Nuts-and-Bolts: What the firmware does during PCI enumeration
Below is a greatly simplified log of what a UEFI DXE PCI bus driver might do when Above 4G is enabled:
code
FOR each root bus:
Scan all devices, read VID/DID, BAR0..5
size = DecodeBARSize(BARx) // how big is the window?
type = BARx[1:0] // 00=IO,10=32,01=64
prefetch = BARx[3] // prefetchable?
COLLECT:
• totalIO32
• totalMem32 (non-pref)
• totalPref32 (prefetchable)
• totalMem64 (prefetchable+non-pref)
ALLOCATE:
Reserve fixed motherboard ranges (APIC, HPET, TSEG, ROMs…)
Place:
IO32 windows < 0x10000 (ISA legacy ports)
Mem32 windows < 4 GB
Mem64 windows ≥ 4 GB boundary, page-aligned to power-of-2 size
PROGRAM:
Write new base values into each BAR pair
Set bus/bridge apertures
UPDATE TABLES:
Build ACPI _CRS for each PCI0 device
PUBLISH to OS via EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL
When the OS boots it simply replays or tweaks these ranges unless you have pci=realloc (Linux) or ACPI says the OS should fully re-enumerate.
Without Above 4G there is simply no 10 GB gap under 4 GB, so the card would fall back to a 256 MB or 32 MB BAR and lose performance.
6.2 Eight PCIe x1 mining GPUs on a B450 board
code
BAR budget (per GPU) : 256 MB prefetchable
8 × 256 MB : 2 GB total
+
Chipset & NVMe, NICs : ~ 0.5 GB
Total below 4 GB? : 2.5 GB – barely possible but OS might choke
Enable Above 4G : Firmware puts all 8 BARs at 0x0001_0000_0000 … 0x0001_7FFF_FFFF
Low 4 GB left clean : 3.5 GB usable RAM + minimal carve-outs → Faster boot, fewer errors
7. Gotchas & troubleshooting
• System hangs at POST after enabling Above 4G
→ You probably still have CSM-only video option ROMs or a 32-bit expansion ROM. Disable CSM, flash a UEFI‐capable GPU firmware, or revert the setting.
• VM passthrough error “BAR 0 region 64-bit only but hw supports 32-bit”
→ Guests are using SeaBIOS (32-bit). Switch the guest firmware to OVMF/UEFI so that QEMU exposes >4 GB MMIO to the guest.
• Windows shows “Code 12: this device cannot find enough free resources”
→ Same story: Above 4G off, not enough MMIO. Turn it on, then bcdedit /set pciupstream 1 (rarely needed) or re-install the driver so it re-queries resources.
• I enabled Above 4G but still see a 256 MB Resizable BAR, why?
→ You also need to ENABLE “Resizable BAR” in BIOS and have a GPU + driver that supports it. Above 4G is only the prerequisite.
8. Best-practice cheat sheet
✅ Enable Above 4G if
• You run a 64-bit OS (Windows 10/11 x64, Linux, BSD, VMware/ESXi, Proxmox, etc.)
• You plan to use Resizable BAR, SR-IOV, GPU pass-through, or >4 GB of MMIO heavy devices
🚫 Disable Above 4G if
• You must boot 32-bit Windows/DOS or rely on very old expansion ROMs
• You need Legacy/CSM video initialization that won’t run otherwise
💡 Tip: On most modern boards Above 4G + Memory Remap ON is the fastest, cleanest and safest setting. The days of 32-bit only systems are mostly over.
9. Quick FAQ
Q: Is Above 4G a security risk?
A: No. It merely moves MMIO. IOMMU (VT-d/AMD-Vi) and DMA-protections are orthogonal.
Q: Does it affect RAM overclocking/XMP?
A: No, memory controller timings are unrelated. But moving the memory hole may slightly change stability if you were on the hairy edge of total address space margin.
Q: My motherboard has “Enable 64-bit decoding” per PCIe slot. Same thing?
A: Yes. Some server boards expose per-slot toggles (useful when adding a 32-bit add-in card that breaks otherwise).
Q: Does Above 4G help if I have only 8 GB of system RAM and a mid-range GPU?
A: It rarely hurts and often avoids future headaches, so you can leave it ON.
TL;DR
“Above 4G Decoding” lets the firmware allocate 64-bit-capable PCI(e) MMIO windows at physical addresses beyond the 4 GB barrier.
• Saves low memory,
• Enables gigantic BARs (GPUs, NVMe, SR-IOV),
• Required for Resizable BAR and serious PCIe pass-through,
• Harmless on any 64-bit OS,
• Fatal for some 32-bit legacy environments.
Flip it ON and forget it—unless you live in retro-computing land.