# Pending Linux patch uses MMCONFIG for all PCIe config space, cutting PCI init time by 20%

> **Key takeaway:** Josh Triplett's roughly 50-line patch makes the kernel prefer memory-mapped MMCONFIG over serialized IO port accesses for the first 256 bytes of PCIe configuration space, cutting PCI initialization by about 20% and total boot time by about 9% on a 192-CPU AWS c8i.48xlarge instance.

**Published:** 2026-12-01T11:13:01+00:00 
**Source:** Phoronix Benchmarks & Drivers 
**Category:** kernel-os 
**Canonical URL:** https://fosswire.org/news/pending-linux-patch-uses-mmconfig-for-all-pcie-config-space 

## Summary
A pending Linux kernel patch from longtime open-source developer Josh Triplett changes how the PCI subsystem accesses PCI Express configuration space. Today the kernel falls back to IO-based port accesses for the first 256 bytes of config space even when MMCONFIG is available, and those accesses are serialized. The patch instead prefers MMCONFIG for all PCIe configuration space accesses where the hardware supports it.

The change matters most on large multi-socket and many-core systems, where PCIe devices are often attached per CPU and initialization of many devices becomes a scalability bottleneck. On an AWS c8i.48xlarge with 192 CPUs, Triplett measured PCI init dropping from 266ms to 213ms and boot to a minimal /init falling from 726ms to 661ms. The patch is about 50 lines, disables the behavior on known-problematic K8 systems where the BIOS advertises MMCONFIG but it fails for northbridge devices, and adds a pci=no_prefer_mmconf boot option as an escape hatch.

## How the MMCONFIG preference changes PCIe enumeration
- **Serialized IO accesses:** The kernel currently uses IO-based configuration accesses for the first 256 bytes of PCIe config space, and those accesses are serialized, which limits scalability when many devices are initialized on systems with many CPUs.
- **Measured gains:** On an AWS c8i.48xlarge with 192 CPUs across five boots with and five without the patch, PCI init fell from 266ms to 213ms (about 20% faster) and boot to a minimal /init fell from 726ms to 661ms (about 9% faster).
- **K8 quirk handling:** Some K8 systems advertise MMCONFIG in the BIOS but it fails for northbridge devices, so the patch disables the new behavior on those systems and adds a pci=no_prefer_mmconf kernel parameter for any other problematic hardware.
- **Small footprint:** The change is roughly 50 lines of code, keeping the risk low and the review surface narrow for mainline inclusion.

## Why it matters
Faster PCIe enumeration directly benefits large servers, many-core workstations and virtualized cloud instances where boot latency and device bring-up time are measured in aggregate across fleets. Distributions and system administrators get a boot-time improvement without configuration changes once the patch lands in mainline, while the pci=no_prefer_mmconf option preserves a fallback for older K8 hardware. The patch also shows that targeted PCI core cleanups, not just driver work, still deliver measurable gains on modern Linux systems.