Skip to content

Commit

Permalink
Read table support for Strix Point
Browse files Browse the repository at this point in the history
  • Loading branch information
mzdluo123 authored and FlyGoat committed Sep 5, 2024
1 parent ad7f620 commit fceacb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ static int request_table_ver_and_size(ryzen_access ry)
case FAM_REMBRANDT:
case FAM_PHOENIX:
case FAM_HAWKPOINT:
case FAM_STRIXPOINT:
get_table_ver_msg = 0x6;
break;
default:
Expand Down Expand Up @@ -208,6 +209,7 @@ static int request_table_addr(ryzen_access ry)
case FAM_REMBRANDT:
case FAM_PHOENIX:
case FAM_HAWKPOINT:
case FAM_STRIXPOINT:
get_table_addr_msg = 0x66;
break;
default:
Expand All @@ -222,6 +224,7 @@ static int request_table_addr(ryzen_access ry)
case FAM_REMBRANDT:
case FAM_PHOENIX:
case FAM_HAWKPOINT:
case FAM_STRIXPOINT:
ry->table_addr = (uint64_t) args.arg1 << 32 | args.arg0;
break;
default:
Expand Down Expand Up @@ -257,6 +260,7 @@ static int request_transfer_table(ryzen_access ry)
case FAM_REMBRANDT:
case FAM_PHOENIX:
case FAM_HAWKPOINT:
case FAM_STRIXPOINT:
transfer_table_msg = 0x65;
break;
default:
Expand Down
1 change: 1 addition & 0 deletions lib/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ static enum ryzen_family cpuid_load_family()
case 0x1A: /* Zen5, Zen6 */
switch (model) {
case 32:
case 36:
return FAM_STRIXPOINT;
default:
printf("Fam%xh: unsupported model %d\n", family, model);
Expand Down
2 changes: 1 addition & 1 deletion lib/nb_smu_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,4 @@ smu_t get_smu(nb_t nb, int smu_type) {

void free_smu(smu_t smu) {
free((void *)smu);
}
}

0 comments on commit fceacb4

Please sign in to comment.