Lines Matching full:resp

114 			"mmio_cmd response: cpu:%d reg:%x rd_write:%x resp:%x\n",  in _send_mmio_command()
125 unsigned int req_data, unsigned int *resp) in _send_mbox_command() argument
155 *resp = value; in _send_mbox_command()
163 *resp = value; in _send_mbox_command()
200 *resp = mbox_cmds.mbox_cmd[0].resp_data; in _send_mbox_command()
202 "mbox_cmd response: cpu:%d command:%x sub_command:%x parameter:%x req_data:%x resp:%x\n", in _send_mbox_command()
203 cpu, command, sub_command, parameter, req_data, *resp); in _send_mbox_command()
221 unsigned int resp; in mbox_read_pm_config() local
225 &resp); in mbox_read_pm_config()
229 debug_printf("cpu:%d READ_PM_CONFIG resp:%x\n", id->cpu, resp); in mbox_read_pm_config()
231 *cp_state = resp & BIT(16); in mbox_read_pm_config()
232 *cp_cap = resp & BIT(0) ? 1 : 0; in mbox_read_pm_config()
239 unsigned int resp; in mbox_get_config_levels() local
243 CONFIG_TDP_GET_LEVELS_INFO, 0, 0, &resp); in mbox_get_config_levels()
253 debug_printf("cpu:%d CONFIG_TDP_GET_LEVELS_INFO resp:%x\n", id->cpu, resp); in mbox_get_config_levels()
255 pkg_dev->version = resp & 0xff; in mbox_get_config_levels()
256 pkg_dev->levels = (resp >> 8) & 0xff; in mbox_get_config_levels()
257 pkg_dev->current_level = (resp >> 16) & 0xff; in mbox_get_config_levels()
258 pkg_dev->locked = !!(resp & BIT(24)); in mbox_get_config_levels()
259 pkg_dev->enabled = !!(resp & BIT(31)); in mbox_get_config_levels()
268 unsigned int resp; in mbox_get_ctdp_control() local
273 config_index, &resp); in mbox_get_ctdp_control()
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()
292 …"cpu:%d CONFIG_TDP_GET_TDP_CONTROL resp:%x fact_support:%d pbf_support: %d fact_enabled:%d pbf_ena… in mbox_get_ctdp_control()
293 id->cpu, resp, ctdp_level->fact_support, ctdp_level->pbf_support, in mbox_get_ctdp_control()
302 unsigned int resp; in _get_uncore_p0_p1_info() local
311 (BIT(16) | config_index) , &resp); in _get_uncore_p0_p1_info()
316 ctdp_level->uncore_p0 = resp & GENMASK(7, 0); in _get_uncore_p0_p1_info()
317 ctdp_level->uncore_p1 = (resp & GENMASK(15, 8)) >> 8; in _get_uncore_p0_p1_info()
318 ctdp_level->uncore_pm = (resp & GENMASK(31, 24)) >> 24; in _get_uncore_p0_p1_info()
321 "cpu:%d ctdp:%d CONFIG_TDP_GET_RATIO_INFO resp:%x uncore p0:%d uncore p1:%d uncore pm:%d\n", in _get_uncore_p0_p1_info()
322 id->cpu, config_index, resp, ctdp_level->uncore_p0, ctdp_level->uncore_p1, in _get_uncore_p0_p1_info()
330 config_index, &resp); in _get_uncore_p0_p1_info()
337 ctdp_level->uncore_p0 = resp & GENMASK(7, 0); in _get_uncore_p0_p1_info()
338 ctdp_level->uncore_p1 = (resp & GENMASK(15, 8)) >> 8; in _get_uncore_p0_p1_info()
340 "cpu:%d ctdp:%d CONFIG_TDP_GET_UNCORE_P0_P1_INFO resp:%x uncore p0:%d uncore p1:%d\n", in _get_uncore_p0_p1_info()
341 id->cpu, config_index, resp, ctdp_level->uncore_p0, in _get_uncore_p0_p1_info()
387 unsigned int resp; in _get_p1_info() local
390 config_index, &resp); in _get_p1_info()
398 ctdp_level->sse_p1 = resp & GENMASK(7, 0); in _get_p1_info()
399 ctdp_level->avx2_p1 = (resp & GENMASK(15, 8)) >> 8; in _get_p1_info()
400 ctdp_level->avx512_p1 = (resp & GENMASK(23, 16)) >> 16; in _get_p1_info()
401 ctdp_level->amx_p1 = (resp & GENMASK(31, 24)) >> 24; in _get_p1_info()
403 "cpu:%d ctdp:%d CONFIG_TDP_GET_P1_INFO resp:%x sse_p1:%d avx2_p1:%d avx512_p1:%d amx_p1:%d\n", in _get_p1_info()
404 id->cpu, config_index, resp, ctdp_level->sse_p1, in _get_p1_info()
411 unsigned int resp; in _get_uncore_mem_freq() local
415 0, config_index, &resp); in _get_uncore_mem_freq()
421 ctdp_level->mem_freq = resp & GENMASK(7, 0); in _get_uncore_mem_freq()
437 "cpu:%d ctdp:%d CONFIG_TDP_GET_MEM_FREQ resp:%x uncore mem_freq:%d\n", in _get_uncore_mem_freq()
438 id->cpu, config_index, resp, ctdp_level->mem_freq); in _get_uncore_mem_freq()
444 unsigned int resp; in mbox_get_tdp_info() local
448 0, config_index, &resp); in mbox_get_tdp_info()
454 ctdp_level->pkg_tdp = resp & GENMASK(14, 0); in mbox_get_tdp_info()
455 ctdp_level->tdp_ratio = (resp & GENMASK(23, 16)) >> 16; in mbox_get_tdp_info()
458 "cpu:%d ctdp:%d CONFIG_TDP_GET_TDP_INFO resp:%x tdp_ratio:%d pkg_tdp:%d\n", in mbox_get_tdp_info()
459 id->cpu, config_index, resp, ctdp_level->tdp_ratio, in mbox_get_tdp_info()
463 0, config_index, &resp); in mbox_get_tdp_info()
467 ctdp_level->t_proc_hot = resp & GENMASK(7, 0); in mbox_get_tdp_info()
474 "cpu:%d ctdp:%d CONFIG_TDP_GET_TJMAX_INFO resp:%x t_proc_hot:%d\n", in mbox_get_tdp_info()
475 id->cpu, config_index, resp, ctdp_level->t_proc_hot); in mbox_get_tdp_info()
483 unsigned int resp; in mbox_get_pwr_info() local
487 0, config_index, &resp); in mbox_get_pwr_info()
491 ctdp_level->pkg_max_power = resp & GENMASK(14, 0); in mbox_get_pwr_info()
492 ctdp_level->pkg_min_power = (resp & GENMASK(30, 16)) >> 16; in mbox_get_pwr_info()
495 "cpu:%d ctdp:%d CONFIG_TDP_GET_PWR_INFO resp:%x pkg_max_power:%d pkg_min_power:%d\n", in mbox_get_pwr_info()
496 id->cpu, config_index, resp, ctdp_level->pkg_max_power, in mbox_get_pwr_info()
505 unsigned int resp; in mbox_get_coremask_info() local
515 (i << 8) | config_index, &resp); in mbox_get_coremask_info()
520 "cpu:%d ctdp:%d mask:%d CONFIG_TDP_GET_CORE_MASK resp:%x\n", in mbox_get_coremask_info()
521 id->cpu, config_index, i, resp); in mbox_get_coremask_info()
523 mask = (unsigned long long)resp << (32 * i); in mbox_get_coremask_info()
538 unsigned int req, resp; in mbox_get_get_trl() local
544 &resp); in mbox_get_get_trl()
549 "cpu:%d CONFIG_TDP_GET_TURBO_LIMIT_RATIOS req:%x resp:%x\n", in mbox_get_get_trl()
550 id->cpu, req, resp); in mbox_get_get_trl()
552 trl[0] = resp & GENMASK(7, 0); in mbox_get_get_trl()
553 trl[1] = (resp & GENMASK(15, 8)) >> 8; in mbox_get_get_trl()
554 trl[2] = (resp & GENMASK(23, 16)) >> 16; in mbox_get_get_trl()
555 trl[3] = (resp & GENMASK(31, 24)) >> 24; in mbox_get_get_trl()
560 &resp); in mbox_get_get_trl()
564 debug_printf("cpu:%d CONFIG_TDP_GET_TURBO_LIMIT req:%x resp:%x\n", id->cpu, in mbox_get_get_trl()
565 req, resp); in mbox_get_get_trl()
567 trl[4] = resp & GENMASK(7, 0); in mbox_get_get_trl()
568 trl[5] = (resp & GENMASK(15, 8)) >> 8; in mbox_get_get_trl()
569 trl[6] = (resp & GENMASK(23, 16)) >> 16; in mbox_get_get_trl()
570 trl[7] = (resp & GENMASK(31, 24)) >> 24; in mbox_get_get_trl()
608 unsigned int resp; in mbox_set_tdp_level() local
619 tdp_level, &resp); in mbox_set_tdp_level()
631 unsigned int req, resp; in mbox_get_pbf_info() local
643 0, (i << 8) | level, &resp); in mbox_get_pbf_info()
648 "cpu:%d CONFIG_TDP_PBF_GET_CORE_MASK_INFO resp:%x\n", in mbox_get_pbf_info()
649 id->cpu, resp); in mbox_get_pbf_info()
651 mask = (unsigned long long)resp << (32 * i); in mbox_get_pbf_info()
661 &resp); in mbox_get_pbf_info()
665 debug_printf("cpu:%d CONFIG_TDP_PBF_GET_P1HI_P1LO_INFO resp:%x\n", id->cpu, in mbox_get_pbf_info()
666 resp); in mbox_get_pbf_info()
668 pbf_info->p1_low = resp & 0xff; in mbox_get_pbf_info()
669 pbf_info->p1_high = (resp & GENMASK(15, 8)) >> 8; in mbox_get_pbf_info()
673 id->cpu, CONFIG_TDP, CONFIG_TDP_PBF_GET_TDP_INFO, 0, req, &resp); in mbox_get_pbf_info()
677 debug_printf("cpu:%d CONFIG_TDP_PBF_GET_TDP_INFO resp:%x\n", id->cpu, resp); in mbox_get_pbf_info()
679 pbf_info->tdp = resp & 0xffff; in mbox_get_pbf_info()
683 id->cpu, CONFIG_TDP, CONFIG_TDP_PBF_GET_TJ_MAX_INFO, 0, req, &resp); in mbox_get_pbf_info()
687 debug_printf("cpu:%d CONFIG_TDP_PBF_GET_TJ_MAX_INFO resp:%x\n", id->cpu, in mbox_get_pbf_info()
688 resp); in mbox_get_pbf_info()
689 pbf_info->t_control = (resp >> 8) & 0xff; in mbox_get_pbf_info()
690 pbf_info->t_prochot = resp & 0xff; in mbox_get_pbf_info()
700 unsigned int req = 0, resp; in mbox_set_pbf_fact_status() local
736 CONFIG_TDP_SET_TDP_CONTROL, 0, req, &resp); in mbox_set_pbf_fact_status()
750 unsigned int resp; in _get_fact_bucket_info() local
759 (i << 8) | level, &resp); in _get_fact_bucket_info()
764 "cpu:%d CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_NUMCORES index:%d level:%d resp:%x\n", in _get_fact_bucket_info()
765 id->cpu, i, level, resp); in _get_fact_bucket_info()
769 (resp >> (j * 8)) & 0xff; in _get_fact_bucket_info()
780 (k << 16) | (i << 8) | level, &resp); in _get_fact_bucket_info()
785 "cpu:%d CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_RATIOS index:%d level:%d avx:%d resp:%x\n", in _get_fact_bucket_info()
786 id->cpu, i, level, k, resp); in _get_fact_bucket_info()
790 (resp >> (j * 8)) & 0xff; in _get_fact_bucket_info()
800 unsigned int resp; in mbox_get_fact_info() local
805 level, &resp); in mbox_get_fact_info()
809 debug_printf("cpu:%d CONFIG_TDP_GET_FACT_LP_CLIPPING_RATIO resp:%x\n", in mbox_get_fact_info()
810 id->cpu, resp); in mbox_get_fact_info()
812 fact_info->lp_ratios[0] = resp & 0xff; in mbox_get_fact_info()
813 fact_info->lp_ratios[1] = (resp >> 8) & 0xff; in mbox_get_fact_info()
814 fact_info->lp_ratios[2] = (resp >> 16) & 0xff; in mbox_get_fact_info()
840 unsigned int resp; in mbox_get_clos_information() local
844 &resp); in mbox_get_clos_information()
848 debug_printf("cpu:%d CLOS_PM_QOS_CONFIG resp:%x\n", id->cpu, resp); in mbox_get_clos_information()
850 if (resp & BIT(1)) in mbox_get_clos_information()
855 if (resp & BIT(2)) in mbox_get_clos_information()
865 unsigned int req, resp; in _write_pm_config() local
874 &resp); in _write_pm_config()
878 debug_printf("cpu:%d WRITE_PM_CONFIG resp:%x\n", id->cpu, resp); in _write_pm_config()
885 unsigned int req, resp; in mbox_pm_qos_config() local
917 &resp); in mbox_pm_qos_config()
923 debug_printf("cpu:%d CLOS_PM_QOS_CONFIG resp:%x\n", id->cpu, resp); in mbox_pm_qos_config()
925 req = resp; in mbox_pm_qos_config()
941 BIT(MBOX_CMD_WRITE_BIT), req, &resp); in mbox_pm_qos_config()
953 unsigned int resp; in mbox_pm_get_clos() local
957 &resp); in mbox_pm_get_clos()
961 clos_config->epp = resp & 0x0f; in mbox_pm_get_clos()
962 clos_config->clos_prop_prio = (resp >> 4) & 0x0f; in mbox_pm_get_clos()
963 clos_config->clos_min = (resp >> 8) & 0xff; in mbox_pm_get_clos()
964 clos_config->clos_max = (resp >> 16) & 0xff; in mbox_pm_get_clos()
965 clos_config->clos_desired = (resp >> 24) & 0xff; in mbox_pm_get_clos()
972 unsigned int req, resp; in mbox_set_clos() local
985 &resp); in mbox_set_clos()
996 unsigned int resp; in mbox_clos_get_assoc_status() local
1004 &resp); in mbox_clos_get_assoc_status()
1008 debug_printf("cpu:%d CLOS_PQR_ASSOC param:%x resp:%x\n", id->cpu, param, in mbox_clos_get_assoc_status()
1009 resp); in mbox_clos_get_assoc_status()
1010 *clos_id = (resp >> 16) & 0x03; in mbox_clos_get_assoc_status()
1017 unsigned int req, resp; in mbox_clos_associate() local
1026 req, &resp); in mbox_clos_associate()