![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <cpu/x86/msr.h>
#include <intelblocks/cpulib.h>
#include <intelblocks/power_limit.h>
#include <soc/msr.h>
#include <soc/systemagent.h>
Go to the source code of this file.
Functions | |
void | set_power_limits (u8 power_limit_1_time, struct soc_power_limits_config *conf) |
u8 | get_cpu_tdp (void) |
Variables | |
static const u8 | power_limit_time_sec_to_msr [] |
static const u8 | power_limit_time_msr_to_sec [] |
Definition at line 199 of file power_limit.c.
References cpu_tdp, msr_struct::lo, MSR_PKG_POWER_SKU, MSR_PKG_POWER_SKU_UNIT, and rdmsr().
Referenced by fill_vr_domain_config(), get_sku_index(), get_vccin_aux_imon_iccmax(), soc_systemagent_init(), and variant_update_power_limits().
void set_power_limits | ( | u8 | power_limit_1_time, |
struct soc_power_limits_config * | conf | ||
) |
Definition at line 72 of file power_limit.c.
References ARRAY_SIZE, BIOS_INFO, cpu_config_tdp_levels(), cpu_get_tdp_nominal_ratio(), msr_struct::hi, msr_struct::lo, MCH_DDR_POWER_LIMIT_HI, MCH_DDR_POWER_LIMIT_LO, MCH_PKG_POWER_LIMIT_HI, MCH_PKG_POWER_LIMIT_LO, MCHBAR32, MSR_DDR_RAPL_LIMIT, MSR_PKG_POWER_LIMIT, MSR_PKG_POWER_SKU, MSR_PKG_POWER_SKU_UNIT, MSR_PL3_CONTROL, MSR_PLATFORM_INFO, MSR_PLATFORM_POWER_LIMIT, MSR_TURBO_ACTIVATION_RATIO, MSR_VR_CURRENT_CONFIG, PKG_POWER_LIMIT_CLAMP, PKG_POWER_LIMIT_DUTYCYCLE_MASK, PKG_POWER_LIMIT_DUTYCYCLE_SHIFT, PKG_POWER_LIMIT_EN, PKG_POWER_LIMIT_MASK, PKG_POWER_LIMIT_TIME_MASK, PKG_POWER_LIMIT_TIME_SHIFT, PLATFORM_INFO_SET_TDP, power_limit_time_msr_to_sec, power_limit_time_sec_to_msr, printk, rdmsr(), soc_power_limits_config::tdp_pl1_override, soc_power_limits_config::tdp_pl2_override, soc_power_limits_config::tdp_pl4, soc_power_limits_config::tdp_psyspl2, soc_power_limits_config::tdp_psyspl3, soc_power_limits_config::tdp_psyspl3_dutycycle, soc_power_limits_config::tdp_psyspl3_time, and wrmsr().
|
static |
Definition at line 40 of file power_limit.c.
Referenced by set_power_limits().
|
static |
Definition at line 11 of file power_limit.c.
Referenced by set_power_limits().