system freezes when gaming or using google maps
Hi there,
for about 2-3 weeks I've been having problems with system freezes that happened very irregularly, but started to occur more frequently.
Upfront, I'm using 5.5.13-1-MANJARO and my specs are:
CPU: AMD Ryzen 5 3600X 6-Core
GPU: AMD NAVI10 (Radeon RX 5700 XT, to be more precise)
GPU DRIVER: 4.6 Mesa 20.1.0-devel (git-b94c277fd1)
RAM: 16 GB
I started to notice it with google maps in firefox and chrome. I found this, but I didn't care to much to try it and I also didn't quite understand what to do either.
But since I started playing Greedfall a few days ago the system freezes happen way more often, to a point where I can't continue playing it, because keeps freezing everything at the same damn spot, right after my main save.
The only thing I can do when the system freezes is hit ctrl + alt + f2 to switch to another session. But I can only do that once. As soon as I go back to my original sessions it's done, only hard reset helps at that point. While being in terminal I tried several different things like killing resource heavy processes like the game, steam, firefox or stuff like restarting plasmashell and kwin_x11 --replace and other stuff I found on the internet, but nothing really helped.
The errors I get from journalctl are:
Apr 03 18:52:47 kernel: amdgpu: [powerplay] failed send message: SetHardMinByFreq (28) param: 0x00020064 response 0xffffffc2
Apr 03 18:52:49 kernel: amdgpu: [powerplay] failed send message: SetHardMinByFreq (28) param: 0x0007004a response 0xffffffc2
Apr 03 18:52:49 kernel: Console: switching to colour frame buffer device 240x67
Apr 03 18:52:50 kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=206695, emitted seq=206697
Apr 03 18:52:50 kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process GreedFall.exe pid 6391 thread GreedFall.:cs0 pid 6395
Apr 03 18:52:50 kernel: [drm] GPU recovery disabled.
I uninstalled the mesa git drivers and installed the video-linux drivers through mhwd, but sadly that didn't fix the problem. I also tried running the game with several different proton variables, but that didn't work as well and I think it might not be a problem with the game per se.
I would appreciate any input on this matter.
Posted Apr 4, 2020, 10:12 AM UTC · edited
I have a very similarly system to yours and have had very similar issues. Invariably the issues always come back to mesa development around navi. The good news is things are changing fast and more and more support is getting added for navi features and these issues are getting fixed quickly. The bad news is that following the git master of mesa is an unending source of sadness. It looks like the gpu crash you're getting above is probably related to some of the newer powerplay frequency scaling changes.
From the issue you linked it looks like
nonnggturns off ngg culling, which is "next generation geometry" culling. It's a hardware feature of the card designed to make it easier for software to figure out which geometry to show, and which to hide. It's a brand new feature (~ a week) so unfortunately it's not too surprising it's causing heartburn. Disabling this is probably a good play for system stability in the short term. I'd expect by the next stable release of mesa they'll have that sorted out.My approach to all this is to find a stable mesa version and stick with it until such time as it turns out to not be stable or I want one of the features they've added. The mesa version I'm currently on is 20.0-fe5267d which isn't perfect but crashes very infrequently and seems to work very well for 3D applications with reasonably good performance.
Good luck! The RX5700XT can be a frustrating experience but when the software works it's an excellent and speedy card. The software will catch up. 😀
Thanks a lot for the insightful response and for your help. From the link I posted I could've figured out the workaround by myself, but I was naively thinking it would only solve the problem with google maps. But your explanation clarified the importance of it.
So I put
AMD_DEBUG="nonggc"in/etc/environment, restarted the system and now I can finally play again.Thanks mate.
Thank you, same card but on arch linux. In my case, google maps kept crashing when it was switching from the flat projection to the globe. I edited the /etc/environment variable in a same way you did and it helped.
Thanks for the pointer.
Unfortunately it seems to be an issue with the GPU frequency and voltage settings being out of whack with the Mesa drivers. It may be specific to my card (RX 5700 XT Gigabyte Gaming OC).
After installing CoreCTRL I noticed all the settings looked way off. When I set the voltage and frequency correctly I don't have crashes any more.