Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Random freezes when using kernel 6.12 (clang?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 204

PostPosted: Sat Mar 01, 2025 6:11 pm    Post subject: Random freezes when using kernel 6.12 (clang?) Reply with quote

Hi,
the kernel 6.12 is causing random freezes on my desktop, only solved by hard reset.
E.g. :
- just after I entered my password in lightdm, desktop (xfce) appears and instantly freezes
- I'm just reading mail, or watching a youtube video, and everything freezes
So just random freezes, kern.log doesn't show any error messages.
Previous kernel (6.6) works flawlessly.
My main suspect is the amdgpu module, and it seems there are a lot of similar issue :
https://gitlab.freedesktop.org/drm/amd/-/issues/3787
https://gitlab.freedesktop.org/drm/amd/-/issues/4002
https://gitlab.freedesktop.org/drm/amd/-/issues/3925
https://gitlab.freedesktop.org/drm/amd/-/issues/3943
I've also seen talks about a mesa bug, or a firmware issue :s
I was wondering, is anyone facing the same kind of freezes since upgrade to kernel 6.12 ?

P.S. : I'm using a rdna3 7900xtx


Edit : I was wrong suspecting amdgpu !
_________________
Dragon Princess Music Games Heroes and villains


Last edited by krumpf on Mon Mar 03, 2025 7:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9917
Location: almost Mile High in the USA

PostPosted: Sun Mar 02, 2025 2:27 am    Post subject: Reply with quote

I'm having random freezes as well with my old R7-250 and W2100 GPUs unsure relation...

Maybe related topic

Might be different, I'm using a old kernel 6.6.67 but mesa-24.3.4-r1. Which is bad because mesa should be userland and userland bugs shouldn't cause machine freezes like this... I was running dual monitor on both, unsure if that makes a difference.

I have not tested my V3900 or my intel GPU system enough to say if it's reproducible on different driver paths...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 204

PostPosted: Sun Mar 02, 2025 8:55 am    Post subject: Reply with quote

@eccerr0r
Yours might be the mesa issue I've read about https://gitlab.freedesktop.org/drm/amd/-/issues/3874 https://gitlab.freedesktop.org/mesa/mesa/-/issues/12487

I've been trying mesa 25.0 with kernel 6.12, and I still get random freezes. No issues when using mesa 25.0 + kernel 6.6
_________________
Dragon Princess Music Games Heroes and villains
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1910
Location: Germany

PostPosted: Sun Mar 02, 2025 9:46 am    Post subject: Reply with quote

Not really a solution, but I do have a working setup with:

- 6.12.6
- x11-drivers/xf86-video-amdgpu 23.0.0
- media-libs/mesa 24.3.4-r1
- [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9917
Location: almost Mile High in the USA

PostPosted: Sun Mar 02, 2025 10:00 am    Post subject: Reply with quote

really suspicious that all these cards started failing around the same time ...
not even sure if they have any similarities.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 204

PostPosted: Sun Mar 02, 2025 10:15 am    Post subject: Reply with quote

I'll start by quoting a mesa dev
Quote:
"random" issues are often power management related, for example they can happen when an overclock / undervolt is applied or when the power limit is set too high. We've also seen bugs when the kernel simply sets incorrect / unstable frequencies and voltages to the GPU.

Now, link that to this drm/amd bug thread, and you'll understand why I believe the culprit is amdgpu module. I once read (on phoronix iirc) that amd had planned better RDNA power management for kernel 6.13, but a few people already report issues with that kernel too :-/
_________________
Dragon Princess Music Games Heroes and villains
Back to top
View user's profile Send private message
keekkenen
n00b
n00b


Joined: 05 Oct 2024
Posts: 42

PostPosted: Sun Mar 02, 2025 10:53 am    Post subject: Re: Random freezes when using kernel 6.12 (amdgpu?) Reply with quote

krumpf wrote:

I was wondering, is anyone facing the same kind of freezes since upgrade to kernel 6.12 ?

My system works fine, and I didn't see any changes after migration from 6.6.x to 6.12.x kernel version.
_________________
7950x3d / x670e MSI Tomagawk / Sapphire RX 7800XT 16Gb / G.Skill 64Gb 5600 / A-Data Legend 960 2Tb (x2), A-Data SX8200PNP 256Gb
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2212

PostPosted: Sun Mar 02, 2025 12:05 pm    Post subject: Reply with quote

I've two AMD systems, an old AMD A9 laptop with integrated GPU, and a less old AMD Zen3 desktop with X570 graphics card. Both using AMDGPU.
Both ran kernel 6.12.x happily, now both on 6.13.x, no problems with freezes.
FWIW mesa version 24.3.4-r1
_________________
Greybeard
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 204

PostPosted: Mon Mar 03, 2025 7:42 pm    Post subject: Reply with quote

I was wrong, it seems amdgpu is not the culprit.

I've recompiled kernel 6.12 again, and so far, no freezes.
What did I change ? Well, I was wearing my lucky socks.
And I compiled using gcc instead of clang.

To sum up my experiments :
kernel 6.6 compiled with
    gcc ---> works
    clang ---> untested
    clang+thinLTO ---> works

kernel 6.12 compiled with
    gcc ---> works
    clang ---> random freezes
    clang+thinLTO ---> random freezes


So it seems the new suspect is clang. Or maybe one of the new clang specific options in kernel config.
_________________
Dragon Princess Music Games Heroes and villains
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2212

PostPosted: Tue Mar 04, 2025 9:16 am    Post subject: Reply with quote

You my be dismayed to know I compile my kernels with Clang, LTO=thin and for good measure -march=native.
_________________
Greybeard
Back to top
View user's profile Send private message
krumpf
Apprentice
Apprentice


Joined: 15 Jul 2018
Posts: 204

PostPosted: Tue Mar 04, 2025 10:24 am    Post subject: Reply with quote

Goverp wrote:
You my be dismayed to know I compile my kernels with Clang, LTO=thin and for good measure -march=native.

My kernel is configured to use O2, march=native (actually CONFIG_MNATIVE_AMD=y which comes from the experimental patch - not sure that patch is still required, I've read a 'native' option was coming in kernel 6.14), I don't think I got fancy/unstable options activated - or maybe I don't realize it.
Kernel 6.12 compiled with gcc works, while clang ones (with or without lto) don't (didn't notice any warning during compilation). Could that be caused by my clang then ? I've added a few USE flags to llvm-core/clang-common : default-lld llvm-libunwind default-compiler-rt, using glibc as C/C++ library.
In the end, I'm fine with a gcc kernel as long as it works, just a bit curious how come I get freezes when newer kernel is compiled with clang while it worked without issue for kern 6.6
_________________
Dragon Princess Music Games Heroes and villains
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum