Skip to content

Commit

Permalink
[AMD][Family 1Ah] Updated the PStateDef MSR
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Oct 27, 2024
1 parent a1189f5 commit b23b4d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions x86_64/amd_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,15 @@ typedef union
struct
{
unsigned long long /* MSR 0xC001_006[4...B] P-state [7:0] */
CpuFid : 11-0, /* Undocumented FID */
CpuDfsId : 14-11, /* Undocumented DID */
CpuFid : 12-0, /* CoreCOF = PStateDef[CpuFid[11:0]] * 5MHz */
Reserved1 : 14-12,
CpuVid : 22-14, /* VID verified w/ 9950X */
IddValue : 30-22,
IddDiv : 32-30,
CpuVid8 : 33-32,
Reserved : 63-33,
Reserved2 : 63-33,
PstateEn : 64-63;
} Family_1Ah; /* CPUID signature BF_44h */
} Family_1Ah; /* CPUID signature BF_44h, BF_02h */
} PSTATEDEF;

typedef union
Expand Down
2 changes: 1 addition & 1 deletion x86_64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -8150,7 +8150,7 @@ inline COF_ST AMD_Zen_CoreCOF(PSTATEDEF PStateDef)
- ((COF.Q * PStateDef.Family_17h.CpuDfsId) >> 1))) >> 2;
COF.R = (unsigned short) remainder;
} else switch (PUBLIC(RO(Proc))->Features.Std.EAX.ExtFamily) {
case 0xB: /* Zen5: Granite Ridge & Strix Point */
case 0xB: /* Zen5: Granite Ridge, Strix Point, Turin */
COF.Q = (PStateDef.Family_1Ah.CpuFid >> 1) / 10;
remainder = (PRECISION * PStateDef.Family_1Ah.CpuFid) >> 1;
remainder = remainder - (UNIT_KHz(1) * COF.Q);
Expand Down

0 comments on commit b23b4d4

Please sign in to comment.