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()
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()
174 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
175 id->pkg, id->die, id->cpu); in print_package_info()
179 snprintf(header, sizeof(header), "package-%d", id->pkg); in print_package_info()
181 snprintf(header, sizeof(header), "die-%d", id->die); in print_package_info()
183 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in print_package_info()
196 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
199 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
201 pbf_info->p1_high * DISP_FREQ_MULTIPLIER); in _isst_pbf_display_information()
204 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
205 printcpumask(sizeof(value), value, 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), "high-priority-cpu-list"); in _isst_pbf_display_information()
211 pbf_info->core_cpumask_size, in _isst_pbf_display_information()
212 pbf_info->core_cpumask); in _isst_pbf_display_information()
215 snprintf(header, sizeof(header), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
217 pbf_info->p1_low * DISP_FREQ_MULTIPLIER); in _isst_pbf_display_information()
223 snprintf(header, sizeof(header), "tjunction-temperature(C)"); in _isst_pbf_display_information()
224 snprintf(value, sizeof(value), "%d", pbf_info->t_prochot); in _isst_pbf_display_information()
227 snprintf(header, sizeof(header), "thermal-design-power(W)"); in _isst_pbf_display_information()
228 snprintf(value, sizeof(value), "%d", pbf_info->tdp); in _isst_pbf_display_information()
237 struct isst_fact_bucket_info *bucket_info = fact_info->bucket_info; in _isst_fact_display_information()
256 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
265 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
268 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
275 "high-priority-max-frequency(MHz)"); in _isst_fact_display_information()
283 "high-priority-max-avx2-frequency(MHz)"); in _isst_fact_display_information()
291 "high-priority-max-avx512-frequency(MHz)"); in _isst_fact_display_information()
299 "speed-select-turbo-freq-clip-frequencies"); in _isst_fact_display_information()
301 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
303 fact_info->lp_clipping_ratio_license_sse * in _isst_fact_display_information()
307 "low-priority-max-avx2-frequency(MHz)"); in _isst_fact_display_information()
309 fact_info->lp_clipping_ratio_license_avx2 * in _isst_fact_display_information()
313 "low-priority-max-avx512-frequency(MHz)"); in _isst_fact_display_information()
315 fact_info->lp_clipping_ratio_license_avx512 * in _isst_fact_display_information()
328 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in isst_ctdp_display_core_info()
329 id->pkg, id->die, id->cpu); in isst_ctdp_display_core_info()
332 snprintf(header, sizeof(header), "package-%d", id->pkg); in isst_ctdp_display_core_info()
334 snprintf(header, sizeof(header), "die-%d", id->die); in isst_ctdp_display_core_info()
336 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in isst_ctdp_display_core_info()
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 snprintf(header, sizeof(header), "cpu-count"); in isst_ctdp_display_information()
379 j = CPU_COUNT_S(ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
380 ctdp_level->core_cpumask); in isst_ctdp_display_information()
382 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
387 if (ctdp_level->core_cpumask_size) { in isst_ctdp_display_information()
388 snprintf(header, sizeof(header), "enable-cpu-mask"); in isst_ctdp_display_information()
390 ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
391 ctdp_level->core_cpumask); in isst_ctdp_display_information()
394 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
396 ctdp_level->core_cpumask_size, in isst_ctdp_display_information()
397 ctdp_level->core_cpumask); in isst_ctdp_display_information()
401 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
402 snprintf(value, sizeof(value), "%d", ctdp_level->tdp_ratio); in isst_ctdp_display_information()
405 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
406 if (!ctdp_level->sse_p1) in isst_ctdp_display_information()
407 ctdp_level->sse_p1 = ctdp_level->tdp_ratio; in isst_ctdp_display_information()
409 ctdp_level->sse_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
412 if (ctdp_level->avx2_p1) { in isst_ctdp_display_information()
413 snprintf(header, sizeof(header), "base-frequency-avx2(MHz)"); in isst_ctdp_display_information()
415 ctdp_level->avx2_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
419 if (ctdp_level->avx512_p1) { in isst_ctdp_display_information()
420 snprintf(header, sizeof(header), "base-frequency-avx512(MHz)"); in isst_ctdp_display_information()
422 ctdp_level->avx512_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
426 if (ctdp_level->uncore_p1) { in isst_ctdp_display_information()
427 snprintf(header, sizeof(header), "uncore-frequency-min(MHz)"); in isst_ctdp_display_information()
429 ctdp_level->uncore_p1 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
433 if (ctdp_level->uncore_p0) { in isst_ctdp_display_information()
434 snprintf(header, sizeof(header), "uncore-frequency-max(MHz)"); in isst_ctdp_display_information()
436 ctdp_level->uncore_p0 * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
440 if (ctdp_level->mem_freq) { in isst_ctdp_display_information()
441 snprintf(header, sizeof(header), "mem-frequency(MHz)"); in isst_ctdp_display_information()
443 ctdp_level->mem_freq); in isst_ctdp_display_information()
448 "speed-select-turbo-freq"); in isst_ctdp_display_information()
449 if (ctdp_level->fact_support) { in isst_ctdp_display_information()
450 if (ctdp_level->fact_enabled) in isst_ctdp_display_information()
459 "speed-select-base-freq"); in isst_ctdp_display_information()
460 if (ctdp_level->pbf_support) { in isst_ctdp_display_information()
461 if (ctdp_level->pbf_enabled) in isst_ctdp_display_information()
470 "speed-select-core-power"); in isst_ctdp_display_information()
471 if (ctdp_level->sst_cp_support) { in isst_ctdp_display_information()
472 if (ctdp_level->sst_cp_enabled) in isst_ctdp_display_information()
481 if (ctdp_level->pbf_support) in isst_ctdp_display_information()
484 &ctdp_level->pbf_info, in isst_ctdp_display_information()
489 if (ctdp_level->pkg_tdp) { in isst_ctdp_display_information()
490 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
491 snprintf(value, sizeof(value), "%d", ctdp_level->pkg_tdp); in isst_ctdp_display_information()
495 if (ctdp_level->t_proc_hot) { in isst_ctdp_display_information()
496 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
497 snprintf(value, sizeof(value), "%d", ctdp_level->t_proc_hot); in isst_ctdp_display_information()
501 snprintf(header, sizeof(header), "turbo-ratio-limits-sse"); in isst_ctdp_display_information()
504 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
507 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
508 snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); in isst_ctdp_display_information()
512 "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
514 ctdp_level->trl_sse_active_cores[j] * in isst_ctdp_display_information()
519 if (ctdp_level->trl_avx_active_cores[0]) { in isst_ctdp_display_information()
520 snprintf(header, sizeof(header), "turbo-ratio-limits-avx2"); in isst_ctdp_display_information()
523 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
526 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
527 snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); in isst_ctdp_display_information()
530 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
531 … snprintf(value, sizeof(value), "%d", ctdp_level->trl_avx_active_cores[j] * DISP_FREQ_MULTIPLIER); in isst_ctdp_display_information()
536 if (ctdp_level->trl_avx_512_active_cores[0]) { in isst_ctdp_display_information()
537 snprintf(header, sizeof(header), "turbo-ratio-limits-avx512"); in isst_ctdp_display_information()
540 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
543 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
544 snprintf(value, sizeof(value), "%llu", (ctdp_level->buckets_info >> (j * 8)) & 0xff); in isst_ctdp_display_information()
547 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
548 …snprintf(value, sizeof(value), "%d", ctdp_level->trl_avx_512_active_cores[j] * DISP_FREQ_MULTIPLIE… in isst_ctdp_display_information()
553 if (ctdp_level->pbf_support) in isst_ctdp_display_information()
555 &ctdp_level->pbf_info, in isst_ctdp_display_information()
557 if (ctdp_level->fact_support) in isst_ctdp_display_information()
559 &ctdp_level->fact_info, in isst_ctdp_display_information()
611 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
619 snprintf(value, sizeof(value), "%d", clos_config->epp); in isst_clos_display_information()
622 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
623 snprintf(value, sizeof(value), "%d", clos_config->clos_prop_prio); in isst_clos_display_information()
626 snprintf(header, sizeof(header), "clos-min"); in isst_clos_display_information()
627 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_min * DISP_FREQ_MULTIPLIER); in isst_clos_display_information()
630 snprintf(header, sizeof(header), "clos-max"); in isst_clos_display_information()
631 if (clos_config->clos_max == 0xff) in isst_clos_display_information()
634 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_max * DISP_FREQ_MULTIPLIER); in isst_clos_display_information()
637 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
638 snprintf(value, sizeof(value), "%d MHz", clos_config->clos_desired * DISP_FREQ_MULTIPLIER); in isst_clos_display_information()
654 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
657 snprintf(header, sizeof(header), "support-status"); in isst_clos_display_clos_information()
664 snprintf(header, sizeof(header), "enable-status"); in isst_clos_display_clos_information()
671 snprintf(header, sizeof(header), "clos-enable-status"); in isst_clos_display_clos_information()
678 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
696 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()
713 if (id->cpu >= 0) in isst_display_result()
777 snprintf(header, sizeof(header), "get-trl"); in isst_trl_display_information()