Bug 284010 - amdsmn(4), amdtemp(4): add support for Zen 5
Summary: amdsmn(4), amdtemp(4): add support for Zen 5
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 15.0-CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-12 03:47 UTC by Simon Wells
Modified: 2025-01-19 00:26 UTC (History)
6 users (show)

See Also:


Attachments
zen5 support patch (2.70 KB, patch)
2025-01-12 03:47 UTC, Simon Wells
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)