Lines Matching +full:assoc +full:- +full:select

1 // SPDX-License-Identifier: GPL-2.0
3 * Intel dynamic_speed_select -- Enumerate and control features
26 str_len - curr_index, ","); in printcpulist()
29 index = snprintf(&str[curr_index], str_len - curr_index, "%d", in printcpulist()
63 for (i = size - 1; i >= 0; --i) { in printcpumask()
64 index = snprintf(&str[curr_index], str_len - curr_index, "%08x", in printcpumask()
68 strncat(&str[curr_index], ",", str_len - curr_index); in printcpumask()
89 for (i = 0; i < level - 1; ++i) in format_and_print_txt()
90 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print_txt()
125 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print()
138 for (i = last_level - 1; i >= level; --i) { in format_and_print()
141 for (j = i; j > 0; --j) in format_and_print()
143 sizeof(delimiters) - k, in format_and_print()
150 if (abs(last_level - level) < 3) in format_and_print()
166 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
172 snprintf(header, sizeof(header), "package-%d", in print_package_info()
175 snprintf(header, sizeof(header), "die-%d", get_physical_die_id(cpu)); in print_package_info()
177 snprintf(header, sizeof(header), "cpu-%d", cpu); in print_package_info()
190 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
193 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
195 pbf_info->p1_high * DISP_FREQ_MULTIPLIER); in _isst_pbf_display_information()
198 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
199 printcpumask(sizeof(value), value, pbf_info->core_cpumask_size, in _isst_pbf_display_information()
200 pbf_info->core_cpumask); in _isst_pbf_display_information()
203 snprintf(header, sizeof(header), "high-priority-cpu-list"); in _isst_pbf_display_information()
205 pbf_info->core_cpumask_size, in _isst_pbf_display_information()
206 pbf_info->core_cpumask); in _isst_pbf_display_information()
209 snprintf(header, sizeof(header), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
211 pbf_info->p1_low * DISP_FREQ_MULTIPLIER); in _isst_pbf_display_information()
217 snprintf(header, sizeof(header), "tjunction-temperature(C)"); in _isst_pbf_display_information()
218 snprintf(value, sizeof(value), "%d", pbf_info->t_prochot); in _isst_pbf_display_information()
221 snprintf(header, sizeof(header), "thermal-design-power(W)"); in _isst_pbf_display_information()
222 snprintf(value, sizeof(value), "%d", pbf_info->tdp); in _isst_pbf_display_information()
231 struct isst_fact_bucket_info *bucket_info = fact_info->bucket_info; in _isst_fact_display_information()
250 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
259 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
262 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
269 "high-priority-max-frequency(MHz)"); in _isst_fact_display_information()
277 "high-priority-max-avx2-frequency(MHz)"); in _isst_fact_display_information()
285 "high-priority-max-avx512-frequency(MHz)"); in _isst_fact_display_information()
293 "speed-select-turbo-freq-clip-frequencies"); in _isst_fact_display_information()
295 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
297 fact_info->lp_clipping_ratio_license_sse * in _isst_fact_display_information()
301 "low-priority-max-avx2-frequency(MHz)"); in _isst_fact_display_information()
303 fact_info->lp_clipping_ratio_license_avx2 * in _isst_fact_display_information()
307 "low-priority-max-avx512-frequency(MHz)"); in _isst_fact_display_information()
309 fact_info->lp_clipping_ratio_license_avx512 * in _isst_fact_display_information()
322 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in isst_ctdp_display_core_info()
327 snprintf(header, sizeof(header), "package-%d", in isst_ctdp_display_core_info()
330 snprintf(header, sizeof(header), "die-%d", in isst_ctdp_display_core_info()
333 snprintf(header, sizeof(header), "cpu-%d", cpu); in isst_ctdp_display_core_info()
356 if (pkg_dev->processed) in isst_ctdp_display_information()
359 for (i = 0; i <= pkg_dev->levels; ++i) { in isst_ctdp_display_information()
363 ctdp_level = &pkg_dev->ctdp_level[i]; in isst_ctdp_display_information()
364 if (!ctdp_level->processed) in isst_ctdp_display_information()
367 snprintf(header, sizeof(header), "perf-profile-level-%d", in isst_ctdp_display_information()
368 ctdp_level->level); in isst_ctdp_display_information()
371 snprintf(header, sizeof(header), "cpu-count"); in isst_ctdp_display_information()
377 j = CPU_COUNT_S(ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
378 ctdp_level->core_cpumask); in isst_ctdp_display_information()
380 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
385 if (ctdp_level->core_cpumask_size) { in isst_ctdp_display_information()
386 snprintf(header, sizeof(header), "enable-cpu-mask"); in isst_ctdp_display_information()
388 ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
389 ctdp_level->core_cpumask); in isst_ctdp_display_information()
392 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
394 ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
395 ctdp_level->core_cpumask); in isst_ctdp_display_information()
399 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
400 snprintf(value, sizeof(value), "%d", ctdp_level->tdp_ratio); in isst_ctdp_display_information()
403 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
404 if (!ctdp_level->sse_p1) in isst_ctdp_display_information()
405 ctdp_level->sse_p1 = ctdp_level->tdp_ratio; in isst_ctdp_display_information()
407 ctdp_level->sse_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
410 if (ctdp_level->avx2_p1) { in isst_ctdp_display_information()
411 snprintf(header, sizeof(header), "base-frequency-avx2(MHz)"); in isst_ctdp_display_information()
413 ctdp_level->avx2_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
417 if (ctdp_level->avx512_p1) { in isst_ctdp_display_information()
418 snprintf(header, sizeof(header), "base-frequency-avx512(MHz)"); in isst_ctdp_display_information()
420 ctdp_level->avx512_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
424 if (ctdp_level->uncore_p1) { in isst_ctdp_display_information()
425 snprintf(header, sizeof(header), "uncore-frequency-min(MHz)"); in isst_ctdp_display_information()
427 ctdp_level->uncore_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
431 if (ctdp_level->uncore_p0) { in isst_ctdp_display_information()
432 snprintf(header, sizeof(header), "uncore-frequency-max(MHz)"); in isst_ctdp_display_information()
434 ctdp_level->uncore_p0 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
438 if (ctdp_level->mem_freq) { in isst_ctdp_display_information()
439 snprintf(header, sizeof(header), "mem-frequency(MHz)"); in isst_ctdp_display_information()
441 ctdp_level->mem_freq * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
446 "speed-select-turbo-freq"); in isst_ctdp_display_information()
447 if (ctdp_level->fact_support) { in isst_ctdp_display_information()
448 if (ctdp_level->fact_enabled) in isst_ctdp_display_information()
457 "speed-select-base-freq"); in isst_ctdp_display_information()
458 if (ctdp_level->pbf_support) { in isst_ctdp_display_information()
459 if (ctdp_level->pbf_enabled) in isst_ctdp_display_information()
468 "speed-select-core-power"); in isst_ctdp_display_information()
469 if (ctdp_level->sst_cp_support) { in isst_ctdp_display_information()
470 if (ctdp_level->sst_cp_enabled) in isst_ctdp_display_information()
479 if (ctdp_level->pbf_support) in isst_ctdp_display_information()
482 &ctdp_level->pbf_info, in isst_ctdp_display_information()
487 if (ctdp_level->pkg_tdp) { in isst_ctdp_display_information()
488 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
489 snprintf(value, sizeof(value), "%d", ctdp_level->pkg_tdp); in isst_ctdp_display_information()
493 if (ctdp_level->t_proc_hot) { in isst_ctdp_display_information()
494 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
495 snprintf(value, sizeof(value), "%d", ctdp_level->t_proc_hot); in isst_ctdp_display_information()
499 snprintf(header, sizeof(header), "turbo-ratio-limits-sse"); in isst_ctdp_display_information()
502 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
505 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
506 snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); in isst_ctdp_display_information()
510 "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
512 ctdp_level->trl_sse_active_cores[j] * in isst_ctdp_display_information()
517 if (ctdp_level->trl_avx_active_cores[0]) { in isst_ctdp_display_information()
518 snprintf(header, sizeof(header), "turbo-ratio-limits-avx2"); in isst_ctdp_display_information()
521 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
524 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
525 snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); in isst_ctdp_display_information()
528 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
529 … snprintf(value, sizeof(value), "%d", ctdp_level->trl_avx_active_cores[j] * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
534 if (ctdp_level->trl_avx_512_active_cores[0]) { in isst_ctdp_display_information()
535 snprintf(header, sizeof(header), "turbo-ratio-limits-avx512"); in isst_ctdp_display_information()
538 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
541 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
542 snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); in isst_ctdp_display_information()
545 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
546 …snprintf(value, sizeof(value), "%d", ctdp_level->trl_avx_512_active_cores[j] * DISP_FREQ_MULTIPLIE… in isst_ctdp_display_information()
551 if (ctdp_level->pbf_support) in isst_ctdp_display_information()
553 &ctdp_level->pbf_info, in isst_ctdp_display_information()
555 if (ctdp_level->fact_support) in isst_ctdp_display_information()
557 &ctdp_level->fact_info, in isst_ctdp_display_information()
609 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
617 snprintf(value, sizeof(value), "%d", clos_config->epp); in isst_clos_display_information()
620 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
621 snprintf(value, sizeof(value), "%d", clos_config->clos_prop_prio); in isst_clos_display_information()
624 snprintf(header, sizeof(header), "clos-min"); in isst_clos_display_information()
625 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_min * DISP_FREQ_MULTIPLIER); in isst_clos_display_information()
628 snprintf(header, sizeof(header), "clos-max"); in isst_clos_display_information()
629 if (clos_config->clos_max == 0xff) in isst_clos_display_information()
632 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_max * DISP_FREQ_MULTIPLIER); in isst_clos_display_information()
635 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
636 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_desired * DISP_FREQ_MULTIPLIER); in isst_clos_display_information()
652 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
655 snprintf(header, sizeof(header), "support-status"); in isst_clos_display_clos_information()
662 snprintf(header, sizeof(header), "enable-status"); in isst_clos_display_clos_information()
669 snprintf(header, sizeof(header), "clos-enable-status"); in isst_clos_display_clos_information()
676 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
694 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()