Lines Matching full:limits
246 /* Per-SKU limits */
321 struct ips_mcp_limits *limits; member
400 * as low as the platform limits will allow (though we could go lower there
590 * mcp_exceeded - check whether we're outside our thermal & power limits
620 * cpu_exceeded - check whether a CPU core is outside its limits
636 if (avg > (ips->limits->core_temp_limit * 100)) in cpu_exceeded()
662 if (ips->mch_avg_temp > (ips->limits->mch_temp_limit * 100)) in mch_exceeded()
672 * verify_limits - verify BIOS provided limits
675 * BIOS can optionally provide non-default limits for power and temp. Check
681 if (ips->mcp_power_limit < ips->limits->mcp_power_limit || in verify_limits()
683 ips->mcp_power_limit = ips->limits->mcp_power_limit; in verify_limits()
685 if (ips->mcp_temp_limit < ips->limits->core_temp_limit || in verify_limits()
686 ips->mcp_temp_limit < ips->limits->mch_temp_limit || in verify_limits()
688 ips->mcp_temp_limit = min(ips->limits->core_temp_limit, in verify_limits()
689 ips->limits->mch_temp_limit); in verify_limits()
693 * update_turbo_limits - get various limits & settings from regs
696 * Update the IPS power & temp limits, along with turbo enable flags,
1190 /* Expose current state and limits in debugfs if possible */
1278 * return the limits for it.
1285 struct ips_mcp_limits *limits = NULL; in ips_detect_cpu() local
1305 limits = &ips_sv_limits; in ips_detect_cpu()
1307 limits = &ips_lv_limits; in ips_detect_cpu()
1309 limits = &ips_ulv_limits; in ips_detect_cpu()
1319 if (limits->core_power_limit != (tdp / 8) * 1000) { in ips_detect_cpu()
1322 tdp / 8, limits->core_power_limit / 1000); in ips_detect_cpu()
1323 limits->core_power_limit = (tdp / 8) * 1000; in ips_detect_cpu()
1326 return limits; in ips_detect_cpu()
1336 * thermal and power limits in the MCP.
1441 ips->limits = ips_detect_cpu(ips); in ips_probe()
1442 if (!ips->limits) { in ips_probe()
1483 /* BIOS may update limits at runtime */ in ips_probe()
1531 /* Save turbo limits & ratios */ in ips_probe()