Summary
ryzen_smu loads on my Framework Laptop 13 AMD, but fails to initialize on a Krackan-based Ryzen AI 5 340.
Because initialization fails, /sys/kernel/ryzen_smu_drv is never created, and ryzenadj falls back to /dev/mem instead of using the kernel module.
This looks like model detection/support is incomplete for this CPU generation.
Hardware / software
- Laptop: Framework Laptop 13 AMD
- CPU: AMD Ryzen AI 5 340
- Codename seen from userspace:
Krackan
- PCI ID:
1022:1122
- Distro: NixOS
- Kernel:
6.18.15
ryzen_smu: 0.1.7
ryzenadj: 0.17.0
Reproduction
- Install/load
ryzen_smu
- Reboot
- Check for sysfs interface:
sudo ls -lah /sys/kernel/ryzen_smu_drv
- Check kernel log:
sudo journalctl -k -b | rg -i 'ryzen_smu|smu'
- Run
ryzenadj:
or
sudo ryzenadj --fast-limit=20000 --slow-limit=16000 --stapm-limit=16000 --tctl-temp=85 --info
Actual behavior
/sys/kernel/ryzen_smu_drv does not exist.
Kernel log shows:
ryzen_smu: loading out-of-tree module taints kernel.
ryzen_smu: loading version: 0.1.7
ryzen_smu: CPUID: family 0x1A, model 0x60, stepping 0x0, package 0x1
ryzen_smu: CPUID: Unknown Zen5/6 processor model: 0x60 (CPUID: 0x00B60F00)
ryzen_smu: Failed to initialize the SMU for use
And ryzenadj reports:
no compatible ryzen_smu kernel module found, fallback to /dev/mem
Expected behavior
ryzen_smu should initialize successfully on this CPU, expose /sys/kernel/ryzen_smu_drv/*, and be usable by ryzenadj without /dev/mem fallback.
Additional details
modinfo ryzen_smu shows:
version: 0.1.7
alias: pci:v00001022d00001122sv*sd*bc*sc*i*
lspci -nn shows:
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Krackan Root Complex [1022:1122]
So the module appears to match the PCI ID, but still fails during CPU/model initialization.
If useful, I can test a patch or provide more logs.
Summary
ryzen_smuloads on my Framework Laptop 13 AMD, but fails to initialize on a Krackan-based Ryzen AI 5 340.Because initialization fails,
/sys/kernel/ryzen_smu_drvis never created, andryzenadjfalls back to/dev/meminstead of using the kernel module.This looks like model detection/support is incomplete for this CPU generation.
Hardware / software
Krackan1022:11226.18.15ryzen_smu:0.1.7ryzenadj:0.17.0Reproduction
ryzen_smuryzenadj:Actual behavior
/sys/kernel/ryzen_smu_drvdoes not exist.Kernel log shows:
And
ryzenadjreports:Expected behavior
ryzen_smushould initialize successfully on this CPU, expose/sys/kernel/ryzen_smu_drv/*, and be usable byryzenadjwithout/dev/memfallback.Additional details
modinfo ryzen_smushows:lspci -nnshows:So the module appears to match the PCI ID, but still fails during CPU/model initialization.
If useful, I can test a patch or provide more logs.