Random hangs and reboots

I’m running the 15.1-release version on an AMD Ryzen 3 7320U AIO PC, Radeon Graphics, MATE desktop, 8Gb RAM and rtl8852BE wireless driver. A few seconds after I login the system hangs and quickly reboots. I have verified that the system is up to date and that the tunable compat.linuxkpi.skb.mem_limit is set to 1. The problem happens randomly, sometimes all of a sudden after some minutes of normal behavior. By the way, the wireless connection seems to work without hiccups. It might be a kernel panic or a graphics or other hw issue, don’t really know how to tell because I’m new to FreeBSD. What could I do to find out the culprit? Thanks in advance.
 
Try with a Linux live image.

I've got a machine that lets you install Linux or OpenBSD or FreeBSD, and runs happily for 10-15 minutes and then locks up.

So try with a different OS to eliminate hardware.
 
Maybe it’s still the offender though another way?
It's still under heavy development, as is the DRM driver you're likely also using. Both could certainly have bugs that crash your system. Any messages in /var/log/messages that might provide clues as to what crashed? Anything in /var/crash/? If there's a core dump you might be able to figure out what exactly crashed.
 
rtl8852BE wireless driver
15.0, the culprit was the wireless driver. Maybe it’s still the offender though another way?
Possible. I have a ThinkPad AMD 5700U, ('Lucienne' GPU), with a RTL8852AE wireless. On 15.0-RELEASE the machine kernel panicked with the rtw89(4) driver often, made the system unusable. There was also a report on freebsd-wireless@ mailing list, that the panic could be triggered in combination with the (amdpgu) drm-kmod driver.

I never tracked the issue seriously. At the time I used an external USB wifi since 13.0.

On 15.1-RELEASE the kernel panic occurs on this particular machine only after a suspend/resume- service netif restart. Besides that, the rtw89 driver is working stable.

In your case, as SirDice suggested, inspecting the core dump might give indications what be the issue. If it exists, look at the core.txt.* file.

If any core dump is absent, check in /etc/rc.conf for dumpdev="AUTO" and execute dumpon -l, see if a appropriate dump device (swap) is listed.

Besides trying a Linux distro, as richardtoohey2 suggested, on 15.0 I had planed to disable the (amdgpu) drm-kmod driver and configure xorg with the x11-drivers/xf86-video-scfb driver, to see if the kernel panic still occures with the rtw89 driver. You could try that also.

If the rtw89 looks like the culprit, you should subscribe to the freebsd-wireless@freebsd.org mailing list and report the problem. You can expect a response from the rtw89 driver developer, Boern A. Zeeb, shortly. Begin the mail subject with '[rtw89]'.
 
Thank you all guys for your help! Unfortunately I wouldn't want to replace drm-kmod with sfcb because I need to run gammastep (that does not work with sfcb). I am attaching the /var/log/messages file. There is no log in /var/crash.
 

Attachments

In my case..
A few months before the power supply exploded, my system often crashed 🙀
After replacing the exploded power supply, my system became very stable even heavy loading. 😸🐱
 
Back
Top