[Bug 290326] amdgpu: Unimplemented ...get_mclk.. and ...get_sclk... raise kernel messages

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 17 Oct 2025 15:36:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290326

            Bug ID: 290326
           Summary: amdgpu: Unimplemented ...get_mclk.. and ...get_sclk...
                    raise kernel messages
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: jeff+freebsd@wagsky.com

It is not uncommon for monitoring programs to call `sysctl -a` if multiple
values are needed. After installing the DRM drivers for AMD through FreeBSD pkg
repo, messages began appearing on the console as well as in the logs every
minute, coincident with the cron job doing the monitoring

info: kernel:  amdgpu: pp_dpm_get_mclk_od was not implemented.
info: kernel:  amdgpu: pp_dpm_get_sclk_od was not implemented.

After removing `sysctl -a` from that job and hard-coding the sysctls to be
retrieved, the messages stopped.

Further examination indicated that the following two sysctls trigger the
messages:

sys.device.drmn0.pp_mclk_od
sys.device.drmn0.pp_sclk_od]

See also https://forums.FreeBSD.org/threads/pkg-upgrade-desaster.80156/ for
other impacted systems


FreeBSD 14.3-RELEASE-p2 GENERIC amd64
CPU: AMD Ryzen 3 PRO 3300U w/ Radeon Vega Mobile Gfx (2096.17-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x810f81  Family=0x17  Model=0x18  Stepping=1
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD
Features2=0x35c233ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX>
  AMD Extended Feature Extensions ID EBX=0x1007<CLZERO,IRPerf,XSaveErPtr,IBPB>


$ fgrep -i drmn0 /var/run/dmesg.boot
drmn0: <drmn> on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child drmn0 requested pci_enable_io
drmn0: successfully loaded firmware image 'amdgpu/picasso_gpu_info.bin'
drmn0: Fetched VBIOS from VFCT
drmn0: successfully loaded firmware image 'amdgpu/picasso_sdma.bin'
drmn0: Trusted Memory Zone (TMZ) feature enabled
drmn0: PCIE atomic ops is not supported
drmn0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
drmn0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
drmn0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
drmn0: successfully loaded firmware image 'amdgpu/picasso_asd.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_ta.bin'
drmn0: PSP runtime database doesn't exist
drmn0: PSP runtime database doesn't exist
drmn0: successfully loaded firmware image 'amdgpu/raven_dmcu.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_pfp.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_me.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_ce.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_rlc.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_mec.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_mec2.bin'
drmn0: successfully loaded firmware image 'amdgpu/picasso_vcn.bin'
drmn0: Will use PSP to load VCN firmware
drmn0: RAS: optional ras ta ucode is not available
drmn0: RAP: optional rap ta ucode is not available
lkpi_iic0: <LinuxKPI I2C> on drmn0
lkpi_iic1: <LinuxKPI I2C> on drmn0
drmn0: SE 1, SH per SE 1, CU per SH 11, active_cu_number 6
drmn0: ring gfx uses VM inv eng 0 on hub 0
drmn0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
drmn0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
drmn0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
drmn0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
drmn0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
drmn0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
drmn0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
drmn0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
drmn0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
drmn0: ring sdma0 uses VM inv eng 0 on hub 1
drmn0: ring vcn_dec uses VM inv eng 1 on hub 1
drmn0: ring vcn_enc0 uses VM inv eng 4 on hub 1
drmn0: ring vcn_enc1 uses VM inv eng 5 on hub 1
drmn0: ring jpeg_dec uses VM inv eng 6 on hub 1
vgapci0: child drmn0 requested pci_get_powerstate
[drm] Initialized amdgpu 3.49.0 20150101 for drmn0 on minor 0
name=drmn0 id=amdgpudrmfb flags=0x0 stride=7680


$ kldstat
Id Refs Address                Size Name
 1  149 0xffffffff80200000  1f41500 kernel
 2    1 0xffffffff82142000   11d718 if_re.ko
 3    1 0xffffffff82260000     7808 cryptodev.ko
 4    1 0xffffffff82269000   5e9328 zfs.ko
 5    1 0xffffffff82853000     7618 amdtemp.ko
 6    2 0xffffffff8285b000     36e0 amdsmn.ko
 7    1 0xffffffff8285f000     5b90 ng_ether.ko
 8    8 0xffffffff82865000    16cc0 netgraph.ko
 9    1 0xffffffff8287c000     7028 ng_socket.ko
10    1 0xffffffff836e9000    3de48 if_wg.ko
11    1 0xffffffff84200000   6648d8 amdgpu.ko
12    2 0xffffffff84865000    85090 drm.ko
13    1 0xffffffff841f8000     22b8 iic.ko
14    2 0xffffffff841fb000     4120 linuxkpi_video.ko
15    3 0xffffffff848eb000     7350 dmabuf.ko
16    4 0xffffffff848f3000     3378 lindebugfs.ko
17    1 0xffffffff848f7000     c338 ttm.ko
18    1 0xffffffff84904000     2220 amdgpu_picasso_gpu_info_bin.ko
19    1 0xffffffff84907000     64e0 amdgpu_picasso_sdma_bin.ko
20    1 0xffffffff8490e000    2c2e0 amdgpu_picasso_asd_bin.ko
21    1 0xffffffff8493b000     c4e0 amdgpu_picasso_ta_bin.ko
22    1 0xffffffff84948000     7b70 amdgpu_raven_dmcu_bin.ko
23    1 0xffffffff84950000     7560 amdgpu_picasso_pfp_bin.ko
24    1 0xffffffff84958000     6560 amdgpu_picasso_me_bin.ko
25    1 0xffffffff8495f000     4560 amdgpu_picasso_ce_bin.ko
26    1 0xffffffff84964000     b9c8 amdgpu_picasso_rlc_bin.ko
27    1 0xffffffff84970000    43800 amdgpu_picasso_mec_bin.ko
28    1 0xffffffff849b4000    43800 amdgpu_picasso_mec2_bin.ko
29    1 0xffffffff849f8000    5b4c0 amdgpu_picasso_vcn_bin.ko
30    1 0xffffffff84a54000     3390 acpi_wmi.ko
31    1 0xffffffff84a58000    b1270 if_iwlwifi.ko
32    1 0xffffffff84b0a000    17314 if_iwm.ko
33    1 0xffffffff84b22000     6020 ig4.ko
34    1 0xffffffff84b29000     3220 intpm.ko
35    1 0xffffffff84b2d000     2178 smbus.ko
36    1 0xffffffff84c00000   28fe30 iwm9260fw.ko
37    1 0xffffffff84b30000     2240 cpuctl.ko
38    1 0xffffffff84b33000     7798 if_bridge.ko
39    1 0xffffffff84b3b000     60e0 bridgestp.ko
40    1 0xffffffff84b42000     85a0 if_ure.ko
41    1 0xffffffff84b4b000     3190 uether.ko
42    1 0xffffffff84b4f000     5640 ng_ubt.ko
43    3 0xffffffff84b55000     a250 ng_hci.ko
44    2 0xffffffff84b60000     2670 ng_bluetooth.ko
45    1 0xffffffff84b63000     2238 ng_eiface.ko

-- 
You are receiving this mail because:
You are the assignee for the bug.