coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <types.h>
Go to the source code of this file.
Enumerations | |
enum | { BURST_MODE_UNKNOWN , BURST_MODE_UNAVAILABLE , BURST_MODE_DISABLED , BURST_MODE_ENABLED } |
anonymous enum |
Definition at line 317 of file cpulib.c.
References BIT, CONFIG, config_of_soc, msr_struct::lo, MSR_PLATFORM_INFO, MSR_TEMPERATURE_TARGET, rdmsr(), and wrmsr().
Referenced by get_adl_cpu_type(), punit_init(), and soc_init_cpus().
Definition at line 233 of file cpulib.c.
References BURST_MODE_DISABLE, msr_struct::hi, IA32_MISC_ENABLE, rdmsr(), and wrmsr().
Referenced by set_max_freq().
int cpu_config_tdp_levels | ( | void | ) |
Definition at line 300 of file haswell_init.c.
References cpuid_eax(), msr_struct::hi, IVB_CONFIG_TDP_MIN_CPUID, MSR_PLATFORM_INFO, and rdmsr().
Referenced by cpu_get_max_ratio(), set_max_ratio(), and set_power_limits().
int cpu_get_burst_mode_state | ( | void | ) |
Definition at line 172 of file cpulib.c.
References BURST_MODE_DISABLE, BURST_MODE_DISABLED, BURST_MODE_ENABLED, BURST_MODE_UNAVAILABLE, BURST_MODE_UNKNOWN, cpuid_eax(), msr_struct::hi, IA32_MISC_ENABLE, and rdmsr().
Referenced by set_max_freq().
Definition at line 350 of file cpulib.c.
References KHz.
Referenced by generate_p_state_entries().
Definition at line 223 of file cpulib.c.
References cpuid_ecx(), and CPUID_PROCESSOR_FREQUENCY.
Referenced by acpi_get_cpu_nominal_freq().
int cpu_get_coord_type | ( | void | ) |
Definition at line 276 of file cpulib.c.
References HW_ALL.
Referenced by generate_p_state_entries().
Definition at line 207 of file cpulib.c.
References cpuid_eax(), and CPUID_HYBRID_INFORMATION.
Definition at line 305 of file cpulib.c.
References msr_struct::lo, MSR_PLATFORM_INFO, and rdmsr().
Referenced by acpi_get_cpu_nomi_perf(), acpi_get_cpu_nominal_freq(), and cpu_set_p_state_to_max_non_turbo_ratio().
Definition at line 289 of file cpulib.c.
References cpu_config_tdp_levels(), msr_struct::lo, MSR_CONFIG_TDP_NOMINAL, MSR_PLATFORM_INFO, and rdmsr().
Referenced by generate_p_state_entries().
Definition at line 369 of file cpulib.c.
References msr_struct::lo, MSR_TURBO_RATIO_LIMIT, and rdmsr().
Referenced by generate_p_state_entries().
Definition at line 281 of file cpulib.c.
References msr_struct::hi, MSR_PLATFORM_INFO, and rdmsr().
Referenced by cpu_set_p_state_to_min_clock_ratio(), and generate_p_state_entries().
Definition at line 358 of file cpulib.c.
References msr_struct::lo, MSR_PKG_POWER_SKU, MSR_PKG_POWER_SKU_UNIT, and rdmsr().
Referenced by config_pmic_imon(), fill_vr_domain_config(), generate_p_state_entries(), and get_sku_icc_max().
Definition at line 55 of file cpulib.c.
References msr_struct::lo, MSR_CONFIG_TDP_NOMINAL, and rdmsr().
Referenced by set_power_limits().
Definition at line 194 of file cpulib.c.
References cpuid_ext(), CPUID_STRUCT_EXTENDED_FEATURE_FLAGS, cpuid_result::edx, and HYBRID_FEATURE.
Definition at line 392 of file cpulib.c.
References LT_CONTROL_LOCK, MSR_LT_CONTROL, and msr_set().
Referenced by pch_finalize(), sgx_configure(), and soc_lockdown().
Definition at line 267 of file cpulib.c.
References msr_struct::lo, MSR_CORE_THREAD_COUNT, and rdmsr().
Referenced by generate_cpu_entries(), get_cpu_count(), get_thread_count(), get_threads_per_package(), and wilco_set_cpu_id().
Definition at line 250 of file cpulib.c.
References IA32_MISC_ENABLE, msr_struct::lo, rdmsr(), and wrmsr().
Referenced by configure_misc(), set_max_freq(), and soc_core_init().
Definition at line 45 of file cpulib.c.
References cpu_set_p_state_to_turbo_ratio(), get_turbo_state(), and TURBO_ENABLED.
Referenced by post_mp_init().
Definition at line 138 of file cpulib.c.
References cpu_get_max_non_turbo_ratio(), msr_struct::hi, msr_struct::lo, and set_perf_control_msr().
Referenced by soc_core_init().
Definition at line 154 of file cpulib.c.
References cpu_get_min_ratio(), msr_struct::hi, msr_struct::lo, and set_perf_control_msr().
Referenced by soc_core_init().
Definition at line 121 of file cpulib.c.
References msr_struct::hi, msr_struct::lo, MSR_CONFIG_TDP_NOMINAL, rdmsr(), and set_perf_control_msr().
Definition at line 103 of file cpulib.c.
References msr_struct::hi, msr_struct::lo, MSR_TURBO_RATIO_LIMIT, rdmsr(), and set_perf_control_msr().
Referenced by cpu_set_max_ratio(), and set_max_freq().
Definition at line 33 of file cpu.c.
References CONFIG, ENABLE_IA_UNTRUSTED, msr_struct::lo, MSR_BIOS_DONE, MSR_POWER_MISC, and rdmsr().
Referenced by gpio_non_smm_lock_pad().
Definition at line 10 of file pm_timer_emulation.c.
References ACPI_BASE_ADDRESS, CONFIG, DIV_ROUND_CLOSEST, EMULATE_DELAY_OFFSET_VALUE, EMULATE_DELAY_VALUE, EMULATE_PM_TMR_EN, msr_struct::hi, msr_struct::lo, MSR_EMULATE_PM_TIMER, PM1_TMR, and wrmsr().
Referenced by bootblock_soc_early_init(), and soc_core_init().
void get_cpu_topology_from_apicid | ( | uint32_t | apicid, |
uint8_t * | package, | ||
uint8_t * | core, | ||
uint8_t * | thread | ||
) |
Definition at line 471 of file cpulib.c.
References get_cpu_core_thread_bits().
Referenced by mp_get_processor_info().
int get_valid_prmrr_size | ( | void | ) |
Definition at line 397 of file cpulib.c.
References BIOS_DEBUG, BIOS_WARNING, CONFIG, msr_struct::lo, MiB, MSR_PRMRR_VALID_CONFIG, printk, and rdmsr().
Referenced by fill_fspm_cpu_params(), platform_fsp_memory_init_params_cb(), and soc_memory_init_params().
Definition at line 376 of file cpulib.c.
References BIOS_DEBUG, IA32_MC_CTL, mca_clear_status(), mca_get_bank_count(), printk, and wrmsr().
Referenced by dnv_configure_mca(), soc_core_init(), and xeon_configure_mca().