Skip to content

Commit

Permalink
amdtemp(4): Add missing Family 17h models
Browse files Browse the repository at this point in the history
Add missing model numbers M20h (Dali, Zen1), M60H (Renoir, Zen2), and
M90H (Van Gogh, Zen2).

Submitted by:	Greg V <greg AT unrelenting.technology>
  • Loading branch information
cemeyer committed Dec 12, 2020
1 parent ea6189d commit b499ab8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sys/dev/amdtemp/amdtemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,11 +811,12 @@ amdtemp_probe_ccd_sensors17h(device_t dev, uint32_t model)
uint32_t maxreg;

switch (model) {
case 0x00 ... 0x1f: /* Zen1, Zen+ */
case 0x00 ... 0x2f: /* Zen1, Zen+ */
maxreg = 4;
break;
case 0x30 ... 0x3f: /* Zen2 TR/EPYC */
case 0x70 ... 0x7f: /* Zen2 Ryzen */
case 0x30 ... 0x3f: /* Zen2 TR (Castle Peak)/EPYC (Rome) */
case 0x60 ... 0x7f: /* Zen2 Ryzen (Renoir APU, Matisse) */
case 0x90 ... 0x9f: /* Zen2 Ryzen (Van Gogh APU) */
maxreg = 8;
_Static_assert((int)NUM_CCDS >= 8, "");
break;
Expand Down

0 comments on commit b499ab8

Please sign in to comment.