Bug 284010

Summary: amdsmn(4), amdtemp(4): add support for Zen 5
Product: Base System Reporter: Simon Wells <swel024+bsd>
Component: kernAssignee: Konstantin Belousov <kib>
Status: Closed FIXED    
Severity: Affects Some People CC: delphij, dudleyi, kib, markj, olli, ziaee
Priority: ---    
Version: 15.0-CURRENT   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
zen5 support patch none

Description Simon Wells 2025-01-12 03:47:05 UTC
Created attachment 256636 [details]
zen5 support patch

CPU: AMD Ryzen 7 9700X 8-Core Processor              (3793.06-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0xb40f40  Family=0x1a  Model=0x44  Stepping=0

amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb0

dev.amdtemp.0.ccd0: 50.6C
dev.amdtemp.0.core0.sensor0: 39.7C

checked 60c
dev.amdtemp.0.ccd0: 60.1C
dev.amdtemp.0.core0.sensor0: 59.1C
Comment 1 Simon Wells 2025-01-12 04:12:29 UTC
pciconf -lv
hostb0@pci0:0:0:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x14d8 subvendor=0x1022 subdevice=0x14d8
Comment 2 Dudley Innocent 2025-01-12 05:04:43 UTC
^triage: added last three committers who added device id to code. Unable to set to open; no permission.
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-01-12 12:15:07 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a9a71513ccfcb38346c84b006b43d45511d1652c

commit a9a71513ccfcb38346c84b006b43d45511d1652c
Author:     Simon Wells <swel024@gmail.com>
AuthorDate: 2025-01-12 11:46:05 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-01-12 12:14:01 +0000

    amdsmn(4), amdtemp(4): add support for Zen 5

    Zen 5 support, tested on Ryzen 7 9700X

    PR:     284010
    MFC after:      1 week

 sys/dev/amdsmn/amdsmn.c   |  3 ++-
 sys/dev/amdtemp/amdtemp.c | 28 +++++++++++++++++++++++++++-
 2 files changed, 29 insertions(+), 2 deletions(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-01-19 00:25:55 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=15e2065a1ee5b744b7f04d976ecfc31b49504081

commit 15e2065a1ee5b744b7f04d976ecfc31b49504081
Author:     Simon Wells <swel024@gmail.com>
AuthorDate: 2025-01-12 11:46:05 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-01-19 00:24:58 +0000

    amdsmn(4), amdtemp(4): add support for Zen 5

    PR:     284010

    (cherry picked from commit a9a71513ccfcb38346c84b006b43d45511d1652c)

 sys/dev/amdsmn/amdsmn.c   |  3 ++-
 sys/dev/amdtemp/amdtemp.c | 28 +++++++++++++++++++++++++++-
 2 files changed, 29 insertions(+), 2 deletions(-)