Fitting Four 32 GB Resizable BARs Behind a PCIe Switch on Linux
Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.
AMD’s ROCm peer-to-peer support on Linux requires each Radeon AI PRO R9700’s full 32 GB BAR to be mapped, prompting developer Wendell (of Level1Techs) to release the gpu-rebar-layout kernel module on GitHub after his Broadcom PEX88096 PCIe switch build with four R9700s and two RTX 3090s failed to POST with Resizable BAR enabled. The BIOS stalls at the white VGA light because each 32 GB BAR consumes 64 GB of its address space, and Linux 7.0.6’s pbus_size_mem() bridge-window sizing bug—which sums child BAR sizes without leaving alignment gaps—allocated only two of the four R9700 windows out of a roughly 128.6 GB switch window, returning “can't assign; no space.” An unpatched v7.4-rc1 kernel placed three of four cards in a control run, and a pending mailing-list patch series addresses the sizing bug, though this board will still require the module’s resize and rescan with padding disabled (pad=0). The work matters because multi-GPU P2P on consumer and workstation hardware depends on large BARs that firmware and kernel bridge-window allocation routinely fail to provision, and the module relies on kernel internals that could break in any release. Watch for the sizing patch to land upstream and whether mainline kernels can then allocate all four 32 GB BARs without the out-of-tree module.
Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.
Named in this story
AMD Radeon AI PRO R9700, Broadcom PEX88096, Linux, NVIDIA RTX 3090, AMD ROCm