Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Oct 2024 15:24:20 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 745965ffb69e - stable/14 - amdtemp: add support for AMD Family 19h Models 40h-4Fh
Message-ID:  <202410201524.49KFOK8G009723@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

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

commit 745965ffb69e37101c8c0453a681ad4ae4b6ff9f
Author:     Matthias Lanter <freebsd@lanter-it.ch>
AuthorDate: 2024-10-13 13:21:19 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-10-20 15:22:41 +0000

    amdtemp: add support for AMD Family 19h Models 40h-4Fh
    
    PR:             281962
    MFC after:      2 weeks
    
    (cherry picked from commit ecbe99e1627627b6797153899e4d95fde3e230e2)
---
 sys/dev/amdtemp/amdtemp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index 583ff80cac69..37ec49f6975b 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -115,6 +115,7 @@ struct amdtemp_softc {
 #define	DEVICEID_AMD_HOSTB17H_M30H_ROOT	0x1480	/* Also M70H, F19H M00H/M20H */
 #define	DEVICEID_AMD_HOSTB17H_M60H_ROOT	0x1630
 #define	DEVICEID_AMD_HOSTB19H_M10H_ROOT	0x14a4
+#define	DEVICEID_AMD_HOSTB19H_M40H_ROOT	0x14b5
 #define	DEVICEID_AMD_HOSTB19H_M60H_ROOT	0x14d8
 #define	DEVICEID_AMD_HOSTB19H_M70H_ROOT	0x14e8
 
@@ -142,6 +143,7 @@ static const struct amdtemp_product {
 	{ VENDORID_AMD,	DEVICEID_AMD_HOSTB17H_M30H_ROOT, false },
 	{ VENDORID_AMD,	DEVICEID_AMD_HOSTB17H_M60H_ROOT, false },
 	{ VENDORID_AMD,	DEVICEID_AMD_HOSTB19H_M10H_ROOT, false },
+	{ VENDORID_AMD, DEVICEID_AMD_HOSTB19H_M40H_ROOT, false },
 	{ VENDORID_AMD,	DEVICEID_AMD_HOSTB19H_M60H_ROOT, false },
 	{ VENDORID_AMD,	DEVICEID_AMD_HOSTB19H_M70H_ROOT, false },
 };
@@ -875,6 +877,7 @@ amdtemp_probe_ccd_sensors19h(device_t dev, uint32_t model)
 		maxreg = 12;
 		_Static_assert((int)NUM_CCDS >= 12, "");
 		break;
+	case 0x40 ... 0x4f: /* Zen3+ Ryzen "Rembrandt" */
 	case 0x60 ... 0x6f: /* Zen4 Ryzen "Raphael" */
 	case 0x70 ... 0x7f: /* Zen4 Ryzen "Phoenix" */
 		sc->sc_temp_base = AMDTEMP_ZEN4_CCD_TMP_BASE;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410201524.49KFOK8G009723>