Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hang on reboot #35

Open
terminatorul opened this issue Mar 11, 2024 · 19 comments
Open

Hang on reboot #35

terminatorul opened this issue Mar 11, 2024 · 19 comments

Comments

@terminatorul
Copy link
Owner

terminatorul commented Mar 11, 2024

@TheUntouchable

GPU: Gigabyte RTX 2070 SUPER GAMING OC 8G
CPU: AMD Ryzen 7 5800X3D
Motherboard: MSI X470 GAMING PRO CARBON

Since I activated the BAR thing I can't reboot anymore. The PC will hang after the operating system is powered off, have to press the power button for some seconds and start the pc again.

Also the new Nvidia App (Beta) is not detecting the BAR even after reinstalling the drive completely.

grafik
grafik
grafik
grafik
grafik
grafik
grafik

@terminatorul
Copy link
Owner Author

terminatorul commented Mar 11, 2024

It is possible the NVIDIA App behaves like the NVIDIA Control Panel, and always shows ReBAR disabled for Turing GPUs. Because ReBAR is officially supported only on Ampere (RTX 3000) and later GPUs.

@xCuri0 do you know why the firmware would hang on reboot ?

Is there a restart notification I can hook, and then de-configure GPU ReBAR at that time ? Is there another script like the S3 Resume one ?

@TheUntouchable
Copy link

Thanks for the quick answer :)
Yeah I think the same, even the MSI Center is showing that rBAR ist active:
grafik

Regarding that reboot thing, @vigilant-hylian had the same:

I am having some issues however - my motherboard BIOS had two identical entries for the PCIE driver to add the .ffs file, and I added it to both. Now my PC will only start from cold, no reboots, no sleep resume, no hibernate resume. It'll not post, and the HDD light will remain on until i power off the PSU and restart. From full power down it works every time.

I have a feeling this might be a potential hurdle for some users as we iron out the kinks of patching compatible BIOSes - I'll do some testing at some point of adding the .ffs to one entry, then the other, and see if ReBAR continues to work and it resolves my issues. For now I can deal with cold boot :P

But in my case I had only one entry in the UEFI file.

@terminatorul
Copy link
Owner Author

@vigilant-hylian Did you try to add the NvStrapsReBar driver only once to the firmware image ?

Can you try the new version v0.3 (which fixes sleep) and say if you still have the resume from sleep issue ?

Do you have anything new about the reboot issue ? Are you stil dealing with it ?

@vigilant-hylian
Copy link

vigilant-hylian commented Mar 11, 2024 via email

@xCuri0
Copy link

xCuri0 commented Mar 11, 2024

@terminatorul i dont think this relates to issues with the dxe driver.

it's probably some corruption caused by UEFITool causing this, i think even rebaruefi does it on some AM4 systems

@terminatorul
Copy link
Owner Author

@TheUntouchable can you try to modifiy the UEFI image using mmotool instead of UEFITool, and check if you still have the reboot problem ? Be sure to start from the original UEFI image file (from MSI)

@xCuri0
Copy link

xCuri0 commented Mar 11, 2024

you should use MMTool V5 on recent motherboards like this btw, using MMTOOL V4 might cause issues

@TheUntouchable
Copy link

TheUntouchable commented Mar 11, 2024

I just flashed the image I created with the "MMTool Aptio 5.02.0024 Mod" and it is exactly the same behaivour. I also reset all settings and tried it without any changes, same thing. Previously I disabled BAR via "NvStrapsReBar.exe".
Will now try to flash the unmodified Uefi for testing, hopefully that will fix the problem :D

@TheUntouchable
Copy link

TheUntouchable commented Mar 11, 2024

Update: Even with the unmodified image from MSI directly I have now this behaivour :( Is there something I can reset with the "NvStrapsReBar.exe" in addition to disable BAR?
EDIT: Shutdown is working btw.
grafik

@TheUntouchable
Copy link

Update: I just realized that the CPU error LED on my motherboard is lit while my PC is freezing up

@terminatorul
Copy link
Owner Author

terminatorul commented Mar 11, 2024

Is there something I can reset with the "NvStrapsReBar.exe" in addition to disable BAR?

No, NvStrapsReBar does not modifiy the Setup variable.

Can you flash the original version of UEFI the board had pre-installed ? Or some older version of the firmware ?
Did you use MSI Live Update under Windows, or M-FLASH from UEFI Setup ? Can you switch from one to the other ?
Can you boot from a Linux installation drive, to see if it does the same on reboot ?

@TheUntouchable
Copy link

TheUntouchable commented Mar 11, 2024

Okay, I just had a really hard time 😄.
I already tried to downgrade the UEFI as I had the feeling that the flashing with the same version over the modified version was just too fast...
But apparently I got a version which doesn't support my CPU yet and so I couldn't boot at all😄
Luckily I still had my old x2700 somewhere, but I have a fully water cooled cycle, so yeah....
I was able to update the uefi back to the latest version and now it seems I can reboot again with no problems, at least with the old CPU. Will have to replace the cpus again later..

Regarding your questions, I always flashed with M-Flash and a USB stick. My board can only hold one uefi version at the same time.

@TheUntouchable
Copy link

Yes... I don't think it was my day... The PC is now running again, but the reboot problem is still there and the LED controller on my mainboard seems to be broken as well.

@terminatorul
Copy link
Owner Author

So can you still flash an older version (with support for your CPU), then use MSI Live Update (instead of M-FLASH) to flash the latest version again ?

@TheUntouchable
Copy link

I will try that out later :)

@TheUntouchable
Copy link

TheUntouchable commented Mar 12, 2024

Update: Ok, I installed an earlier version via M-FLASH without any problems. Nevertheless, the PC still freezes after/while a reboot with red CPU Led on. At least it seems that the LED controller is working again :)

Unfortunately I can't flash the latest uefi version via Live Update as it has been marked as beta for 7 months :(

EDIT: Ok, I just wanted to boot into the UEFI again to check some settings, and out of nowhere the reboot happend.. So it seems that this is fixed now again :D Will try to flash the latest UEFI now and see if its still working.

@TheUntouchable
Copy link

Update: It seems that I got the UEFI and the LED Controlle fixed, everything is working like before I flashed the modified uefi version :) Question is now what happend..

@terminatorul
Copy link
Owner Author

At any point did you try to clear CMOS and then manually load default / optimized values ?

@TheUntouchable
Copy link

TheUntouchable commented Mar 12, 2024

My board has a dedicated button for that.. And I can't tell you how often I pressed it the last days :D Also I cleared the settings in the UEFI to default each time a did a flash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants