1 // SPDX-License-Identifier: GPL-2.0
3 * Intel Speed Select -- Enumerate and control features for Mailbox Interface
4 * Copyright (c) 2023 Intel Corporation.
8 static int mbox_get_disp_freq_multiplier(void)
10 return DISP_FREQ_MULTIPLIER;
13 static int mbox_get_trl_max_levels(void)
18 static char *mbox_get_trl_level_name(int level)
32 static int mbox_is_punit_valid(struct isst_id *id)
37 if (id->pkg < 0 || id->die < 0 || id->punit)
43 static int mbox_read_pm_config(struct isst_id *id, int *cp_state, int *cp_cap)
48 ret = isst_send_mbox_command(id->cpu, READ_PM_CONFIG, PM_FEATURE, 0, 0,
53 debug_printf("cpu:%d READ_PM_CONFIG resp:%x\n", id->cpu, resp);
55 *cp_state = resp & BIT(16);
56 *cp_cap = resp & BIT(0) ? 1 : 0;
61 static int mbox_get_config_levels(struct isst_id *id, struct isst_pkg_ctdp *pkg_dev)
66 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
67 CONFIG_TDP_GET_LEVELS_INFO, 0, 0, &resp);
71 pkg_dev->current_level = 0;
77 debug_printf("cpu:%d CONFIG_TDP_GET_LEVELS_INFO resp:%x\n", id->cpu, resp);
79 pkg_dev->version = resp & 0xff;
80 pkg_dev->levels = (resp >> 8) & 0xff;
81 pkg_dev->current_level = (resp >> 16) & 0xff;
82 pkg_dev->locked = !!(resp & BIT(24));
83 pkg_dev->enabled = !!(resp & BIT(31));
88 static int mbox_get_ctdp_control(struct isst_id *id, int config_index,
89 struct isst_pkg_ctdp_level_info *ctdp_level)
95 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
96 CONFIG_TDP_GET_TDP_CONTROL, 0,
101 ctdp_level->fact_support = resp & BIT(0);
102 ctdp_level->pbf_support = !!(resp & BIT(1));
103 ctdp_level->fact_enabled = !!(resp & BIT(16));
104 ctdp_level->pbf_enabled = !!(resp & BIT(17));
106 ret = isst_read_pm_config(id, &cp_state, &cp_cap);
108 debug_printf("cpu:%d pm_config is not supported\n", id->cpu);
110 debug_printf("cpu:%d pm_config SST-CP state:%d cap:%d\n", id->cpu, cp_state, cp_cap);
111 ctdp_level->sst_cp_support = cp_cap;
112 ctdp_level->sst_cp_enabled = cp_state;
116 "cpu:%d CONFIG_TDP_GET_TDP_CONTROL resp:%x fact_support:%d pbf_support: %d fact_enabled:%d pbf_enabled:%d\n",
117 id->cpu, resp, ctdp_level->fact_support, ctdp_level->pbf_support,
118 ctdp_level->fact_enabled, ctdp_level->pbf_enabled);
123 static void _get_uncore_p0_p1_info(struct isst_id *id, int config_index,
124 struct isst_pkg_ctdp_level_info *ctdp_level)
129 ctdp_level->uncore_pm = 0;
130 ctdp_level->uncore_p0 = 0;
131 ctdp_level->uncore_p1 = 0;
133 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
134 CONFIG_TDP_GET_RATIO_INFO, 0,
135 (BIT(16) | config_index) , &resp);
137 goto try_uncore_mbox;
140 ctdp_level->uncore_p0 = resp & GENMASK(7, 0);
141 ctdp_level->uncore_p1 = (resp & GENMASK(15, 8)) >> 8;
142 ctdp_level->uncore_pm = (resp & GENMASK(31, 24)) >> 24;
145 "cpu:%d ctdp:%d CONFIG_TDP_GET_RATIO_INFO resp:%x uncore p0:%d uncore p1:%d uncore pm:%d\n",
146 id->cpu, config_index, resp, ctdp_level->uncore_p0, ctdp_level->uncore_p1,
147 ctdp_level->uncore_pm);
152 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
153 CONFIG_TDP_GET_UNCORE_P0_P1_INFO, 0,
154 config_index, &resp);
156 ctdp_level->uncore_p0 = 0;
157 ctdp_level->uncore_p1 = 0;
161 ctdp_level->uncore_p0 = resp & GENMASK(7, 0);
162 ctdp_level->uncore_p1 = (resp & GENMASK(15, 8)) >> 8;
164 "cpu:%d ctdp:%d CONFIG_TDP_GET_UNCORE_P0_P1_INFO resp:%x uncore p0:%d uncore p1:%d\n",
165 id->cpu, config_index, resp, ctdp_level->uncore_p0,
166 ctdp_level->uncore_p1);
169 static int _set_uncore_min_max(struct isst_id *id, int max, int freq)
171 char buffer[128], freq_str[16];
175 snprintf(buffer, sizeof(buffer),
176 "/sys/devices/system/cpu/intel_uncore_frequency/package_%02d_die_%02d/max_freq_khz", id->pkg, id->die);
178 snprintf(buffer, sizeof(buffer),
179 "/sys/devices/system/cpu/intel_uncore_frequency/package_%02d_die_%02d/min_freq_khz", id->pkg, id->die);
181 fd = open(buffer, O_WRONLY);
185 snprintf(freq_str, sizeof(freq_str), "%d", freq);
186 len = strlen(freq_str);
187 ret = write(fd, freq_str, len);
197 static void mbox_adjust_uncore_freq(struct isst_id *id, int config_index,
198 struct isst_pkg_ctdp_level_info *ctdp_level)
200 _get_uncore_p0_p1_info(id, config_index, ctdp_level);
201 if (ctdp_level->uncore_pm)
202 _set_uncore_min_max(id, 0, ctdp_level->uncore_pm * 100000);
204 if (ctdp_level->uncore_p0)
205 _set_uncore_min_max(id, 1, ctdp_level->uncore_p0 * 100000);
208 static void _get_p1_info(struct isst_id *id, int config_index,
209 struct isst_pkg_ctdp_level_info *ctdp_level)
213 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP, CONFIG_TDP_GET_P1_INFO, 0,
214 config_index, &resp);
216 ctdp_level->sse_p1 = 0;
217 ctdp_level->avx2_p1 = 0;
218 ctdp_level->avx512_p1 = 0;
222 ctdp_level->sse_p1 = resp & GENMASK(7, 0);
223 ctdp_level->avx2_p1 = (resp & GENMASK(15, 8)) >> 8;
224 ctdp_level->avx512_p1 = (resp & GENMASK(23, 16)) >> 16;
226 "cpu:%d ctdp:%d CONFIG_TDP_GET_P1_INFO resp:%x sse_p1:%d avx2_p1:%d avx512_p1:%d\n",
227 id->cpu, config_index, resp, ctdp_level->sse_p1,
228 ctdp_level->avx2_p1, ctdp_level->avx512_p1);
231 static void _get_uncore_mem_freq(struct isst_id *id, int config_index,
232 struct isst_pkg_ctdp_level_info *ctdp_level)
237 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP, CONFIG_TDP_GET_MEM_FREQ,
238 0, config_index, &resp);
240 ctdp_level->mem_freq = 0;
244 ctdp_level->mem_freq = resp & GENMASK(7, 0);
245 if (is_spr_platform()) {
246 ctdp_level->mem_freq *= 200;
247 } else if (is_icx_platform()) {
248 if (ctdp_level->mem_freq < 7) {
249 ctdp_level->mem_freq = (12 - ctdp_level->mem_freq) * 133.33 * 2 * 10;
250 ctdp_level->mem_freq /= 10;
251 if (ctdp_level->mem_freq % 10 > 5)
252 ctdp_level->mem_freq++;
254 ctdp_level->mem_freq = 0;
257 ctdp_level->mem_freq = 0;
260 "cpu:%d ctdp:%d CONFIG_TDP_GET_MEM_FREQ resp:%x uncore mem_freq:%d\n",
261 id->cpu, config_index, resp, ctdp_level->mem_freq);
264 static int mbox_get_tdp_info(struct isst_id *id, int config_index,
265 struct isst_pkg_ctdp_level_info *ctdp_level)
270 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP, CONFIG_TDP_GET_TDP_INFO,
271 0, config_index, &resp);
273 isst_display_error_info_message(1, "Invalid level, Can't get TDP information at level", 1, config_index);
277 ctdp_level->pkg_tdp = resp & GENMASK(14, 0);
278 ctdp_level->tdp_ratio = (resp & GENMASK(23, 16)) >> 16;
281 "cpu:%d ctdp:%d CONFIG_TDP_GET_TDP_INFO resp:%x tdp_ratio:%d pkg_tdp:%d\n",
282 id->cpu, config_index, resp, ctdp_level->tdp_ratio,
283 ctdp_level->pkg_tdp);
285 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP, CONFIG_TDP_GET_TJMAX_INFO,
286 0, config_index, &resp);
290 ctdp_level->t_proc_hot = resp & GENMASK(7, 0);
292 _get_uncore_p0_p1_info(id, config_index, ctdp_level);
293 _get_p1_info(id, config_index, ctdp_level);
294 _get_uncore_mem_freq(id, config_index, ctdp_level);
297 "cpu:%d ctdp:%d CONFIG_TDP_GET_TJMAX_INFO resp:%x t_proc_hot:%d\n",
298 id->cpu, config_index, resp, ctdp_level->t_proc_hot);
303 static int mbox_get_pwr_info(struct isst_id *id, int config_index,
304 struct isst_pkg_ctdp_level_info *ctdp_level)
309 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP, CONFIG_TDP_GET_PWR_INFO,
310 0, config_index, &resp);
314 ctdp_level->pkg_max_power = resp & GENMASK(14, 0);
315 ctdp_level->pkg_min_power = (resp & GENMASK(30, 16)) >> 16;
318 "cpu:%d ctdp:%d CONFIG_TDP_GET_PWR_INFO resp:%x pkg_max_power:%d pkg_min_power:%d\n",
319 id->cpu, config_index, resp, ctdp_level->pkg_max_power,
320 ctdp_level->pkg_min_power);
325 static int mbox_get_coremask_info(struct isst_id *id, int config_index,
326 struct isst_pkg_ctdp_level_info *ctdp_level)
331 ctdp_level->cpu_count = 0;
332 for (i = 0; i < 2; ++i) {
333 unsigned long long mask;
336 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
337 CONFIG_TDP_GET_CORE_MASK, 0,
338 (i << 8) | config_index, &resp);
343 "cpu:%d ctdp:%d mask:%d CONFIG_TDP_GET_CORE_MASK resp:%x\n",
344 id->cpu, config_index, i, resp);
346 mask = (unsigned long long)resp << (32 * i);
347 set_cpu_mask_from_punit_coremask(id, mask,
348 ctdp_level->core_cpumask_size,
349 ctdp_level->core_cpumask,
351 ctdp_level->cpu_count += cpu_count;
352 debug_printf("cpu:%d ctdp:%d mask:%d cpu count:%d\n", id->cpu,
353 config_index, i, ctdp_level->cpu_count);
359 static int mbox_get_get_trl(struct isst_id *id, int level, int avx_level, int *trl)
361 unsigned int req, resp;
364 req = level | (avx_level << 16);
365 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
366 CONFIG_TDP_GET_TURBO_LIMIT_RATIOS, 0, req,
372 "cpu:%d CONFIG_TDP_GET_TURBO_LIMIT_RATIOS req:%x resp:%x\n",
375 trl[0] = resp & GENMASK(7, 0);
376 trl[1] = (resp & GENMASK(15, 8)) >> 8;
377 trl[2] = (resp & GENMASK(23, 16)) >> 16;
378 trl[3] = (resp & GENMASK(31, 24)) >> 24;
380 req = level | BIT(8) | (avx_level << 16);
381 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
382 CONFIG_TDP_GET_TURBO_LIMIT_RATIOS, 0, req,
387 debug_printf("cpu:%d CONFIG_TDP_GET_TURBO_LIMIT req:%x resp:%x\n", id->cpu,
390 trl[4] = resp & GENMASK(7, 0);
391 trl[5] = (resp & GENMASK(15, 8)) >> 8;
392 trl[6] = (resp & GENMASK(23, 16)) >> 16;
393 trl[7] = (resp & GENMASK(31, 24)) >> 24;
398 static int mbox_get_get_trls(struct isst_id *id, int level, struct isst_pkg_ctdp_level_info *ctdp_level)
400 int trl_max_levels = isst_get_trl_max_levels();
403 for (i = 0; i < trl_max_levels; i++) {
404 ret = mbox_get_get_trl(id, level, i, ctdp_level->trl_ratios[i]);
411 static int mbox_get_trl_bucket_info(struct isst_id *id, int level, unsigned long long *buckets_info)
415 debug_printf("cpu:%d bucket info via MSR\n", id->cpu);
419 ret = isst_send_msr_command(id->cpu, 0x1ae, 0, buckets_info);
423 debug_printf("cpu:%d bucket info via MSR successful 0x%llx\n", id->cpu,
429 static int mbox_set_tdp_level(struct isst_id *id, int tdp_level)
435 if (isst_get_config_tdp_lock_status(id)) {
436 isst_display_error_info_message(1, "TDP is locked", 0, 0);
441 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP, CONFIG_TDP_SET_LEVEL, 0,
444 isst_display_error_info_message(1, "Set TDP level failed for level", 1, tdp_level);
451 static int mbox_get_pbf_info(struct isst_id *id, int level, struct isst_pbf_info *pbf_info)
453 int max_punit_core, max_mask_index;
454 unsigned int req, resp;
457 max_punit_core = get_max_punit_core_id(id);
458 max_mask_index = max_punit_core > 32 ? 2 : 1;
460 for (i = 0; i < max_mask_index; ++i) {
461 unsigned long long mask;
464 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
465 CONFIG_TDP_PBF_GET_CORE_MASK_INFO,
466 0, (i << 8) | level, &resp);
471 "cpu:%d CONFIG_TDP_PBF_GET_CORE_MASK_INFO resp:%x\n",
474 mask = (unsigned long long)resp << (32 * i);
475 set_cpu_mask_from_punit_coremask(id, mask,
476 pbf_info->core_cpumask_size,
477 pbf_info->core_cpumask,
482 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
483 CONFIG_TDP_PBF_GET_P1HI_P1LO_INFO, 0, req,
488 debug_printf("cpu:%d CONFIG_TDP_PBF_GET_P1HI_P1LO_INFO resp:%x\n", id->cpu,
491 pbf_info->p1_low = resp & 0xff;
492 pbf_info->p1_high = (resp & GENMASK(15, 8)) >> 8;
495 ret = isst_send_mbox_command(
496 id->cpu, CONFIG_TDP, CONFIG_TDP_PBF_GET_TDP_INFO, 0, req, &resp);
500 debug_printf("cpu:%d CONFIG_TDP_PBF_GET_TDP_INFO resp:%x\n", id->cpu, resp);
502 pbf_info->tdp = resp & 0xffff;
505 ret = isst_send_mbox_command(
506 id->cpu, CONFIG_TDP, CONFIG_TDP_PBF_GET_TJ_MAX_INFO, 0, req, &resp);
510 debug_printf("cpu:%d CONFIG_TDP_PBF_GET_TJ_MAX_INFO resp:%x\n", id->cpu,
512 pbf_info->t_control = (resp >> 8) & 0xff;
513 pbf_info->t_prochot = resp & 0xff;
518 static int mbox_set_pbf_fact_status(struct isst_id *id, int pbf, int enable)
520 struct isst_pkg_ctdp pkg_dev;
521 struct isst_pkg_ctdp_level_info ctdp_level;
523 unsigned int req = 0, resp;
526 ret = isst_get_ctdp_levels(id, &pkg_dev);
528 debug_printf("cpu:%d No support for dynamic ISST\n", id->cpu);
530 current_level = pkg_dev.current_level;
532 ret = isst_get_ctdp_control(id, current_level, &ctdp_level);
537 if (ctdp_level.fact_enabled)
546 if (enable && !ctdp_level.sst_cp_enabled)
547 isst_display_error_info_message(0, "Make sure to execute before: core-power enable", 0, 0);
549 if (ctdp_level.pbf_enabled)
558 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
559 CONFIG_TDP_SET_TDP_CONTROL, 0, req, &resp);
563 debug_printf("cpu:%d CONFIG_TDP_SET_TDP_CONTROL pbf/fact:%d req:%x\n",
569 static int _get_fact_bucket_info(struct isst_id *id, int level,
570 struct isst_fact_bucket_info *bucket_info)
575 for (i = 0; i < 2; ++i) {
578 ret = isst_send_mbox_command(
580 CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_NUMCORES, 0,
581 (i << 8) | level, &resp);
586 "cpu:%d CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_NUMCORES index:%d level:%d resp:%x\n",
587 id->cpu, i, level, resp);
589 for (j = 0; j < 4; ++j) {
590 bucket_info[j + (i * 4)].hp_cores =
591 (resp >> (j * 8)) & 0xff;
595 for (k = 0; k < 3; ++k) {
596 for (i = 0; i < 2; ++i) {
599 ret = isst_send_mbox_command(
601 CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_RATIOS, 0,
602 (k << 16) | (i << 8) | level, &resp);
607 "cpu:%d CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_RATIOS index:%d level:%d avx:%d resp:%x\n",
608 id->cpu, i, level, k, resp);
610 for (j = 0; j < 4; ++j) {
611 bucket_info[j + (i * 4)].hp_ratios[k] =
612 (resp >> (j * 8)) & 0xff;
620 static int mbox_get_fact_info(struct isst_id *id, int level, int fact_bucket, struct isst_fact_info *fact_info)
625 ret = isst_send_mbox_command(id->cpu, CONFIG_TDP,
626 CONFIG_TDP_GET_FACT_LP_CLIPPING_RATIO, 0,
631 debug_printf("cpu:%d CONFIG_TDP_GET_FACT_LP_CLIPPING_RATIO resp:%x\n",
634 fact_info->lp_ratios[0] = resp & 0xff;
635 fact_info->lp_ratios[1] = (resp >> 8) & 0xff;
636 fact_info->lp_ratios[2] = (resp >> 16) & 0xff;
638 ret = _get_fact_bucket_info(id, level, fact_info->bucket_info);
643 for (j = 0; j < ISST_FACT_MAX_BUCKETS; ++j) {
644 if (fact_bucket != 0xff && fact_bucket != j)
647 if (!fact_info->bucket_info[j].hp_cores)
653 isst_display_error_info_message(1, "Invalid bucket", 0, 0);
660 static int mbox_get_clos_information(struct isst_id *id, int *enable, int *type)
665 ret = isst_send_mbox_command(id->cpu, CONFIG_CLOS, CLOS_PM_QOS_CONFIG, 0, 0,
670 debug_printf("cpu:%d CLOS_PM_QOS_CONFIG resp:%x\n", id->cpu, resp);
685 static int _write_pm_config(struct isst_id *id, int cp_state)
687 unsigned int req, resp;
695 ret = isst_send_mbox_command(id->cpu, WRITE_PM_CONFIG, PM_FEATURE, 0, req,
700 debug_printf("cpu:%d WRITE_PM_CONFIG resp:%x\n", id->cpu, resp);
705 static int mbox_pm_qos_config(struct isst_id *id, int enable_clos, int priority_type)
707 unsigned int req, resp;
711 struct isst_pkg_ctdp pkg_dev;
712 struct isst_pkg_ctdp_level_info ctdp_level;
714 ret = isst_get_ctdp_levels(id, &pkg_dev);
716 debug_printf("isst_get_ctdp_levels\n");
720 ret = isst_get_ctdp_control(id, pkg_dev.current_level,
725 if (ctdp_level.fact_enabled) {
726 isst_display_error_info_message(1, "Ignoring request, turbo-freq feature is still enabled", 0, 0);
729 ret = _write_pm_config(id, 0);
731 isst_display_error_info_message(0, "WRITE_PM_CONFIG command failed, ignoring error", 0, 0);
733 ret = _write_pm_config(id, 1);
735 isst_display_error_info_message(0, "WRITE_PM_CONFIG command failed, ignoring error", 0, 0);
738 ret = isst_send_mbox_command(id->cpu, CONFIG_CLOS, CLOS_PM_QOS_CONFIG, 0, 0,
741 isst_display_error_info_message(1, "CLOS_PM_QOS_CONFIG command failed", 0, 0);
745 debug_printf("cpu:%d CLOS_PM_QOS_CONFIG resp:%x\n", id->cpu, resp);
754 if (priority_type > 1)
755 isst_display_error_info_message(1, "Invalid priority type: Changing type to ordered", 0, 0);
762 ret = isst_send_mbox_command(id->cpu, CONFIG_CLOS, CLOS_PM_QOS_CONFIG,
763 BIT(MBOX_CMD_WRITE_BIT), req, &resp);
767 debug_printf("cpu:%d CLOS_PM_QOS_CONFIG priority type:%d req:%x\n", id->cpu,
773 static int mbox_pm_get_clos(struct isst_id *id, int clos, struct isst_clos_config *clos_config)
778 ret = isst_send_mbox_command(id->cpu, CONFIG_CLOS, CLOS_PM_CLOS, clos, 0,
783 clos_config->epp = resp & 0x0f;
784 clos_config->clos_prop_prio = (resp >> 4) & 0x0f;
785 clos_config->clos_min = (resp >> 8) & 0xff;
786 clos_config->clos_max = (resp >> 16) & 0xff;
787 clos_config->clos_desired = (resp >> 24) & 0xff;
792 static int mbox_set_clos(struct isst_id *id, int clos, struct isst_clos_config *clos_config)
794 unsigned int req, resp;
798 req = clos_config->epp & 0x0f;
799 req |= (clos_config->clos_prop_prio & 0x0f) << 4;
800 req |= (clos_config->clos_min & 0xff) << 8;
801 req |= (clos_config->clos_max & 0xff) << 16;
802 req |= (clos_config->clos_desired & 0xff) << 24;
804 param = BIT(MBOX_CMD_WRITE_BIT) | clos;
806 ret = isst_send_mbox_command(id->cpu, CONFIG_CLOS, CLOS_PM_CLOS, param, req,
811 debug_printf("cpu:%d CLOS_PM_CLOS param:%x req:%x\n", id->cpu, param, req);
816 static int mbox_clos_get_assoc_status(struct isst_id *id, int *clos_id)
822 core_id = find_phy_core_num(id->cpu);
825 ret = isst_send_mbox_command(id->cpu, CONFIG_CLOS, CLOS_PQR_ASSOC, param, 0,
830 debug_printf("cpu:%d CLOS_PQR_ASSOC param:%x resp:%x\n", id->cpu, param,
832 *clos_id = (resp >> 16) & 0x03;
837 static int mbox_clos_associate(struct isst_id *id, int clos_id)
839 unsigned int req, resp;
843 req = (clos_id & 0x03) << 16;
844 core_id = find_phy_core_num(id->cpu);
845 param = BIT(MBOX_CMD_WRITE_BIT) | core_id;
847 ret = isst_send_mbox_command(id->cpu, CONFIG_CLOS, CLOS_PQR_ASSOC, param,
852 debug_printf("cpu:%d CLOS_PQR_ASSOC param:%x req:%x\n", id->cpu, param,
858 static struct isst_platform_ops mbox_ops = {
859 .get_disp_freq_multiplier = mbox_get_disp_freq_multiplier,
860 .get_trl_max_levels = mbox_get_trl_max_levels,
861 .get_trl_level_name = mbox_get_trl_level_name,
862 .is_punit_valid = mbox_is_punit_valid,
863 .read_pm_config = mbox_read_pm_config,
864 .get_config_levels = mbox_get_config_levels,
865 .get_ctdp_control = mbox_get_ctdp_control,
866 .get_tdp_info = mbox_get_tdp_info,
867 .get_pwr_info = mbox_get_pwr_info,
868 .get_coremask_info = mbox_get_coremask_info,
869 .get_get_trl = mbox_get_get_trl,
870 .get_get_trls = mbox_get_get_trls,
871 .get_trl_bucket_info = mbox_get_trl_bucket_info,
872 .set_tdp_level = mbox_set_tdp_level,
873 .get_pbf_info = mbox_get_pbf_info,
874 .set_pbf_fact_status = mbox_set_pbf_fact_status,
875 .get_fact_info = mbox_get_fact_info,
876 .adjust_uncore_freq = mbox_adjust_uncore_freq,
877 .get_clos_information = mbox_get_clos_information,
878 .pm_qos_config = mbox_pm_qos_config,
879 .pm_get_clos = mbox_pm_get_clos,
880 .set_clos = mbox_set_clos,
881 .clos_get_assoc_status = mbox_clos_get_assoc_status,
882 .clos_associate = mbox_clos_associate,
885 struct isst_platform_ops *mbox_get_platform_ops(void)