[Bug 281962] amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 40h-4Fh
Date: Wed, 09 Oct 2024 15:06:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281962 Bug ID: 281962 Summary: amdsmn(4), amdtemp(4): add support for AMD Family 19h Models 40h-4Fh Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: freebsd@lanter-it.ch Created attachment 254112 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=254112&action=edit Patch for amdsmn.c and amdtemp.c to support AMD Ryzen 7 "Rembrandt" The attached patch adds support for AMD Ryzen 7 "Rembrandt" processors (family 0x19, model 0x40-0x4f) 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, including 14.1-RELEASE. It should also work with 13, as only the PCI device ID is changed. Tested with Ryzen 7 PRO 6850U (family 0x19, model 0x44, https://bsd-hardware.info/?probe=0a2c02f944). Kernel messages: CPU: AMD Ryzen 7 PRO 6850U with Radeon Graphics (2695.04-MHz K8-class CPU) Origin="AuthenticAMD" Id=0xa40f41 Family=0x19 Model=0x44 Stepping=1 [...] 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: 48.5C 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: 48.5C dev.cpu.0.cx_method: C1/hlt C2/io C3/io dev.cpu.0.cx_usage_counters: 49971 0 0 dev.cpu.0.cx_usage: 100.00% 0.00% 0.00% last 42529us 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: 2700/3240 1800/1980 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.