Skip to content

Commit

Permalink
[Intel][Goldmont & Denverton] No more access to MSR 0x64c (#477)
Browse files Browse the repository at this point in the history
* MSR_TURBO_ACTIVATION_RATIO access is however granted to Tremont
  • Loading branch information
cyring committed Feb 21, 2024
1 parent 0f22f84 commit 5d1be50
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
15 changes: 9 additions & 6 deletions x86_64/corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -12834,20 +12834,23 @@ static void PerCore_Atom_Goldmont_Query(void *arg)

static void PerCore_Goldmont_Query(void *arg)
{
CORE_RO *Core = (CORE_RO *) arg;

PerCore_Atom_Goldmont_Query(arg);

if (PUBLIC(RO(Proc))->Features.Power.EAX.TurboIDA) {
Intel_Turbo_Activation_Ratio(Core);
}
}

static void PerCore_Geminilake_Query(void *arg)
{
PerCore_Atom_Goldmont_Query(arg);
}

static void PerCore_Tremont_Query(void *arg)
{
CORE_RO *Core = (CORE_RO *) arg;

PerCore_Atom_Goldmont_Query(arg);

Intel_Turbo_Activation_Ratio(Core);
}

static void PerCore_Nehalem_Same_Query(void *arg)
{
CORE_RO *Core = (CORE_RO *) arg;
Expand Down
3 changes: 2 additions & 1 deletion x86_64/corefreqk.h
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,7 @@ static void Query_Airmont(unsigned int cpu) ;
static void PerCore_Airmont_Query(void *arg) ;

static void PerCore_Geminilake_Query(void *arg) ;
static void PerCore_Tremont_Query(void *arg) ;

static void Query_Nehalem(unsigned int cpu) ;
static void PerCore_Nehalem_Query(void *arg) ;
Expand Down Expand Up @@ -10704,7 +10705,7 @@ static ARCH Arch[ARCHITECTURES] = {
[Tremont_Jacobsville] = { /* 68*/
.Signature = _Tremont_Jacobsville,
.Query = Query_Goldmont,
.Update = PerCore_Goldmont_Query,
.Update = PerCore_Tremont_Query,
.Start = Start_Goldmont,
.Stop = Stop_Goldmont,
.Exit = NULL,
Expand Down

0 comments on commit 5d1be50

Please sign in to comment.