#include <types.h>
#include <console/console.h>
#include <acpi/acpi.h>
#include <acpi/acpigen.h>
#include <arch/cpu.h>
#include <cpu/x86/msr.h>
#include <cpu/intel/speedstep.h>
#include <cpu/intel/turbo.h>
#include <device/device.h>
#include "model_2065x.h"
#include "chip.h"
Go to the source code of this file.
◆ calculate_power()
static int calculate_power |
( |
int |
tdp, |
|
|
int |
p1_ratio, |
|
|
int |
ratio |
|
) |
| |
|
static |
◆ generate_C_state_entries()
static void generate_C_state_entries |
( |
void |
| ) |
|
|
static |
◆ generate_cpu_entries()
void generate_cpu_entries |
( |
const struct device * |
device | ) |
|
◆ generate_P_state_entries()
static void generate_P_state_entries |
( |
int |
core, |
|
|
int |
cores_per_package |
|
) |
| |
|
static |
Definition at line 109 of file acpi.c.
References acpigen_pop_len(), acpigen_write_empty_PCT(), acpigen_write_name(), acpigen_write_package(), acpigen_write_PPC_NVS(), acpigen_write_PSD_package(), acpigen_write_PSS_package(), calculate_power(), get_turbo_state(), msr_struct::hi, HW_ALL, IRONLAKE_BCLK, msr_struct::lo, MISC_PWR_MGMT_EIST_HW_DIS, MSR_MISC_PWR_MGMT, MSR_PLATFORM_INFO, MSR_TURBO_RATIO_LIMIT, power, PSS_LATENCY_BUSMASTER, PSS_LATENCY_TRANSITION, PSS_MAX_ENTRIES, PSS_RATIO_STEP, rdmsr(), SW_ANY, and TURBO_ENABLED.
◆ generate_T_state_entries()
static void generate_T_state_entries |
( |
int |
core, |
|
|
int |
cores_per_package |
|
) |
| |
|
static |
◆ get_cores_per_package()
static int get_cores_per_package |
( |
void |
| ) |
|
|
static |
◆ cpu_intel_model_2065x_ops
Initial value:
Definition at line 206 of file acpi.c.
◆ tss_table_coarse
Initial value:= {
{ 100, 1000, 0, 0x00, 0 },
{ 88, 875, 0, 0x1f, 0 },
{ 75, 750, 0, 0x1e, 0 },
{ 63, 625, 0, 0x1d, 0 },
{ 50, 500, 0, 0x1c, 0 },
{ 38, 375, 0, 0x1b, 0 },
{ 25, 250, 0, 0x1a, 0 },
{ 13, 125, 0, 0x19, 0 },
}
Definition at line 54 of file acpi.c.
Referenced by generate_T_state_entries().
◆ tss_table_fine
Initial value:= {
{ 100, 1000, 0, 0x00, 0 },
{ 94, 940, 0, 0x1f, 0 },
{ 88, 880, 0, 0x1e, 0 },
{ 82, 820, 0, 0x1d, 0 },
{ 75, 760, 0, 0x1c, 0 },
{ 69, 700, 0, 0x1b, 0 },
{ 63, 640, 0, 0x1a, 0 },
{ 57, 580, 0, 0x19, 0 },
{ 50, 520, 0, 0x18, 0 },
{ 44, 460, 0, 0x17, 0 },
{ 38, 400, 0, 0x16, 0 },
{ 32, 340, 0, 0x15, 0 },
{ 25, 280, 0, 0x14, 0 },
{ 19, 220, 0, 0x13, 0 },
{ 13, 160, 0, 0x12, 0 },
}
Definition at line 36 of file acpi.c.
Referenced by generate_T_state_entries().