Open xCuri0 opened 1 year ago
MSI B75ma-e31, ivy bridge i5-3330, rx 580 after applying ffs module i was able to increase the size to 1gb, "above 4g decoding" doesn't exist, "max TOLUD" (hidden) can be dynamic (default) or from 1gb to 3.25gb (setting to 1gb doesn't help), patches don't help. I did gpu bound benchmarks and there is no difference (256mb and 1024mb bar). thx anyway.
mod bios if someone needs it: https://drive.google.com/file/d/108Zg2MwYN-jCTm1Y-tr0T0X68o-XTb0l (rename E7808IMS.mod to E7808IMS.340)
@BK8000L You will only see improvements in DX12 games mostly and maybe very CPU bound DX11 ones. I haven't tested 1GB BAR but I got a 12% gain in Cyberpunk 2077 benchmark with 2GB BAR on my RX 580 8GB.
@xCuri0 can you test with 1gb bar? i tested in cyberpunk and superposition
@BK8000L you should use high or medium settings. When I test on ultra the difference is very small in Cyberpunk
MSI C236M WORKSTATION
Intel DG1
Don't need UEFIPatch. Not tested by myself, this motherboard with DG1 won't boot if without ReBAR support.
Hello @Koekieezz , could you explain me how you manage to enable 4G Decoding on GA-H77-DS3H got a similar MB GA-Z77M-D3H. GPU-Z say me "Above 4G Decode enabled in BIOS : Yes" without doing nothing but I don't see large memory range in device manager.
Thanks for your help
@scarface65000 the instructions to enable 4g decode are in the wiki which is what koekieezz followed
Hello I have a ASUS Z170-E and downloaded latest BIOS from their website. (Z170-E-ASUS-3801) I'm unable to find the string PciBus in this BIOS file. 4G decode was already visible in this BIOS so I enabled it and disabled CSM
@Aushyro try doing GUID search for CF8034BE
in UEFITool. PciBus should show
UEFITool doesn't search LZMA compressed regions properly so this workaround is needed. I've updated the wiki to have it
@scarface65000 the instructions to enable 4g decode are in the wiki which is what koekieezz followed
Thanks for your reply @xCuri0, i was unable to enable 4g decode with your wiki explanation (i'm able to change setup_var (offset) but nothing happen) but I found in your wiki that's it's possible with AMIBCP.
So I activate Above 4G and disable CSM for my firmware using your trick in failsafe and optimal mode. (preventive for error too cause i passed my 3 last day to recover my corrupted bios).
I can confirm that this method working for me. (you can reuse my picture if you want to make the tutorial)
And now I can see large memory on windows.
Now i'm at the step after the uefi patches.txt.
I am unable to make the DSDT patch
Any help could be appreciated.
Pardon my French ;)
@scarface65000 change ABCDEFGH
to ABCDEFFF
. Same error on my Gigabyte board and that fixes it
Default search does not seem to find anything. When I enable "Header and Body" I seem to find multiple instances, but not anything with the text PciBus. See attachment.
@Aushyro have you tried looking at each one ? One of them will be PciBus
working on the ASUS H170M-PLUS with the PowerColor Red Dragon RX 480 8 GB, patched BIOS
At first it can't enable the ReBAR in the AMD driver by change the registry keys although it has enabled in the BIOS. For some reason the bus is place at the Bus 1 rather than Bus 0 so I need to change the entry of registry file from [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318}\0000] to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318}\0001]
Then it works. If someone has problem to enable the unsupported GPU in the AMD software also. Take a look at the registry, maybe it is the same problem.
@Aushyro 8D6756B9-E55E-4D6A-A3A5-5E4D72DDF772 is GUID of PciBus of your BIOS. I recommend just insert it after A0327FE0-1FDA-4E5B-905D-B510C45A61D0, it will work. I have tested.
ASUS EX-B150M-V3
COFFETIME 0.99 EDITED BIOS TO WORK WITH COFFE LAKE PROCESSORS
QTJ2(i5 10400)
PATCH ENABLED
RX 6600M
BAR SIZE 8GB
REBAR IS WORKING GOOD.
Ok, so I really tried everything but I'm unable to POST.
What I did:
I'm not really sure what to do anymore. Can you help me with this?
[edit]:
2g gives me the same AI art like in the screenshots, so not really bothering trying 1g or lower.
Also: CMOS reset does nothing for me, I have to physically inplug the GPU to be able to boot into Windows and using ReBarState.exe to disable ReBar and try again...
@Aushyro 1GB will probably work. It looks like the patch to prevent BAR being downgraded to 32-bit is missing.
Also you can probably set the BIOS to always enable iGPU so you won't need to take out GPU. It could be related to bug #4
@Aushyro 1GB will probably work. It looks like the patch to prevent BAR being downgraded to 32-bit is missing.
Also you can probably set the BIOS to always enable iGPU so you won't need to take out GPU. It could be related to bug #4
Thanks, but 1GB actually generated the same issue as in my latest 2 photos I've sent. Let me try to re-create the whole BIOS image and do the complete process again. I'm replying to a thread wich is not suitable for my issue btw, should I create a official Issue when this still is not working?
[edit]
AHA! I've made some progress! I've must been incredibly stupid. Yoohooo :D (claps hands with @xCuri0 ) Ok, no time to celebrate yet. As GPU-Z is showing the correct states, the driver is not. I tried already re-installing the AMD driver (including the factory reset option) but it shows that rebar is not supported. Going to try the DDU method now.
[edit2]
[edit3]
NOW I HAVE IT WORKING! I had to apply the register patch described here: Common-issues-(and-fixes) Yass, you can add this to the list haha :D
[edit4]
After all this Windows detected hardware changes wich made my Windows unactivated. So, I had to just re-activate my Windows :) just so you know that the
asrock h77 pro4-m is working. dsdt and uefi patching is required.
First of all, thanks to @xCuri0
Hello everyone, let's see if you can help, AB350Gaming rev1 board, r5 1600AF, RX nitro 4g, this is the hardware.
Something strange happens to me, I enabled bar with Above64 and it let me put up to 2g as I have read that it is normal, but in games it did strange things to me, sudden drops in fps and less fps, with 1024 and 512 it behaves the same.
On the other hand, if I remove Above64 and put it in 1g, it works, logically with more than one gig it doesn't start.
And it seems strange to me on a ryzen motherboard.
I don't know what the problem could be and I would like to take advantage of that extra gig.
@RRM5 this sounds like a bug with your BIOS probably. maybe linux dmesg could be helpful.
also you could try the TOLUD thing listed in README to possibly get 2GB without above64
@xCuri0
I tried with the stock bios and added only the Rebar, I modified many things, but nothing remains the same. I don't see a TOLUD bios. I wouldn't be surprised if it was a bug in the Gigabyte bios, my journey with this board is firecracker..... Thank you.
@RRM5 save the dmesg log to a file and send that. Do it while you have BAR set to 2GB
@RRM5 i think the problem is the BAR address being allocated for the GPU is higher than what is optimal. See if there's an option Above 4GB MMIO Limit
including in hidden menu and set it to 39-bit. 39-bit is what Intel desktop platforms use and they don't have this issue
@xCuri0 It's the first thing I unlocked from the bios, I tried but I don't remember if I tried Valos 39 then I'll see if it continues to do it, especially with Doom Eternal and it's weird because it's Vulcan and that's where it should work best bar, right? Thank you.
@RRM5 both vulkan and DX12 games are affected most by resizable bar
@xCuri0 I don't know but it's weird, the MMIO value doesn't matter, it does the same, the weird thing is the freezing and a drop in FPS from 80 to 40 with a microfreeze, don't worry I'll leave it at above 64 disable and I'll settle for 1g which will always be better than 256mg. Maybe I'll try to remove the module from the board to see if it's going to be because of that, or try an older bios, I don't know...... Thank you very much for your attention and your work. Regards.
@RRM5 open a separate issue for this
Hello, On My Gigabit ga-ax370m-ds3h it works fine, only to know ist that you cant flash with the moddet efiflash 0.87 the new capsules Bios. You need this tool...https://winraid.level1techs.com/t/tool-flashrom-v1-2-dos-amd/36544 it works perfect. If you are interested, I can also upload my modded bios.
6070xt Bar size 16 GB UEFIPatch req (N)
MSI Z170A pro working with a RX6650 XT, Tested 8GB Had to use MMtool & Patching was required
It's working with ASRockRack C621 motherboard. Here is WC621D8A-2T + RTX A4000
Asus Maximus IX Hero (z270) working with rx 5700 XT
Using unlimited(32) in ReBarState correctly set to 8 GB.
Didn't try without patches - patches that were applied were "Don't downgrade 64-bit BARs to 32-bit (Haswell)" and "Remove <64GB BAR size limit (Skylake/Kaby Lake/Coffee Lake)"
Have an intel arc a750 on its way and will confirm support with that on this same motherboard when it arrives.
Hello, so i was able to make rebar to work but its only usable till 1024 mb My specs are : Motherboard MSI Z77A-G43 (MS-7758), BIOS V2.13, i5-3570, Sapphire rx 580 nitro+ 8gb (ignore 580x in the screenshot) Disclaimer: Before doing any modding to bios of this board, consider this:
So, i injected the FFS module using the MMTool method (the UEFITool method didn't work for me) the rebar function worked. Patched the image Using UEFIPatch and ended up using pad file issue workaround. So i got rebar working, but there is a major issue i could not work around yet. Right from the start GPU-Z stated that: Above 4G Decode enabled in BIOS Yes After i got rebar working i could not make it go above 1024mb. I started to investigate, and find out that Large Memory was absent in my device manner. I tried Enabling hidden 4G decoding but no luck. The most frustrating thing is that i did not find any BIOS setting stating that this board supports above 4G decoding. I dug through every BIOS available for this board using UEFITool and AMIBCP_v5.02.0031. And in every single one of them i couldn't find an entry for above 4g decoding. Either i failed miserably (its been a long day of soldering BIOS chips...) or MSI Z77A-G43 (MS-7758) BIOS does not have this option integrated, even in hidden options. Please, if I'm wrong, help me find solution for this issue.
If anyone wants the BIOS image, i can share it (i forgot it on the PC at the work place).
@23volot Currently there is no fix for missing 4G decode option. Alot of Haswell users also have this issue
You should still see a performance gain with 1GB though. Did you try the TOLUD method in README to try and get 2GB ?
Another gpu tested with the Maximus IX Hero (z270)
Didn't realize I was supposed to grab photos last time. But grabbed them with the arc a750. Works the same here. Sleep and resume did work with both.
Hello, so i was able to make rebar to work but its only usable till 1024 mb My specs are : Motherboard MSI Z77A-G43 (MS-7758), BIOS V2.13, i5-3570, Sapphire rx 580 nitro+ 8gb (ignore 580x in the screenshot) Disclaimer: Before doing any modding to bios of this board, consider this:
- every attempt to use M-Flash (integrated bios flashing from USB) failed, bricking the board.
- the BIOS chip is soldered on the board, so you need a re-flow station, and preferably hot plate (or a good preheat) so you wont melt or destroy the psb.
- there is a JSPI1 connector that can be used to flash BIOS without soldering, but it requires a specific programmer, i tried to hook up rt809f programmer i use to flash BIOS - it did not work.
- the motherboard don't have any BIOS flashback functionality, so you are up for a lot of pain :)
So, i injected the FFS module using the MMTool method (the UEFITool method didn't work for me) the rebar function worked. Patched the image Using UEFIPatch and ended up using pad file issue workaround. So i got rebar working, but there is a major issue i could not work around yet. Right from the start GPU-Z stated that: Above 4G Decode enabled in BIOS Yes After i got rebar working i could not make it go above 1024mb. I started to investigate, and find out that Large Memory was absent in my device manner. I tried Enabling hidden 4G decoding but no luck. The most frustrating thing is that i did not find any BIOS setting stating that this board supports above 4G decoding. I dug through every BIOS available for this board using UEFITool and AMIBCP_v5.02.0031. And in every single one of them i couldn't find an entry for above 4g decoding. Either i failed miserably (its been a long day of soldering BIOS chips...) or MSI Z77A-G43 (MS-7758) BIOS does not have this option integrated, even in hidden options. Please, if I'm wrong, help me find solution for this issue.
If anyone wants the BIOS image, i can share it (i forgot it on the PC at the work place).
MSi Bioses at that day have the wackiest M-Flash installs. The only guranteed way to flash it safely, is by making sure THE bios doesnt have any pad-file or any stock file, deleted at all. i managed to update the orom, efi gop, inject nvme, etc, by making sure nothing is deleted. then i tested it using m-flash, it works. The method is by make 1 copy and make sure everything is modded in the copy, open copy using mmtool, extract the module that you updated, then use replace function on the original bios. that works most of the time for that janky m-flash XD
I have an ASUS Z170-AR with a 6600K. Prior to modding the bios, I could not get it to POST with an Arc A380 (VGA LED stayed on and Arc's fan stopped spinning after a few seconds). I modded and flashed the BIOS with the patches (thanks to @dsanke and @Aushyro for their helpful comments, PciBus would not show up for me either) and tried setting the ReBar to a few different values (unlimited, 1GB, 4GB). With the GPU attached, it is still not POSTing. Anyone know if this may be related to ReBar or if my CPU and GPU simply aren't compatible?
@sears-s Did you try CSM off (and any other legacy settings off too) ? And also enable 4G decode if you want to use rebar
It's not a compatibility issue multiple people have had Arc work on Skylake and Haswell
@sears-s Did you try CSM off (and any other legacy settings off too) ? And also enable 4G decode if you want to use rebar
It's not a compatibility issue multiple people have had Arc work on Skylake and Haswell
Yes, I've had CSM off and 4G decoding on in the BIOS. What are the name of some other common legacy settings that could be causing the issue?
Maybe my card is dead... I'll play around with PCIe slots and power cables.
Asrock z170 extreme4 with coffee mod 9700kf, 6800xt gpu. Unlimited(16gb) rebar size. No uefi patch.
"Above 4g decode" is hidden in bios (0x385 offset).
Question is patch needed to make all 16gb available for rebar ? Maybe i don't understand this correctly, but it uses heap1 which is 8gb instead of 16gb heap2. Or how else i can see how much gb is used for rebar
@pnrxtx heap1 is shared memory (system RAM) not GPU VRAM.
Here is on my system
I have an ASUS Z170-AR with a 6600K. Prior to modding the bios, I could not get it to POST with an Arc A380 (VGA LED stayed on and Arc's fan stopped spinning after a few seconds). I modded and flashed the BIOS with the patches (thanks to @dsanke and @Aushyro for their helpful comments, PciBus would not show up for me either) and tried setting the ReBar to a few different values (unlimited, 1GB, 4GB). With the GPU attached, it is still not POSTing. Anyone know if this may be related to ReBar or if my CPU and GPU simply aren't compatible?
Got it to POST after setting the primary display in my BIOS settings to the iGPU, which is fine for my use case. ASUS Z170-AR with Intel Arc A380. Here are some notes:
PciBus
string so inserted FFS after A0327FE0-1FDA-4E5B-905D-B510C45A61D0
lspci
output with ReBar disabled:
03:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A380] (rev 05) (prog-if 00 [VGA controller])
Subsystem: ASRock Incorporation Device 6004
Flags: bus master, fast devsel, latency 0
Memory at de000000 (64-bit, non-prefetchable) [size=16M]
Memory at 2fe0000000 (64-bit, prefetchable) [size=256M]
Expansion ROM at df000000 [disabled] [size=2M]
With ReBar size set to unlimited:
03:00.0 VGA compatible controller: Intel Corporation DG2 [Arc A380] (rev 05) (prog-if 00 [VGA controller])
Subsystem: ASRock Incorporation Device 6004
Flags: bus master, fast devsel, latency 0
Memory at de000000 (64-bit, non-prefetchable) [size=16M]
Memory at 2c00000000 (64-bit, prefetchable) [size=8G]
Expansion ROM at df000000 [disabled] [size=2M]
MSI B150m Bazooka Plus UEFI Patch applied 7700K and 6600 XT
8GB works in windows but I had to lower it to 1GB for MacOS (hackintosh) to boot.
Edit: Looks like the current development version of OpenCore 0.8.9 adds in compatibility for this rebar mod
@pnrxtx heap1 is shared memory (system RAM) not GPU VRAM.
Yea, its actually mismatch indexes where it says heap count and heap indexes lower. so its heap1=index0, heap2=index1, not heap1=index1 as i thought. So its using correct heap2 which is 16gb for me.
@RRM5 you might want to see this https://gitlab.freedesktop.org/drm/amd/-/issues/1864
@xCuri0 Thanks, that's precisely what's happening to me. I don't know if there's any way to fix it by modifying something in the bios?for w11. These days I tried everything I could think of and nothing worked. I have resigned myself to not using a bar, although in Cyberpank 2077 I did gain about 4 or 5 FPS, but in others like Doom eternal I lost about 30 FPS. I said thank you very much and greetings.
Motherboards which don't support at least 2GB BAR size are considered not working.
If you're having any issues please see Common issues (and fixes) before replying.
Use this format in your comment:
lspci
(Linux) shows)