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.
This commit is contained in:
@@ -16,7 +16,7 @@ struct process_cmd_struct {
|
||||
int arg;
|
||||
};
|
||||
|
||||
static const char *version_str = "v1.19";
|
||||
static const char *version_str = "v1.20";
|
||||
|
||||
static const int supported_api_ver = 3;
|
||||
static struct isst_if_platform_info isst_platform_info;
|
||||
|
||||
@@ -283,6 +283,8 @@ int isst_set_trl(struct isst_id *id, unsigned long long trl)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define MSR_TRL_FREQ_MULTIPLIER 100
|
||||
|
||||
int isst_set_trl_from_current_tdp(struct isst_id *id, unsigned long long trl)
|
||||
{
|
||||
unsigned long long msr_trl;
|
||||
@@ -310,6 +312,10 @@ int isst_set_trl_from_current_tdp(struct isst_id *id, unsigned long long trl)
|
||||
for (i = 0; i < 8; ++i) {
|
||||
unsigned long long _trl = trl[i];
|
||||
|
||||
/* MSR is always in 100 MHz unit */
|
||||
if (isst_get_disp_freq_multiplier() == 1)
|
||||
_trl /= MSR_TRL_FREQ_MULTIPLIER;
|
||||
|
||||
msr_trl |= (_trl << (i * 8));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user