Skip to content

Commit 356eda9

Browse files
committed
Merge remote-tracking branch 'intel-speed-select/intel-sst' into review-ilpo
Summary of change: - Fix setting of TRL MSR after SST-TF is disabled in auto mode. Use correct units.
2 parents 4dea807 + d8d4f57 commit 356eda9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tools/power/x86/intel-speed-select/isst-config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct process_cmd_struct {
1616
int arg;
1717
};
1818

19-
static const char *version_str = "v1.19";
19+
static const char *version_str = "v1.20";
2020

2121
static const int supported_api_ver = 3;
2222
static struct isst_if_platform_info isst_platform_info;

tools/power/x86/intel-speed-select/isst-core.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ int isst_set_trl(struct isst_id *id, unsigned long long trl)
283283
return 0;
284284
}
285285

286+
#define MSR_TRL_FREQ_MULTIPLIER 100
287+
286288
int isst_set_trl_from_current_tdp(struct isst_id *id, unsigned long long trl)
287289
{
288290
unsigned long long msr_trl;
@@ -310,6 +312,10 @@ int isst_set_trl_from_current_tdp(struct isst_id *id, unsigned long long trl)
310312
for (i = 0; i < 8; ++i) {
311313
unsigned long long _trl = trl[i];
312314

315+
/* MSR is always in 100 MHz unit */
316+
if (isst_get_disp_freq_multiplier() == 1)
317+
_trl /= MSR_TRL_FREQ_MULTIPLIER;
318+
313319
msr_trl |= (_trl << (i * 8));
314320
}
315321
}

0 commit comments

Comments
 (0)