I’ve stumbled upon ReBarUEFI yesterday, and found out that it required modifying BIOS file and reflashing, so I started reading on it.
First thing I did was to acquire a clean copy of my BIOS >Here< and proceeded to modifying it following this guide >Here<.
Soon, I’ve discovered that my BIOS are .cap, so I’ve had to extract the body from the capsule and used UEFItool to insert ReBarDxe.ffs after the last freeform in the dxe volume as instructed, then AFUWIN to flash the modified bios to my motherboard. >Here< .
After flashing the modified BIOS, I turned off CSM, and turned on 4g decode in my motherboard, then went inside windows, and launched ReBarState.exe after compiling it and have got the following window. Same result with the downloaded version. I made sure windows antivirus was off while launching.
@Kuri0 lemme know if you require anything else
Thanks to @Kuri0, Rebar is working with 16gb ram on bios version 1104 <-Already modified for your convenience
Current known issues:-
- 1 Short Beep error during boot, nothing major.
- Doesn’t work with 32GB ram at the moment.
- If ReBar assigns memory, and the Adrenaline tool doesn’t work, reinstall the drivers and it should work.
- My keyboard was not detected when I tried to get into windows safe mode. (For DDU, mainly)
Win key + R, write msconfig.exe and press enter.
Click on Boot tab, check the safe boot box, select which safe boot you want (I use Network). Press OK to restart, then windows will boot you into safe mode.
Run DDU, but press “Clean and do NOT restart”.
Once DDU finishes, repeat step 1, but this time uncheck Safe boot, then press OK and restart into windows normally.
I’ve tested performance with rebar on/off on Cyberpunk 2077 in Lizzie’s Bar during the corpo intro mission with FSR 2.1 set on Auto. (Used Steam FPS counter, so screenshots wouldn’t show the numbers.)
With rebar off: 65-69 FPS
With rebar on: ~74 FPS
If you want to use patch it yourself, use this patch with UEFIpatch. I only tested it on 1104. Doesn’t work with 3503.
# PciBus | Remove <16GB BAR size limit (Ivy Bridge/Haswell) 3C1DE39F-D207-408A-AACC-731CFB7F1DD7 10 P:B8FFFFFFFF030000004C3B:B8FFFFFFFFFFFFFF004C3B # PciBus | Don't downgrade 64-bit BARs to 32-bit (Haswell) 3C1DE39F-D207-408A-AACC-731CFB7F1DD7 10 P:833E067506C70604000000833E077506C70605000000:66906690669066906690669066906690669066906690 # PciHostBridge | Replace 8-16GB MMIO region with complete use of 64GB address space (Haswell). MAY REQUIRE DSDT MODIFICATION 8D6756B9-E55E-4D6A-A3A5-5E4D72DDF772 10 P:080000004823C1483BC3770C48BE0000000004000000EB7A48BB000000000C000000483BC3770C48BE0000000002000000EB5F48BB000000000E000000483BC3770C48BE0000000001000000EB4448BB000000000F000000483BC37707BE00000080EB2E48BB000000800F000000483BC37707BE00000040EB1848BB000000C00F000000483BC30F87A4FEFFFFBE00000020:010000004821C84839D8480F47D848BE000000E00F0000004829DE9090909090909066909066906690909090909090909066906690909090909090909066909066906690909090909090909066906690909090909090909066909066909090909090669066909090909090909090669090669090909090906690669090909090909090906690909090909090909090909090
Steps-By-Step on how to do it yourself: (Thanks to @valip for the steps. I’ve modified them a bit for this scenario’s case )
Run UEFIPatch MAXIMUS-VII-HERO-ASUS-1104.cap patches.txt -o Z97Hero-patched.cap
Use UEFITool to extract(as is) the PciBus module and PciHostBridge module from the patched file and save the result in .ffs files
Use MMTool (go to replace tab) and load MAXIMUS-VII-HERO-ASUS-1104.cap In the Browse section load the .ffs files.
Go to PciBus line (Vol 03, Index 0D.), click on it and then click on Replace with the patched ffs, and PciHostBridge line(Vol 03, Index 42)click on it and then click on Replace with the patched ffs.
Here in MMTools, you could also insert ReBarDxe.ffs in Vol 03 instead of using UEFITool as an extra step, then save the result to a new .cap file.
Extract(as is) the body of the capsule, save it as rom, then flash it with whatever method you find(For Asus motherboards) in this guide. I personally used AFUWinx64.
Enter BIOS, go to Boot tab, and enable Above 4G decode, and disable CSM.
Launch ReBarState.exe and set value to 14 for 16GB
Edit: Thanks again to Kuri0, we’ve got a version working for 3503 working currently with up to 24GB of ram. 32GB still causes issues.
The patches applied on it are the following:
# PciBus | Remove <16GB BAR size limit (Ivy Bridge/Haswell) 3C1DE39F-D207-408A-AACC-731CFB7F1DD7 10 P:B8FFFFFFFF030000004C3B:B8FFFFFFFFFFFFFF004C3B # PciBus | Don't downgrade 64-bit BARs to 32-bit (Haswell) 3C1DE39F-D207-408A-AACC-731CFB7F1DD7 10 P:833E067506C70604000000833E077506C70605000000:66906690669066906690669066906690669066906690 # PciHostBridge | Replace 32/48GB - 63GB MMIO region with 32/48GB - 64GB (Haswell) 8D6756B9-E55E-4D6A-A3A5-5E4D72DDF772 10 P:3BC3771548BE000000C00F000000482B:3BC3771548BE0000000010000000482B
Do note that if you want to do the steps yourself, you need to replace Nvramsmi with the one from 1104 in order to be able to write to UEFI. The included rom above is ready to flash with nvramsmi replaced already.