[Bug 243406] [amdtemp] does not recognize AMD Ryzen Threadripper 3970X (Zen 2)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jan 17 11:22:56 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243406
--- Comment #4 from crest at rlwinm.de ---
The driver support for Zen 2 hasn't been MFCed from 13-CURRENT. This is the
patch I use to add support for the Ryzen 3600X in home server to amdtemp:
Index: sys/dev/amdsmn/amdsmn.c
===================================================================
--- sys/dev/amdsmn/amdsmn.c (revision 356412)
+++ sys/dev/amdsmn/amdsmn.c (working copy)
@@ -59,6 +59,7 @@
#define PCI_DEVICE_ID_AMD_15H_M60H_ROOT 0x1576
#define PCI_DEVICE_ID_AMD_17H_ROOT 0x1450
#define PCI_DEVICE_ID_AMD_17H_M10H_ROOT 0x15d0
+#define PCI_DEVICE_ID_AMD_17H_M30H_ROOT 0x1480
struct pciid;
struct amdsmn_softc {
@@ -90,6 +91,12 @@
.amdsmn_addr_reg = F17H_SMN_ADDR_REG,
.amdsmn_data_reg = F17H_SMN_DATA_REG,
},
+ {
+ .amdsmn_vendorid = CPU_VENDOR_AMD,
+ .amdsmn_deviceid = PCI_DEVICE_ID_AMD_17H_M30H_ROOT,
+ .amdsmn_addr_reg = F17H_SMN_ADDR_REG,
+ .amdsmn_data_reg = F17H_SMN_DATA_REG,
+ },
};
/*
Index: sys/dev/amdtemp/amdtemp.c
===================================================================
--- sys/dev/amdtemp/amdtemp.c (revision 356412)
+++ sys/dev/amdtemp/amdtemp.c (working copy)
@@ -96,6 +96,7 @@
#define DEVICEID_AMD_MISC16_M30H 0x1583
#define DEVICEID_AMD_HOSTB17H_ROOT 0x1450
#define DEVICEID_AMD_HOSTB17H_M10H_ROOT 0x15d0
+#define DEVICEID_AMD_HOSTB17H_M30H_ROOT 0x1480
static const struct amdtemp_product {
uint16_t amdtemp_vendorid;
@@ -118,6 +119,7 @@
{ VENDORID_AMD, DEVICEID_AMD_MISC16_M30H, true },
{ VENDORID_AMD, DEVICEID_AMD_HOSTB17H_ROOT, false },
{ VENDORID_AMD, DEVICEID_AMD_HOSTB17H_M10H_ROOT, false },
+ { VENDORID_AMD, DEVICEID_AMD_HOSTB17H_M30H_ROOT, false },
};
/*
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list