Skip to content

Commit

Permalink
amdtemp: add support for AMD Family 1Ah Models 40h-4Fh
Browse files Browse the repository at this point in the history
Tested with 9900X CPU.
  • Loading branch information
yuripv committed Dec 26, 2024
1 parent 3e8f4a3 commit a9ce213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions sys/dev/amdsmn/amdsmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ amdsmn_probe(device_t dev)
case 0x15:
case 0x17:
case 0x19:
case 0x1a:
break;
default:
return (ENXIO);
Expand Down
4 changes: 3 additions & 1 deletion sys/dev/amdtemp/amdtemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ amdtemp_probe(device_t dev)
case 0x16:
case 0x17:
case 0x19:
case 0x1a:
break;
default:
return (ENXIO);
Expand Down Expand Up @@ -476,6 +477,7 @@ amdtemp_attach(device_t dev)
break;
case 0x17:
case 0x19:
case 0x1a:
sc->sc_ntemps = 1;
sc->sc_gettemp = amdtemp_gettemp17h;
needsmn = true;
Expand Down Expand Up @@ -537,7 +539,7 @@ amdtemp_attach(device_t dev)

if (family == 0x17)
amdtemp_probe_ccd_sensors17h(dev, model);
else if (family == 0x19)
else if (family == 0x19 || family == 0x1a)
amdtemp_probe_ccd_sensors19h(dev, model);
else if (sc->sc_ntemps > 1) {
SYSCTL_ADD_PROC(sysctlctx,
Expand Down

0 comments on commit a9ce213

Please sign in to comment.