PSA: Avoid Kernel 5.12.13/5.10.46/5.13-rc7 If Using AMD GFX9/GFX10 (Vega, Navi) GPUs
The issue relates a bug introduced in 5.13-rc7 and backported to v5.12.13 (linux), 5.10.46 (linux-lts) and 5.4.128 (bugzilla tracker) which breaks power management for these ASICs causing them to fail to ever enter a gfxoff state, aka their frequencies are locked to their highest Pstate with a significant increase in power consumption and temperatures while drastically affecting performance.
I myself only noticed after my card nearly overheated with fans at full blast during a heatwave that hit my area. If you build your own kernel, you can revert the following two commits to fix the issue:
drm/amdgpu/gfx9: fix the doorbell missing when in CGPG issue.
drm/amdgpu/gfx10: enlarge CP_MEC_DOORBELL_RANGE_UPPER to cover full doorbell.
Reverts have already been passed on to the latest 5.13 branch but backports aren't currently available for other versions.
v5.12.13 is currently in testing so it's something to look out for if you plan to update or the update makes it to core. If you're using linux-lts, it probably has already made its way to you so you should downgrade if you're experiencing the issue.
About this post
- Posted
- Archived
- Score
- 120 · 99% up
- Kind
- Text
- ID
- o7x5j8
44 comments
Seems like this kind of issue keeps creeping back every once in a while. Last time was on kernel 5.10.
More like all the time. With AMD drivers, it's always a coin toss about whether or not something critical in the drivers will break. You could bet on it breaking, and you'd be right 80+ % of the time.
lol that's absolutely correct and people are downvoting it. amd firmwares are trash too. I had to revert back to some 2020 version for my igpu to properly power manage https://www.reddit.com/r/linuxquestions/comments/nwv4vb/people_with_amd_gpu_can_you_check_this/
Two things happened at the same time; Arch backported the 1st MB memory reservation code from 5.13 early and Stable merged two problematic amdgpu commits, I have to make 3 separate reverts to build a stable 5.12.13.arch1:
If anyone wants them I'm sticking these on top of 5.12.13 in my own PKGBUILD and it's working fine:
With those reverts .13.arch1 is solid; non-arch mainline/stable kernels (both 5.12.13 and 5.13-rc7/5.13.0) don't need the last one, that's only for the Arch kernel tree.
If you look in that github organization I have a set of kernel packages with those reverts and the upcoming 5.14 sleep/suspend fixes for Renoir/Cezanne. If you're on the "help my laptop crashes when it's supposed to suspend" struggle bus feel free to check those out.
See https://github.com/archlinux/svntogit-packages/commit/e5f1ac205d4da84030ffa833dfd358a2b5d551c6
Arch kernel commit log on Github:
https://github.com/archlinux/linux/commits/v5.12.13-arch1
Thanks!
I'm using 5.12.13-zen1-2-zen and a RX 5700 and experience the bug.
Did you revert the two drm/amdgpu/gfx9 and gfx10 commits? Those are known problems and the reverts have already been merged upstream, I'm honestly surprised the commits got pulled into stable this fast - they landed in 5.14 less than two weeks ago iirc.
Does 5.12.14.arch1 which just hit stable fix this?
edit: yes it does
It includes the two amdgpu reverts, yeah. I haven't run it yet so don't know if there are any issues.
Yeah, that's how AMD GPU drivers are - constantly broken, and constantly breaking. I used to be like you, bisecting commits, contributing patches.
Then I asked myself - "Why am I paying hundreds of dollars for hardware and then doing free labour for a company that provides shitty driver support. A company that earns hundreds of millions or billions of dollars a year. They can easily afford providing better Linux support. They just choose not to."
I'm ditching AMD and moving over to Intel instead.
Thanks for this, i'm on a igpu(3200G) and i noticed my temps were a little hotter but didn't think much of it since it's a hot day today, but as i saw your post i opened radeontop and indeed the igpu clock speed was maxed out even with just idling on the desktop(and 100% pipeline usage), i downgraded and rebooted and sure enough my temps dropped and the clock speed is normal now, on the linux-lts kernel.
AMD drivers are a travesty
Thanks!
I'm using a self-built kernel with a 5700XT and noticed a slight difference in volume from the fans in my computer case after upgrading to 5.12.13, but didn't think much of it, as it was barely noticable.
On 5.12.13 my GPU was running in idle at 2000Mhz and ~55W and after downgrading back to 5.12.12 it's back to 6Mhz in idle and ~7W.
edit
found the time to rebuild and can confirm that the following diff does indeed fix the issue on 5.12.13:
https://github.com/torvalds/linux/compare/df6cd610bbe52fc78bd77fec67850f0f3497679d..df6cd610bbe52fc78bd77fec67850f0f3497679d~1
Can you tell if we will see this revert in 5.12.14?
Nevermind: https://bugzilla.kernel.org/show_bug.cgi?id=213561
:D
Is this fixed with the latest zen update?
Welcome to the AMD experience: commits written like aliexpress listings that break devices and have clearly never been tested, but get backported to every stable version.
Out of curiousity, how is it that this is allowed to happen. From what it sounds like, this happens immediately and consistently. Does Linus / other maintainers of Linux really have no AMD hardware that they test on before pushing to lts? They are paid enough to where they definitely should.
Deleted before we saved it.
Yeah well, that's what I thought too, but my RX 580 still faces problems. The sensor values are buggy (mainly the fan) and zero RPM doesn't work at all. But I guess Linus doesn't care about those.
Lol, why do you blame Linus and other kernel maintainers? AMD made the hardware, AMD wrote the drivers, it's their job to test the code and make sure it works well. Not everyone else's.
We pay hundreds of dollars for our GPUs to a company that provides shit support and you go around blaming kernel maintainers.
Just noticed the same issue and have been banging my head trying to fix it. I’ve been manually trying to adjust the pstates and nothing changes. Will downgrade. Thanks.
Deleted before we saved it.
Oh great. Will do. Thanks.
Trying the Xanmod version right now, thanks.
Edit: They worked, thanks.
Oh i have navi 22 witch is navi 10 on "techpowerup", what's with these codenames. Using lts ? didn't have the driver last time i checked.
Yeah I've noticed my RX 5600 XT is pinned at 100% usage, although it remains around 50°C (around 60°C when gaming)
Ln Ok. 👌 know how to remove r
I knew it!
Deleted before we saved it.
Would this happen to be why CoreCtrl no longer works? Nothing I set or any flags input in the config affect the min/max GPU and MEM clocks... Or even the wattage...
system lockup while switching between tty1(sway) tty2... since i can't remember.
Thanks for the heads up. As an Arch user, I was affected. Confirmed with radeontop.
It is surprising this bug is still in Arch. They didn't rollback (presumably other fixes in 5.12.13 they didn't want to lose).
Still surprising upstream wouldn't immediately release 5.12.14 with just this fix. I've pinned 5.12.13 for now. Thanks!
Oh gee, AMD drivers broken yet again. Just a typical day with AMD Linux drivers.
and then people say nvidia drivers on linux suck
They do suck. I just went from a 1070 to a 6800. Things that randomly didn't work before work well now.
In my experience, NVIDIA drivers are pretty high quality. Only reason I don't use them is that I need proper Wayland support. And to compile latest kernels from git, which is only easy with AMD and Intel open source drivers.