Skip to content

ryzen_smu 0.1.7 fails to initialize on Krackan / Ryzen AI 5 340 (CPUID 0x00B60F00, PCI 1022:1122) #36

Description

@steveej

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

  1. Install/load ryzen_smu
  2. Reboot
  3. Check for sysfs interface:
    sudo ls -lah /sys/kernel/ryzen_smu_drv
  4. Check kernel log:
    sudo journalctl -k -b | rg -i 'ryzen_smu|smu'
  5. Run ryzenadj:
    sudo ryzenadj --info
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions