Linux Mint on Ryzen AI 300 and errors while charging

Yesterday I received my Ryzen™ AI 9 HX 370 mainboard, and I upgraded my Framework Laptop 13. I installed Linux Mint 22.1 from scratch on a new NVMe drive, installed the 6.11.0-1020-oem kernel, and applied all of the updates. I’m having a problem with dmesg getting spammed but only while the laptop is charging.

When I plugin a USB C charger, I get the following, with the last three lines repeated continuously:

[33579.335198] ucsi_acpi USBC000:00: unknown error 0
[33579.335258] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
[33579.556066] ucsi_acpi USBC000:00: unknown error 0
[33579.556086] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
[33579.779022] ucsi_acpi USBC000:00: unknown error 0
[33579.779041] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
[33580.015090] ucsi_acpi USBC000:00: unknown error 0
[33580.015110] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
[33580.148070] ucsi_acpi USBC000:00: unknown error 0
[33580.148091] ucsi_acpi USBC000:00: GET_CABLE_PROPERTY failed (-5)
[33580.365219] ucsi_acpi USBC000:00: unknown error 0
[33580.365307] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
[33580.553065] ucsi_acpi USBC000:00: unknown error 0
[33580.553081] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
[33580.680074] ucsi_acpi USBC000:00: unknown error 0
[33580.680092] ucsi_acpi USBC000:00: con4: failed to register partner alt modes (-5)

I’ve tested with a UGREEN 100W USB C charger and an Anker Nano 65W USB C charger and three different cables. The USB C modules in all four ports give the same results.

While dmesg is getting spammed, I also see multiple processes like the following using up a total of around 6% CPU continuously:

kworker/4:2+events
kworker/3:1-kacpi_notify
kworker/u96:3+USBC000:00-con4

Any suggestions? Are there any newer kernels available for Mint 22.1 that might help?

I’m seeing the same on Arch Linux with a newer kernel (6.14.4).

I also have a few USB-C PD chargers with meters that show it negotiating 20V correctly but then constantly flipping between 0.2A and 3A. Might be an issue with PD negotiation.

Are you also noticing charging appearing to be slow while using it? With the system running charging seems to take noticeably longer than my 7840u did with similar load as well.

I didn’t spend too much time with it charging like that. When I saw the constant errors getting logged, I suspended the laptop before I plugged it back in. I’ll watch out for slow charging in the future though.

I’ve found a workaround that stops all of the errors from spamming dmesg. I added the following to the end of /etc/modprobe.d/blacklist.conf:

blacklist ucsi_acpi

and then I ran sudo update-initramfs -u. This has silenced all of the errors and lowered my CPU usage. So far the only downside I’ve noticed is that closing the lid no longer suspends the laptop, so I have to do that manually. There are probably other ACPI related features that no longer work, but I haven’t noticed them yet.