Bug 270903

Summary: Black screen and kernel crash after reboot
Product: Base System Reporter: Daniel Toschläger <d.toschlaeger>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: fgorter
Priority: ---    
Version: 13.2-RELEASE   
Hardware: amd64   
OS: Any   

Description Daniel Toschläger 2023-04-17 19:29:59 UTC
Hello
Whenever I logout any windowmangager managed by GDM as login manager my graphics freeze. I can here some component fan turning up but only a black screen with a text block cursor appear in the upper left. I use my hardware ACPI on/Off button to shutdown. Every first reboot after this the boot process crashes in the upper third part of the hardare detection with a hard error wich completly resets the machine. No way of intervention. I use the GENERIC kernel and precompiled pkg's. I recomplied GDM from the ports tree which doesen't makes a difference though.

I am using an AMD Ryzen 7 5700G (integrated Vega 8) APU with a MSI RTX 3060 Ventus (two fan) graphics card (for primary display in Xorg) with 12GB of RAM. I have 32GB of memory. Since there is this reboot phenomenon occurs I assume it could be APU related. But I don't know for sure.

I am happy to help furthermore.


Kind regards
Daniel Toschläger
Comment 1 fgorter 2023-04-18 08:17:44 UTC
Are you using the 5700G APU's integrated GPU or specifically only the NVidia GPU?

I had a very intermittent issue with my RTX 3060Ti & FreeBSD-13 Stable branch some weeks ago. I track the more recent NVidia-driver for multiple testing & noticed one or two of the more recent releases causing issues, where the GPU would disappear from the PCIe bus for whatever reason... And the fans suddenly spooling up along with black screen & no response from the machine.
Curiously, none of these issues presented themselves while using the exact same machine with a GeForce 1030 GT installed.

Go to https://www.nvidia.com/en-us/drivers/unix/freebsd-x64-archive/ and try one of the more recent 525.x driver releases. Ports/Packages is version 515.86.01.

I can confirm 525.105.17, 525.105.01 & 530.41.03 work perfectly fine & without even a single problem/hiccup/crash.

The 530.30.02 release is buggy as hell -- AVOID at all costs.

525.89.02 occasionally had some problem -- never quite figured out what exactly.

525.85.05 worked without issue.

525.78.01 worked without issue.

Note: These drivers may require a more recent FreeBSD kernel release, thus a quick kernel recompile may be required.

Hope this helps you.
Comment 2 Daniel Toschläger 2023-04-18 19:16:03 UTC
I made two different xorg.conf files with the help of xorg (xorg -configure than only changed the keyboard section). both behave like described, first was without the APU, second with both RTX in PCIE and the APU configured (together with the kernel modules and user in group video and wheel).

Throughout today I came also to the conclusion it must be an nvidia driver specific problem. I helped myself so far by just "killall -9 Xorg" -ing my actual session from a terminal window which throws me als back into a working GDM interface.

Thank you very much for your help. I will try your advice. Very good tipps! 

Kind greetings :)
Comment 3 fgorter 2023-04-18 23:45:48 UTC
I tend to rely on x11/nvidia-xconfig to write a fully functional working /etc/X11/xorg.conf

Might be helpful to you too.

You can try building the nvidia-driver from ports with the ACPI_PM switched on/off perhaps. There might be a buggy ACPI state in the motherboard firmware.