[Bug 280942] amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh.
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280942] amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 70h-7Fh."
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 280942] amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 70h-7Fh."
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Aug 2024 10:17:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280942 Bug ID: 280942 Summary: amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 10h-1Fh. Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: olli@FreeBSD.org Created attachment 252943 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=252943&action=edit Patch for amdsmn.c and amdtemp.c to support AMD Ryzen 7 "Phoenix" The attached patch adds support for AMD Ryzen 7 "Phoenix" processors (family 0x19, model 0x70-0x7f) to the amdsmn(4) and amdtemp(4) drivers, enabling temperature readings of these CPUs via sysctl. The sensors work the same as for the "Raphael" processors (model 0x60-0x6f), only the PCI device ID differs. The patch applies cleanly to (15-) current, 14-stable and 13-stable, including 14.1-RELEASE and 13.4-BETA. However, I have *not* tested it on 13, but I'm fairly certain that it works there, too (as explained above, it's only the PCI device ID). Tested with Ryzen 7 8700G (family 0x19, model 0x75). Kernel messages: CPU: AMD Ryzen 7 8700G w/ Radeon 780M Graphics (4200.20-MHz K8-class CPU) Origin="AuthenticAMD" Id=0xa70f52 Family=0x19 Model=0x75 Stepping=2 [...] amdsmn0: <AMD Family 19h System Management Network> on hostb0 amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb0 $ sysctl dev.amdtemp dev.amdtemp.0.core0.sensor0: 32.1C dev.amdtemp.0.sensor_offset: 0 dev.amdtemp.0.%parent: hostb0 dev.amdtemp.0.%pnpinfo: dev.amdtemp.0.%location: dev.amdtemp.0.%driver: amdtemp dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors dev.amdtemp.%parent: $ sysctl dev.cpu.0 dev.cpu.0.temperature: 32.1C dev.cpu.0.cx_method: C1/hlt C2/io C3/io dev.cpu.0.cx_usage_counters: 931437 0 0 dev.cpu.0.cx_usage: 100.00% 0.00% 0.00% last 1557us dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_supported: C1/1/1 C2/2/18 C3/3/350 dev.cpu.0.freq_levels: 4200/5040 2200/2420 1600/1600 dev.cpu.0.freq: 1600 dev.cpu.0.%parent: acpi0 dev.cpu.0.%pnpinfo: _HID=ACPI0007 _UID=0 _CID=none dev.cpu.0.%location: handle=\_SB_.PLTF.C000 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: ACPI CPU -- You are receiving this mail because: You are the assignee for the bug.