xCuri0 / ReBarUEFI

Resizable BAR for (almost) any UEFI system
MIT License
1.29k stars 57 forks source link

Gigabyte GA-Z170M-D3H with QQLS CPU can't see/enter bios screen with ReBar>2gb and High Definition Audio Bus problem #115

Closed Igo131 closed 4 months ago

Igo131 commented 4 months ago

System

Description

Hi. I have a modded bios file from QQLS supplier to work with this cpu. Added ReBarDxe.ffs in UEFITool_0.28.0. After flashing with q-flash or ch341 board can't load (no post, bootloop). No image from internal/external gpu (somehow i managed to boot once but unabled to enable Rebar as well). Normally all loads even with csm and 4g on/off. Tried MMTool but can't find PciBus string there.

2024-01-15 195515 2024-01-16 025551

Only this in Large Memory: 2024-01-16 044256

Z170M-D3H F22f-ReBAR.zip Z170M-D3H F22f.zip

takem94 commented 4 months ago

I don’t quite understand, after flashing the BIOS with the ReBarState module, were you able to enter the OS or BIOS? I looked at your BIOS via coffeetime 0.99, there are a lot of unnecessary patches and microcodes and there is no patch for PCIE.

image

It may be worth rebuilding the BIOS, the ME version is probably too new, although it is turned off, it takes up a lot of space.

If you still manage to get into the system with the ReBar module and its value at 0, 8, 9 or even 10. It may be useful to look at my topic https://github.com/xCuri0/ReBarUEFI/issues/114 .

Igo131 commented 4 months ago

takem94 Thank you for the reply.

The issue was in the modded bios from QQLS supplier.

Modded clean bios (not sure I did everything right here. Please correct me if I'm wrong somewhere):

2024-01-16 234016 2024-01-16 234050

Resizeble Bar now works (here is a value 32 in ReBarState):

2024-01-17 005413

Now i'm figuring out how to solve another issues:

198873811-a2d05db9-15a1-443c-a587-af08af1269f1

No above issues with 1gb. With 2gb - stuck on bios logo. Above 2gb - can't see/enter bios and High Definition Audio Bus problem.

Disabling 4g in the BIOS leads to a black screen in Windows too.

Also I'm not sure if I'm applying the UEFIPatch patch correctly, Maybe it's not needed in my case:

2024-01-17 013052

F22fClean.zip F22fCoffeRebar.zip

takem94 commented 4 months ago

@Igo131 you can do this patch: # PciBus | Don't downgrade 64-bit BARs to 32-bit (Coffee Lake) 3C1DE39F-D207-408A-AACC-731CFB7F1DD7 10 P:A80274334038AF95:A802EB334038AF95 But they all seem to be unnecessary.

In theory, it should be possible to get into the BIOS via the iGPU, at least for me, I connect by hdmi cable. With High Definition Audio Bus, as I understand it is the same problem for everyone https://github.com/xCuri0/ReBarUEFI/issues/4 or most, I use a separate sound card in any case, so it’s not critical for me. ReBarState size with "11" or 2 GB will not work on the 1151 chipset according to

Igo131 commented 4 months ago

takem94 Patched:

2024-01-17 041113

Flashed with efiflash 0.87 mod. Seems like no changes.

I saw you benchmarks with 1gb rebar. Maybe 1gb will be enouth for games performance boost if there is no fix for High Definition Audio Bus problem. What you think?

xCuri0 commented 4 months ago

@takem94 these are usual issue with LGA1151 and resizable bar, there's already an issue about this. It's weird considering older Sandy/Ivy Bridge and Haswell/Broadwell have zero issues like this.

Igo131 commented 4 months ago

@xCuri0 as i see there is no fix for now? Anyway if someone will do some patches i can test it on my system (have ch341).

takem94 commented 4 months ago

@Igo131 I think it's very individual and depends on many factors. Firstly, I have a card from Nvidia and with a small VRAM size, which is almost always full of game data, so there is very little cache left for other memory operations and apparently 1 GB is the limit. Also important is the game itself and how it uses Rebar. You need to do tests in main games for yourself and decide worth it or not.

xCuri0 commented 4 months ago

@takem94 Nvidia driver only uses 1GB BAR in most games anyways unless you use NVIDIA Inspector to manually increase it. Sometimes it results in fps loss though

AMD always uses the full BAR size but even then in my experience the difference between 2GB and 8GB was negligible for me even tho 256MB vs 2GB was an almost 15% increase

takem94 commented 3 months ago

@xCuri0 yeah, thank you. I did not know about the limitation at the driver level and used Rebar only through the inspector, because with a value of 1 gigabyte, the driver panel indicates that Rebar is disabled. Also, on Intel cards without Rebar support, many games are on borderline of playability. I think for them your work cannot be overestimated. It's still hard to believe that this works on my old platform and even older ones. It’s a pity, of course, that new games are increasingly greedy for processor power, even CS2 on a full server in DM with an analogue i7 8700 I can get an average of 120 frames and 1 percent on 70. I played CS:GO and COD all my life and always had about 200-300 FPS with more bad CPUs. Now I hope to at least buy a Ryzen 7500f to get the same result.