ReBarUEFI utility can enable Resizable BAR on older gaming PCs

Alfonso Maruccia

Posts: 1,025   +301
Staff
In a nutshell: The Resizable BAR (Base Address Register) feature exploits the PCI Express bus to significantly increase CPU access to more significant portions of a GPU's memory. Intel 10th Gen Core, Zen 3, and newer CPUs provide native support for Resizable BAR, but older systems could get the same results by applying a custom-made patch to their motherboard UEFI firmware.

Resizable BAR and AMD's equivalent technology, Smart Access Memory (SAM), have been available for motherboards and PC hardware since 2020. The performance-improving feature became part of the PCI Express bus with Gen 2.0, which means users could theoretically access it on much older systems running a compatible GPU.

Thanks to a tool named ReBarUEFI, users can now put this theory to the test. The open-source utility provides a UEFI DXE driver capable of enabling Resizable BAR on systems that don't support it per official specs. The tool can inject its module in the UEFI firmware so that it gets executed on every boot.

The ReBarDxe module replaces a specific function in the PCI bus resource allocation protocol (PreprocessController), checking whether the hardware can utilize Resizable BAR. If so, the module enables the feature and even sets the size of the NVRAM memory buffer.

ReBarUEFI's developer states that it successfully tested Resizable BAR on a system equipped with a Core i5-3470 CPU (2012) and a Sapphire Nitro+ RX 580 8GB GPU (2017). The feature increased performance in gaming by up to 12 percent, with a 2GB BAR size. Tom's Hardware notes that the mod can work on even older systems based on Sandy Bridge CPUs (2011).

The developer says that Resizable BAR can offer noticeable performance benefits and is even required for Intel Arc GPUs to function correctly. The project's GitHub repository provides a list of compatible motherboards and requests that users reply to the list to confirm the utility works on their specific hardware configuration.

Most UEFI firmware will accept unsigned and patched modules even when the Secure Boot feature is enabled, so running games should not present any problems. Some Radeon GPUs can gain up to 24 percent more performance in some titles, while others can experience a frame rate drop. Both Nvidia and AMD GPU drivers now include individual profiles for games that can benefit from the Resizable BAR/SAM feature.

Permalink to story.

 
Having a tool that is able to unofficially modify or patch UEFI simply by injecting a payload into it just strikes me as a massive security vulnerability.

But then again, if we are hearing about it now, you can bet the government has had the ability to do this for the past 10 years.
 
Having a tool that is able to unofficially modify or patch UEFI simply by injecting a payload into it just strikes me as a massive security vulnerability.

But then again, if we are hearing about it now, you can bet the government has had the ability to do this for the past 10 years.
Well, now that You know, You have to run, as They are on their way to You...
 
Having a tool that is able to unofficially modify or patch UEFI simply by injecting a payload into it just strikes me as a massive security vulnerability.

But then again, if we are hearing about it now, you can bet the government has had the ability to do this for the past 10 years.

@#_dsat subject 234752 for questioning
 
Interesting! If this works for me, Arc A770 just made it back to my short list of possible GPU replacements for my Core i5-6600K system.
 
The sole reason why it was not supported on older platforms, is because both party's pushed to newer platforms. Ill try it out later with a 2700x + 6700XT.

 
All fine and dandy but ultimately useless for Nvidia 20 series and older Nvidia cards. Those do not support ReBAR. 20 series and newer dont even support vBIOS editing (so ReBAR could be modded in) so good luck getting ReBAR to work there even if your CPU and motherboard officially supports it.
 
Back