Lines Matching +full:clip +full:- +full:x +full:- +full:low

1 // SPDX-License-Identifier: GPL-2.0
3 * Intel dynamic_speed_select -- Enumerate and control features
26 str_len - curr_index, ","); in printcpulist()
31 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist()
67 for (i = size - 1; i >= 0; --i) { in printcpumask()
68 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask()
74 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask()
97 for (i = 0; i < level - 1; ++i) in format_and_print_txt()
98 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print_txt()
133 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print()
146 for (i = last_level - 1; i >= level; --i) { in format_and_print()
149 for (j = i; j > 0; --j) in format_and_print()
151 sizeof(delimiters) - k, in format_and_print()
158 if (abs(last_level - level) < 3) in format_and_print()
176 if (id->cpu < 0) in print_package_info()
178 "package-%d:die-%d:powerdomain-%d:cpu-None", in print_package_info()
179 id->pkg, id->die, id->punit); in print_package_info()
182 "package-%d:die-%d:powerdomain-%d:cpu-%d", in print_package_info()
183 id->pkg, id->die, id->punit, id->cpu); in print_package_info()
185 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
186 id->pkg, id->die, id->cpu); in print_package_info()
191 snprintf(header, sizeof(header), "package-%d", id->pkg); in print_package_info()
193 snprintf(header, sizeof(header), "die-%d", id->die); in print_package_info()
196 snprintf(header, sizeof(header), "powerdomain-%d", id->punit); in print_package_info()
200 if (id->cpu < 0) in print_package_info()
201 snprintf(header, sizeof(header), "cpu-None"); in print_package_info()
203 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in print_package_info()
217 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
220 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
222 pbf_info->p1_high * isst_get_disp_freq_multiplier()); in _isst_pbf_display_information()
225 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
226 printcpumask(sizeof(value), value, pbf_info->core_cpumask_size, in _isst_pbf_display_information()
227 pbf_info->core_cpumask); in _isst_pbf_display_information()
230 snprintf(header, sizeof(header), "high-priority-cpu-list"); in _isst_pbf_display_information()
232 pbf_info->core_cpumask_size, in _isst_pbf_display_information()
233 pbf_info->core_cpumask); in _isst_pbf_display_information()
236 snprintf(header, sizeof(header), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
238 pbf_info->p1_low * isst_get_disp_freq_multiplier()); in _isst_pbf_display_information()
244 snprintf(header, sizeof(header), "tjunction-temperature(C)"); in _isst_pbf_display_information()
245 snprintf(value, sizeof(value), "%d", pbf_info->t_prochot); in _isst_pbf_display_information()
248 snprintf(header, sizeof(header), "thermal-design-power(W)"); in _isst_pbf_display_information()
249 snprintf(value, sizeof(value), "%d", pbf_info->tdp); in _isst_pbf_display_information()
258 struct isst_fact_bucket_info *bucket_info = fact_info->bucket_info; in _isst_fact_display_information()
269 if (!bucket_info[j].hp_cores && id->cpu >= 0) in _isst_fact_display_information()
279 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
290 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
293 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
302 "high-priority-max-frequency(MHz)"); in _isst_fact_display_information()
305 "high-priority-max-%s-frequency(MHz)", isst_get_trl_level_name(i)); in _isst_fact_display_information()
312 "speed-select-turbo-freq-clip-frequencies"); in _isst_fact_display_information()
316 if (!fact_info->lp_ratios[j]) in _isst_fact_display_information()
321 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
323 snprintf(header, sizeof(header), "low-priority-max-%s-frequency(MHz)", in _isst_fact_display_information()
326 fact_info->lp_ratios[j] * isst_get_disp_freq_multiplier()); in _isst_fact_display_information()
359 if (pkg_dev->processed) in isst_ctdp_display_information()
362 for (i = 0; i <= pkg_dev->levels; ++i) { in isst_ctdp_display_information()
366 ctdp_level = &pkg_dev->ctdp_level[i]; in isst_ctdp_display_information()
367 if (!ctdp_level->processed) in isst_ctdp_display_information()
370 snprintf(header, sizeof(header), "perf-profile-level-%d", in isst_ctdp_display_information()
371 ctdp_level->level); in isst_ctdp_display_information()
374 if (id->cpu >= 0) { in isst_ctdp_display_information()
375 snprintf(header, sizeof(header), "cpu-count"); 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()
383 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
388 if (ctdp_level->core_cpumask_size) { in isst_ctdp_display_information()
389 snprintf(header, sizeof(header), "enable-cpu-mask"); 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()
395 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
397 ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
398 ctdp_level->core_cpumask); in isst_ctdp_display_information()
403 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
404 snprintf(value, sizeof(value), "%d", ctdp_level->tdp_ratio); in isst_ctdp_display_information()
407 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
408 if (!ctdp_level->sse_p1) in isst_ctdp_display_information()
409 ctdp_level->sse_p1 = ctdp_level->tdp_ratio; in isst_ctdp_display_information()
411 ctdp_level->sse_p1 * isst_get_disp_freq_multiplier()); in isst_ctdp_display_information()
414 if (ctdp_level->avx2_p1) { in isst_ctdp_display_information()
415 snprintf(header, sizeof(header), "base-frequency-avx2(MHz)"); in isst_ctdp_display_information()
417 ctdp_level->avx2_p1 * isst_get_disp_freq_multiplier()); in isst_ctdp_display_information()
421 if (ctdp_level->avx512_p1) { in isst_ctdp_display_information()
422 snprintf(header, sizeof(header), "base-frequency-avx512(MHz)"); in isst_ctdp_display_information()
424 ctdp_level->avx512_p1 * isst_get_disp_freq_multiplier()); in isst_ctdp_display_information()
428 if (ctdp_level->uncore_pm) { in isst_ctdp_display_information()
429 snprintf(header, sizeof(header), "uncore-frequency-min(MHz)"); in isst_ctdp_display_information()
431 ctdp_level->uncore_pm * isst_get_disp_freq_multiplier()); in isst_ctdp_display_information()
435 if (ctdp_level->uncore_p0) { in isst_ctdp_display_information()
436 snprintf(header, sizeof(header), "uncore-frequency-max(MHz)"); in isst_ctdp_display_information()
438 ctdp_level->uncore_p0 * isst_get_disp_freq_multiplier()); in isst_ctdp_display_information()
442 if (ctdp_level->amx_p1) { in isst_ctdp_display_information()
443 snprintf(header, sizeof(header), "base-frequency-amx(MHz)"); in isst_ctdp_display_information()
445 ctdp_level->amx_p1 * isst_get_disp_freq_multiplier()); in isst_ctdp_display_information()
449 if (ctdp_level->uncore_p1) { in isst_ctdp_display_information()
450 snprintf(header, sizeof(header), "uncore-frequency-base(MHz)"); in isst_ctdp_display_information()
452 ctdp_level->uncore_p1 * isst_get_disp_freq_multiplier()); in isst_ctdp_display_information()
456 if (ctdp_level->mem_freq) { in isst_ctdp_display_information()
457 snprintf(header, sizeof(header), "max-mem-frequency(MHz)"); in isst_ctdp_display_information()
459 ctdp_level->mem_freq); in isst_ctdp_display_information()
466 ctdp_level->cooling_type); in isst_ctdp_display_information()
471 "speed-select-turbo-freq"); in isst_ctdp_display_information()
472 if (ctdp_level->fact_support) { in isst_ctdp_display_information()
473 if (ctdp_level->fact_enabled) in isst_ctdp_display_information()
482 "speed-select-base-freq"); in isst_ctdp_display_information()
483 if (ctdp_level->pbf_support) { in isst_ctdp_display_information()
484 if (ctdp_level->pbf_enabled) in isst_ctdp_display_information()
493 "speed-select-core-power"); in isst_ctdp_display_information()
494 if (ctdp_level->sst_cp_support) { in isst_ctdp_display_information()
495 if (ctdp_level->sst_cp_enabled) in isst_ctdp_display_information()
504 if (ctdp_level->pbf_support) in isst_ctdp_display_information()
507 &ctdp_level->pbf_info, in isst_ctdp_display_information()
512 if (ctdp_level->pkg_tdp) { in isst_ctdp_display_information()
513 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
514 snprintf(value, sizeof(value), "%d", ctdp_level->pkg_tdp); in isst_ctdp_display_information()
518 if (ctdp_level->t_proc_hot) { in isst_ctdp_display_information()
519 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
520 snprintf(value, sizeof(value), "%d", ctdp_level->t_proc_hot); in isst_ctdp_display_information()
525 if (!ctdp_level->trl_ratios[k][0]) in isst_ctdp_display_information()
528 snprintf(header, sizeof(header), "turbo-ratio-limits-%s", isst_get_trl_level_name(k)); in isst_ctdp_display_information()
532 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
535 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
537 snprintf(value, sizeof(value), "%llu", (ctdp_level->trl_cores >> (j * 8)) & 0xff); in isst_ctdp_display_information()
540 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
541 …snprintf(value, sizeof(value), "%d", ctdp_level->trl_ratios[k][j] * isst_get_disp_freq_multiplier(… in isst_ctdp_display_information()
546 if (ctdp_level->pbf_support) in isst_ctdp_display_information()
548 &ctdp_level->pbf_info, in isst_ctdp_display_information()
550 if (ctdp_level->fact_support) in isst_ctdp_display_information()
552 &ctdp_level->fact_info, in isst_ctdp_display_information()
604 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
612 snprintf(value, sizeof(value), "%d", clos_config->epp); in isst_clos_display_information()
615 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
616 snprintf(value, sizeof(value), "%d", clos_config->clos_prop_prio); in isst_clos_display_information()
619 snprintf(header, sizeof(header), "clos-min"); in isst_clos_display_information()
620 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_min * isst_get_disp_freq_multiplier()); in isst_clos_display_information()
623 snprintf(header, sizeof(header), "clos-max"); in isst_clos_display_information()
624 if ((clos_config->clos_max * isst_get_disp_freq_multiplier()) == 25500) in isst_clos_display_information()
627 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_max * isst_get_disp_freq_multiplier()); in isst_clos_display_information()
630 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
631 …snprintf(value, sizeof(value), "%d MHz", clos_config->clos_desired * isst_get_disp_freq_multiplier… in isst_clos_display_information()
647 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
650 snprintf(header, sizeof(header), "support-status"); in isst_clos_display_clos_information()
657 snprintf(header, sizeof(header), "enable-status"); in isst_clos_display_clos_information()
664 snprintf(header, sizeof(header), "clos-enable-status"); in isst_clos_display_clos_information()
671 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
689 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()
769 snprintf(header, sizeof(header), "get-trl"); in isst_trl_display_information()
773 snprintf(value, sizeof(value), "0x%llx", trl); in isst_trl_display_information()