Ryzen AI - Linux Mint 22 Cinnamon freezing after July 31st package updates

Update: Since implementing Clem’s workaround, I have not seen a single issue with freezing since and the laptop gets used daily. I think the workaround can be called a ‘fix’.

So far so good. :slight_smile:

1 Like

Clem, you say we are waiting for the bug to be fixed upstream but is there a bug report that we can monitor to see when this is resolved?

I’ve written a simple script that does this for me as I have a few of these machines that I use as loaner devices and envisage wiping and rebuilding them frequently so this can save me some time. others are welcome to use this to and i welcome improvements to it.

2 Likes

Hi Clem - two questions: Will dmesg or syslog provide an entry confirming that I’m hitting this particular issue when my instance locks up? And, any eta on Mint providing fix such that we won’t need a workaround. Thanks!

1 Like

Feel like everyone glanced over your solution about the patch. LOL. Probably because compiling does take some knowledge. I compiled 6.17.5 but still encountered issue but I was assuming I caused something. Been hard as hell to debug. Now time to learn how to patch kernel after I verify its not already in 6.17.5 :smiley:

Fingers crossed

THANK YOU SO MUCH!!

I can verify kern 6.14.7, 6.15.*, 6.17.5 also experienced same issue with X11 freeze(with only mouse visible). Been leveling up my Linux skills compiling kernels trying to track this issue down. May have lost a little hair too. Debugging this issue has pushed my skills to the limit.

Looks like some fixes are in the pipeline for kernel. Unsure if they directly relate to PSR issues. Need to read through patches.

Recent Kernel Xorg+amdgpu patch fixes

1 Like

Thank you Clem! Been a Linux Mint user for almost a decade now and appreciate all the work you’ve put into it.

OP here, I did get the Framework 13 with Ryzen knowing full well there may be Linux issues. Tho I was just surprised they came up after I’ve been using the 6.14 kernel for at least a couple months and some patch updates suddenly triggered the issues.

That laptop didn’t need to be my main driver so life had taken me away from fixing it but I will be catching up with the potential fixes and get more time to get my lovely new Framework laptop working again so I can let my wife use the Framework 12.

This is an aside to the actual problem but I’m glad you are enjoying getting deeper into Linux.

I went the opposite route – I started Linux journey with Mandrake and Slackware back in the early 2000s until I found Gentoo was a nice compromise. It was fun but, like you, I “lost my hair” trying to figure things out all the time. I’ve been enjoying the fact that Linux Mint has worked “out of the box” for the most part for me for a long time and my tinkering days are over.

As far as I could tell I didn’t see anything in either when I kept trying to figure out what was going on – nothing seemed to show up in the logs around the time the issue occurred. That was a time sink just waiting for an indeterminate amount of time for it to freeze in the UI :sweat_smile:

Added the extra config to grub per Clem’s guide yesterday and so far so good the past day.

Thanks! Hope it gets accepted by upstream soon.

Can confirm that as of this writing this is still a problem with kernel 6.18 compiled from source (6.19 is still in RC), and that with the stock Linux Mint Debian Edition kernel (6.12.63+deb13-amd64) that amdgpu.dcdebugmask=0x12 does work around the issue without any other modifications to the installed distro.

1 Like

For anyone that is looking at this workaround – I have been using it for months now and have not had any freezing issues. My battery drains much faster but that was expected given what the flag does. It is not an issue for me personally as battery length has never been a top priority but I know that matters a lot for others so FYI.

I’m a Linux newbie (W10 refugee) and was hoping to install the latest Mint on my AMD AI 9 HX 370. However, it keeps hanging a few minutes after booting, presumably due to the PSR issue..

I can’t see a workaround by modifying the grub parameters when using a thumb drive to boot, since it won’t persist after reboot, so I’ll never be able to get the initial install to the HD done.

Can someone give me basic instructions for installing an earlier version of Mint, then upgrading to the most recent while fixing the grub config?

This “amdgpu.dcdebugmask=0x12” fix really worked for my situation. BIG THANK YOU to @clem and this forum post / info :slight_smile: I was beginning to get worried as I’m attempting the move from Windows 10 to Linux Mint and Cinnamon was freezing every day, every few hours sometimes. To provide some context…

I’m running a i7-3930K CPU @ 3.20GHz - 6 cores and 12 threads - processor with 64g of memory, SSD drives, and a Geforce GTX 1050n graphics card to 3 x monitors with Linux Mint 22.3 (Cinnamon desktop)

OS:

Geforce GTX 1050n 3 x monitors (24”, 24”, 25”) - 1 DVI, 2 x HDMI cables

The “grub parameters” are ultimately to be passed to the linux kernel when grub boots it. You can probably modify the kernel parameters in the bootloader of the installer. I’m not familiar with the linux Mint installer, but if it starts out with a grub menu with some different ways to boot, you type “e” to edit the currently highlighted boot entry, and add that dcdebugmask param at the end, and it will apply during that boot. (And similarly when booting up the installed system, until you are able to modify /etc/default/grub and regenerate /boot/grub/grub.cfg)

Thanks - will try this Monday - I’m currently at 6000’ in the North Cascades, and don’t have my lappy with me…

Thanks for your help. This worked for me.

Thanks for sharing this with us.

Does anyone knows if we need the amdgpu.sg_display=0 as well, or the amdgpu.dcdebugmask=0x12 only should be enough?

The 0x12 fix has completely fixed it for me. Uptime currently eight days or so…

Thank you! I’ll test with 0x12 only and report back!