Open xCuri0 opened 1 year ago
@RRM5 did you check if your BAR address are similar to what they mention have issues ?
@xCuri0 If I have not misunderstood what I have read if it is in that range FFFFFFFFFF.
@RRM5 you'd want to look at your GPU not pci bus. But your GPU falls in that range too.
Does the MMIO Limit option I said about before make it get out of that range ?
@xCuri0 It behaves the same way, the MMIO value doesn't matter.
@RRM5 you're on the latest bios right ? Because some people say updates fix it
@xCuri0 Yes I am in the latest AB350G.51g.
I hope I'm wrong, but I don't think this board will receive more bios updates, it doesn't support native sam. It has it in the bios code but hidden.
But it doesn't matter activated from the board or not as my RX580 is not natively supported.
Anyway thank you very much and great job.
@xCuri0 Well, I just mutated the board from an AB350G R1 to a B450 Pro R1 and the same thing happens to me. The bios is the new one from 2023 B450AOPR.F63, changing and replacing the necessary modules and everything works except the leds on the board, I'm already starting to to think that it is because of the bios of RX580 Nitro 4g.
I don't know if this can shed some light.
Asus Maximus V Gene with 32GB RAM and I7-3770k is working with RX 580 8GB. ReBar with 8GB succesfully tested. To have more then 2GB ReBar available both Ivy Bridge Patches used. MMtool necessary to replace patched module. Above 4GB decod tweak also necessary.
ASUS Z270-A+i5-9400F works with AMD RX570 4Gb. 2048 mb BAR. MB doesn't boot with secure boot enabled. I installed patch to not degrade 64 bit to 32, but I'm not sure it's needed. I will test on nextt week.
I have an option, to install bios from Z370-A with native rebar support, can I use rebarstate.exe to change rebar size?
I have an option, to install bios from Z370-A with native rebar support, can I use rebarstate.exe to change rebar size?
No ReBarState only works when using ReBarDxe module. Have you tried changing various Secure Boot options such as the Image Execution Policy for Internal FV ? If Secure Boot is important to you (such as anticheat on Windows 11) you could try signing the module and enrolling the key if that doesn't work.
Gigabyte B450 Aorus Elite Resizable bar (S.A.M.) Works RX 590 and R5 2600X Made it work on Gigabyte B450 Aorus Elite by enabling 4G Decode and Re-Size bar UEFI settings with CSEWIN, Moding BIOS Driver with ReBarDXE and Runing ReBarState via Visual studio Console application
update: secure boot works, patch needed # PciBus | Don't downgrade 64-bit BARs to 32-bit (by @Mak3rde)
@pnrxtx Hello. Is it possible to to help me out how can I Enable my ReBar on my AsRock Z170 Extreme4 + RX 580 8GB ? I'm very sorry for spaming here. Would be very appreciated ! You could contact me on Telegram @Vlad0on
@xCuri0 please, add comment about patch needed
@dormancygrace I have put a Y for patch required
@dormancygrace I have put a Y for patch required
yep, but there are bunch of them =)
@dormancygrace using the default patches.txt with everything enabled always works you don't need to individually select patches. So I just put Y for all motherboards which are patched because adding the list of patches is unnecessary
I got this working on my Asus X99-A paired with a Intel Arc A770, but I had to use UEFIPatch, as mentioned by someone else who also used the same board.
Hello to everyone !
I would like to share with you experience with AsRock z170 Extreme 4 + Sapphire RX 580 8GB and Enabling the Resize Bar function.
Huge THANKS to @dormancygrace who contacted me, and offered to help me out. He has done the work with modifying the BIOS, and I just flashed it with Instant Flash and worked as a charm. So he modified Stock BIOS from AsRock with 4G Enabled, CSM disabled, ME Region to v. 11.7, ReBar. After flashing the BIOS with Instant Flash all was almost ready, just used the ReBarState.exe, added the Registry, and after reboot Resize Bar was Enabled : BAR0 8192 MB.
I've tested in FH5 where I gained 10% performance.
Also I want to say Thank you to @pnrxtx who also responded to my request.
Hello to everyone !
I would like to share with you experience with AsRock z170 Extreme 4 + Sapphire RX 580 8GB and Enabling the Resize Bar function. Huge THANKS to @dormancygrace who contacted me, and offered to help me out. He has done the work with modifying the BIOS, and I just flashed it with Instant Flash and worked as a charm. So he modified Stock BIOS from AsRock with 4G Enabled, CSM disabled, ME Region to v. 11.7, ReBar. After flashing the BIOS with Instant Flash all was almost ready, just used the ReBarState.exe, added the Registry, and after reboot Resize Bar was Enabled : BAR0 8192 MB.
I've tested in FH5 where I gained 10% performance. Also I want to say Thank you to @pnrxtx who also responded to my request.
Note: on this motherboard enabling 4gb decode with csm enabled you will get blank screen both on dGPU and iGPU in post/bios/os boot. CSM needs to be disabled by default
mr9a pro works fine (rx5500 xt)
@xCuri0 there is no need in patching on @Vlad00n MB
I have some problem with my asrock z170 extreme4. Screens in my previous post, everything works correctly, but csm gets enabled back by itself and i get black screen, i cant understand why it gets enabled back. Happened several times now. For example PC worked fine for 4 days, i didnt make any uefi or any other changes,one day after boot i get 4 beeps - black screen - windows boots, and i see csm is enabled. Have to clear cmos and disable it back. THen again several days passes and something is triggering it to enable.
I have some problem with my asrock z170 extreme4. Screens in my previous post, everything works correctly, but csm gets enabled back by itself and i get black screen, i cant understand why it gets enabled back. Happened several times now. For example PC worked fine for 4 days, i didnt make any uefi or any other changes,one day after boot i get 4 beeps - black screen - windows boots, and i see csm is enabled. Have to clear cmos and disable it back. THen again several days passes and something is triggering it to enable.
![]()
![]()
You can change csm default behavior. If you want, I can give you bios for instantflash with coffelake support, csm disabled and 4gb decode enabled by default (also Intel orom updated to v15)
You can change csm default behavior. If you want, I can give you bios for instantflash with coffelake support, csm disabled and 4gb decode enabled by default (also Intel orom updated to v15)
I asked Vlad00n for bios you made for him. It has csm disabled by default, currently testing it from today. If thats the bios you talking about. If something different, then yes please, i will test. edit: same thing with his bios. (You could t.me/pnrxtx please)
Working on an ASUS Z97-K & Broadwell. Was super annoying because I got ReBarState GetLastError: 5 at first, and to fix that I had to patch my BIOS, but I couldn't because UEFIPatch(or ASUS bioses) has a bug (see this), so I had to sort of bodge it with MMTool and UEFITool (couldn't replace NvramSmi on MMTool for some reason; filesize only showed 12 Bytes)... anyway, I'm rambling, it works.
Modded BIOS for Z97-K: https://kurt.s-ul.eu/7VEKKMsh - it's a rom file, so you need to flash with AFUDos
Motherboard: MSI Z270-A PRO GPU: RTX 3080 BAR size tested: 32/unlimited UEFIPatch: Y
Resume from sleep: OK
Hello @pnrxtx @Vlad00n @dormancygrace, I have a Z170 Extreme4 as well. Could someone please send me the modified bios or upload it here? I would really appreciate it.
Hello @pnrxtx @Vlad00n @dormancygrace, I have a Z170 Extreme4 as well. Could someone please send me the modified bios or upload it here? I would really appreciate it.
I've decided to upload the BIOS file in github. SO here is the link for downloading : https://github.com/Vlad00n/AsRock-Z170-Extreme4
Hello @pnrxtx @Vlad00n @dormancygrace, I have a Z170 Extreme4 as well. Could someone please send me the modified bios or upload it here? I would really appreciate it.
I've decided to upload the BIOS file in github. SO here is the link for downloading.
We need to change few things then. @pnrxtx any updates on your situation?
Hello @pnrxtx @Vlad00n @dormancygrace, I have a Z170 Extreme4 as well. Could someone please send me the modified bios or upload it here? I would really appreciate it.
I've decided to upload the BIOS file in github. SO here is the link for downloading.
We need to change few things then. @pnrxtx any updates on your situation?
So should I better not flashing for now and wait for an update?
Hello @pnrxtx @Vlad00n @dormancygrace, I have a Z170 Extreme4 as well. Could someone please send me the modified bios or upload it here? I would really appreciate it.
I've decided to upload the BIOS file in github. SO here is the link for downloading.
We need to change few things then. @pnrxtx any updates on your situation?
So should I better not flashing for now and wait for an update?
Yes, it's better to wait for "final" bios )
ok will do. And thanks again 😀
Asrock Z270M Extreme4 Working with UEFI patch.
Full 8Gb ReBar in Windows and 1Gb set through OpenCore for MacOS.
Anyone here want to test a build with CMOS reset detection ? Because not all boards clear NVRAM on CMOS reset and that leaves rebar on while 4G decode is off causing no boot with rebar GPU until rebar is disabled. Not all boards have this problem so only test if you know your board has this issue
Here is the build https://github.com/xCuri0/ReBarUEFI/actions/runs/4273567689
Anyone here want to test a build with CMOS reset detection ? Because not all boards clear NVRAM on CMOS reset and that leaves rebar on while 4G decode is off causing no boot with rebar GPU until rebar is disabled. Not all boards have this problem so only test if you know your board has this issue
Here is the build https://github.com/xCuri0/ReBarUEFI/actions/runs/4273567689
I can test, but only tomorrow
Gigabyte A320m-S2h rev1.x working with UEFI patch.
Max Rebar 1GB
@CoderArceus But you didn't enable rebar
@CoderArceus But you didn't enable rebar
he did enable rebar... it was me and @xCuri0 on a disc server that helped him (tho it is not known yet if Renoir/Cezanne igpu could do this too..)
he did enable rebar... it was me and @xCuri0 on a disc server that helped him (tho it is not known yet if Renoir/Cezanne igpu could do this too..)
So, before there was only bar0 256mb?
he did enable rebar... it was me and @xCuri0 on a disc server that helped him (tho it is not known yet if Renoir/Cezanne igpu could do this too..)
So, before there was only bar0 256mb?
exactly, without rebardxe.ffs you cant make any change on the bar size, not even with official rebar, so yeah 1GB is his max because it is what his bios limit (same like my 590GME it is max at 8GB so entering more than 8GB in exponent would enable unlimited bar size but size still be 8GB)
Anyone here want to test a build with CMOS reset detection ? Because not all boards clear NVRAM on CMOS reset and that leaves rebar on while 4G decode is off causing no boot with rebar GPU until rebar is disabled. Not all boards have this problem so only test if you know your board has this issue
Here is the build https://github.com/xCuri0/ReBarUEFI/actions/runs/4273567689
Not worked for me.
@dormancygrace What was ReBarState set for this to happen ? It looks like it was set to 2GB which doesnt work on these LGA1151 boards.
Or was this what happens after a CMOS reset ?
@dormancygrace What was ReBarState set for this to happen ? It looks like it was set to 2GB which doesnt work on these LGA1151 boards.
Or was this what happens after a CMOS reset ?
It's after CMOS reset. 2gb bar works like a charm) I have 4gb card, so I can't use 4gb bar in Windows
the CMOS reset detection works by checking if the date is before 2023. Not sure why it doesn't work though
can try deleting the variable instead of setting it to zero in case that might work. but if it's a variable writing issue it should still work until the clock is set by os
hard to debug stuff like this because its impossible to log anything without debugging hardware which even i don't have.
I don't know, how it works, but on my mb resetting CMOS leave time intact.
Maybe you can make check, if 4gb decode enabled?
@dormancygrace
I don't know, how it works, but on my mb resetting CMOS leave time intact.
Checked ASUS manual and they mention it should clear time too.
Maybe you can make check, if 4gb decode enabled?
Not simple to do a method that works for all motherboards since they all use different variable offsets. It would require extracting IFR from Setup every boot and checking for that offset in Setup variable which will be slow.
@dormancygrace
I don't know, how it works, but on my mb resetting CMOS leave time intact.
Checked ASUS manual and they mention it should clear time too.
Maybe you can make check, if 4gb decode enabled?
Not simple to do a method that works for all motherboards since they all use different variable offsets. It would require extracting IFR from Setup every boot and checking for that offset in Setup variable which will be slow.
Clearing CMOS must reset time, but on my mb it's not ) But resetting with removing battery - reset time and date
For me, there's no problem, to wait for boot. Fastboot doesn't work on my mb (as well as on Z370-A and Z370-A II)
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)