Home
last modified time | relevance | path

Searched refs:ctdp_level (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/tools/power/x86/intel-speed-select/
Disst-core.c120 struct isst_pkg_ctdp_level_info *ctdp_level) in isst_get_ctdp_control() argument
123 return isst_ops->get_ctdp_control(id, config_index, ctdp_level); in isst_get_ctdp_control()
127 struct isst_pkg_ctdp_level_info *ctdp_level) in isst_get_tdp_info() argument
130 return isst_ops->get_tdp_info(id, config_index, ctdp_level); in isst_get_tdp_info()
134 struct isst_pkg_ctdp_level_info *ctdp_level) in isst_get_pwr_info() argument
137 return isst_ops->get_pwr_info(id, config_index, ctdp_level); in isst_get_pwr_info()
141 struct isst_pkg_ctdp_level_info *ctdp_level) in isst_get_coremask_info() argument
144 return isst_ops->get_coremask_info(id, config_index, ctdp_level); in isst_get_coremask_info()
174 int isst_get_get_trls(struct isst_id *id, int level, struct isst_pkg_ctdp_level_info *ctdp_level) in isst_get_get_trls() argument
177 return isst_ops->get_get_trls(id, level, ctdp_level); in isst_get_get_trls()
[all …]
Disst-core-mbox.c265 struct isst_pkg_ctdp_level_info *ctdp_level) in mbox_get_ctdp_control() argument
277 ctdp_level->fact_support = resp & BIT(0); in mbox_get_ctdp_control()
278 ctdp_level->pbf_support = !!(resp & BIT(1)); in mbox_get_ctdp_control()
279 ctdp_level->fact_enabled = !!(resp & BIT(16)); in mbox_get_ctdp_control()
280 ctdp_level->pbf_enabled = !!(resp & BIT(17)); in mbox_get_ctdp_control()
287 ctdp_level->sst_cp_support = cp_cap; in mbox_get_ctdp_control()
288 ctdp_level->sst_cp_enabled = cp_state; in mbox_get_ctdp_control()
293 id->cpu, resp, ctdp_level->fact_support, ctdp_level->pbf_support, in mbox_get_ctdp_control()
294 ctdp_level->fact_enabled, ctdp_level->pbf_enabled); in mbox_get_ctdp_control()
300 struct isst_pkg_ctdp_level_info *ctdp_level) in _get_uncore_p0_p1_info() argument
[all …]
Disst-core-tpmi.c175 struct isst_pkg_ctdp_level_info *ctdp_level) in tpmi_get_ctdp_control() argument
198 ctdp_level->fact_support = info.sst_tf_support & BIT(config_index); in tpmi_get_ctdp_control()
199 ctdp_level->pbf_support = info.sst_bf_support & BIT(config_index); in tpmi_get_ctdp_control()
201 ctdp_level->fact_support = info.sst_tf_support; in tpmi_get_ctdp_control()
202 ctdp_level->pbf_support = info.sst_bf_support; in tpmi_get_ctdp_control()
205 ctdp_level->fact_enabled = !!(info.feature_state & BIT(1)); in tpmi_get_ctdp_control()
206 ctdp_level->pbf_enabled = !!(info.feature_state & BIT(0)); in tpmi_get_ctdp_control()
216 ctdp_level->sst_cp_support = core_power_info.supported; in tpmi_get_ctdp_control()
217 ctdp_level->sst_cp_enabled = core_power_info.enable; in tpmi_get_ctdp_control()
221 id->cpu, ctdp_level->fact_support, ctdp_level->pbf_support, in tpmi_get_ctdp_control()
[all …]
Disst-display.c363 struct isst_pkg_ctdp_level_info *ctdp_level; in isst_ctdp_display_information() local
366 ctdp_level = &pkg_dev->ctdp_level[i]; in isst_ctdp_display_information()
367 if (!ctdp_level->processed) in isst_ctdp_display_information()
371 ctdp_level->level); in isst_ctdp_display_information()
380 j = CPU_COUNT_S(ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
381 ctdp_level->core_cpumask); in isst_ctdp_display_information()
388 if (ctdp_level->core_cpumask_size) { in isst_ctdp_display_information()
391 ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
392 ctdp_level->core_cpumask); in isst_ctdp_display_information()
397 ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
[all …]
Disst-daemon.c38 struct isst_pkg_ctdp_level_info ctdp_level; in process_level_change() local
77 ctdp_level.core_cpumask_size = in process_level_change()
78 alloc_cpu_set(&ctdp_level.core_cpumask); in process_level_change()
79 ret = isst_get_coremask_info(id, pkg_dev.current_level, &ctdp_level); in process_level_change()
81 free_cpu_set(ctdp_level.core_cpumask); in process_level_change()
93 isolate_cpus(id, ctdp_level.core_cpumask_size, ctdp_level.core_cpumask, in process_level_change()
100 if (ctdp_level.cpu_count) { in process_level_change()
105 if (CPU_ISSET_S(i, ctdp_level.core_cpumask_size, ctdp_level.core_cpumask)) { in process_level_change()
115 free_cpu_set(ctdp_level.core_cpumask); in process_level_change()
Disst.h178 struct isst_pkg_ctdp_level_info ctdp_level[ISST_MAX_TDP_LEVELS]; member
194 …t_ctdp_control)(struct isst_id *id, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level);
195 …(*get_tdp_info)(struct isst_id *id, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level);
196 …(*get_pwr_info)(struct isst_id *id, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level);
197 …_coremask_info)(struct isst_id *id, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level);
199 int (*get_get_trls)(struct isst_id *id, int level, struct isst_pkg_ctdp_level_info *ctdp_level);
205 …st_uncore_freq)(struct isst_id *id, int config_index, struct isst_pkg_ctdp_level_info *ctdp_level);
246 struct isst_pkg_ctdp_level_info *ctdp_level);
248 struct isst_pkg_ctdp_level_info *ctdp_level);
250 struct isst_pkg_ctdp_level_info *ctdp_level);
Disst-config.c1146 struct isst_pkg_ctdp_level_info ctdp_level; in get_isst_status() local
1148 ret = isst_get_ctdp_control(id, j, &ctdp_level); in get_isst_status()
1152 if (ctdp_level.fact_support) in get_isst_status()
1155 if (ctdp_level.pbf_support) in get_isst_status()
1315 struct isst_pkg_ctdp_level_info *ctdp_level; in clx_n_config() local
1318 ctdp_level = &clx_n_pkg_dev.ctdp_level[0]; in clx_n_config()
1319 pbf_info = &ctdp_level->pbf_info; in clx_n_config()
1320 ctdp_level->core_cpumask_size = in clx_n_config()
1321 alloc_cpu_set(&ctdp_level->core_cpumask); in clx_n_config()
1324 ctdp_level->tdp_ratio = clx_n_get_base_ratio(); in clx_n_config()
[all …]