Date: Fri, 17 Jan 2020 11:22:55 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243406] [amdtemp] does not recognize AMD Ryzen Threadripper 3970X (Zen 2) Message-ID: <bug-243406-227-5A4nL1ocsm@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-243406-227@https.bugs.freebsd.org/bugzilla/> References: <bug-243406-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243406 --- Comment #4 from crest@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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 =3D F17H_SMN_ADDR_REG, .amdsmn_data_reg =3D F17H_SMN_DATA_REG, }, + { + .amdsmn_vendorid =3D CPU_VENDOR_AMD, + .amdsmn_deviceid =3D PCI_DEVICE_ID_AMD_17H_M30H_ROOT, + .amdsmn_addr_reg =3D F17H_SMN_ADDR_REG, + .amdsmn_data_reg =3D F17H_SMN_DATA_REG, + }, }; /* Index: sys/dev/amdtemp/amdtemp.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 }, }; /* --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243406-227-5A4nL1ocsm>