FreeBSD Bugzilla – Attachment 249919 Details for
Bug 278311
amdtemp: Does not recognize AMD Threadripper 7960X
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Revised patch to also add support in amdsmn(4)
amd-f19m10.patch (text/plain), 2.56 KB, created by
Xin LI
on 2024-04-12 01:51:22 UTC
(
hide
)
Description:
Revised patch to also add support in amdsmn(4)
Filename:
MIME Type:
Creator:
Xin LI
Created:
2024-04-12 01:51:22 UTC
Size:
2.56 KB
patch
obsolete
>diff --git a/sys/dev/amdsmn/amdsmn.c b/sys/dev/amdsmn/amdsmn.c >index a676bbb6b0f2..5b7f5c236b90 100644 >--- a/sys/dev/amdsmn/amdsmn.c >+++ b/sys/dev/amdsmn/amdsmn.c >@@ -58,6 +58,7 @@ > #define PCI_DEVICE_ID_AMD_17H_M10H_ROOT 0x15d0 > #define PCI_DEVICE_ID_AMD_17H_M30H_ROOT 0x1480 /* Also M70H, F19H M00H/M20H */ > #define PCI_DEVICE_ID_AMD_17H_M60H_ROOT 0x1630 >+#define PCI_DEVICE_ID_AMD_19H_M10H_ROOT 0x14b0 > #define PCI_DEVICE_ID_AMD_19H_M60H_ROOT 0x14d8 > > struct pciid; >@@ -102,6 +103,12 @@ static const struct pciid { > .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_19H_M10H_ROOT, >+ .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_19H_M60H_ROOT, >diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c >index 865804bdc96e..163bd6d0e973 100644 >--- a/sys/dev/amdtemp/amdtemp.c >+++ b/sys/dev/amdtemp/amdtemp.c >@@ -69,7 +69,11 @@ typedef enum { > CCD6, > CCD7, > CCD8, >- CCD_MAX = CCD8, >+ CCD9, >+ CCD10, >+ CCD11, >+ CCD12, >+ CCD_MAX = CCD12, > NUM_CCDS = CCD_MAX - CCD_BASE + 1, > } amdsensor_t; > >@@ -109,6 +113,7 @@ struct amdtemp_softc { > #define DEVICEID_AMD_HOSTB17H_M10H_ROOT 0x15d0 > #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 0x14b0 > #define DEVICEID_AMD_HOSTB19H_M60H_ROOT 0x14d8 > > static const struct amdtemp_product { >@@ -134,6 +139,7 @@ static const struct amdtemp_product { > { VENDORID_AMD, DEVICEID_AMD_HOSTB17H_M10H_ROOT, false }, > { 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_M60H_ROOT, false }, > }; > >@@ -180,6 +186,7 @@ static const struct amdtemp_product { > #define AMDTEMP_17H_CCD_TMP_BASE 0x59954 > #define AMDTEMP_17H_CCD_TMP_VALID (1u << 11) > >+#define AMDTEMP_ZEN4_10H_CCD_TMP_BASE 0x59b00 > #define AMDTEMP_ZEN4_CCD_TMP_BASE 0x59b08 > > /* >@@ -860,6 +867,11 @@ amdtemp_probe_ccd_sensors19h(device_t dev, uint32_t model) > maxreg = 8; > _Static_assert((int)NUM_CCDS >= 8, ""); > break; >+ case 0x10 ... 0x1f: >+ sc->sc_temp_base = AMDTEMP_ZEN4_10H_CCD_TMP_BASE; >+ maxreg = 12; >+ _Static_assert((int)NUM_CCDS >= 12, ""); >+ break; > case 0x60 ... 0x6f: /* Zen4 Ryzen "Raphael" */ > sc->sc_temp_base = AMDTEMP_ZEN4_CCD_TMP_BASE; > maxreg = 8;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 278311
:
249915
|
249916
|
249918
|
249919
|
249938
|
249959