coreboot/src/soc/intel
Sukumar Ghorai ed1c03a138 soc/intel: separate slp-s0 residency counter frequency in LPIT table
Intel platforms use Low Power Idle Table (LPIT) to enumerate platform
Low Power Idle states. There are two types of low power residencies
 a) CPU PKG C10 - read via MSR (Function fixed hardware interface)
 b) Platform Controller Hub (PCH) SLP_S0 - read via memory mapped IO

Ref. https://www.uefi.org/sites/default/files/resources/Intel_ACPI_Low_Power_S0_Idle.pdf,
section 2.2.1: value of 0 indicates that counter runs at TSC frequency.

Ref. Intel 64 and IA-32 Architectures Software Developer’s Manual (Vol 4)
MSR 0x632: PC10 residency counter is at same frequency as the TSC.
Whereas slp_s0 residency counter running in different frequency.

BUG=b:300440936
TEST=check kernel cpuidle sysfs are created after kernel boot
  cat /sys/devices/system/cpu/cpuidle/low_power_idle_cpu_residency_us
  cat /sys/devices/system/cpu/cpuidle/low_power_idle_system_residency_us

Change-Id: Ibde764551a21b9aecb1c269948f4823548294711
Signed-off-by: Sukumar Ghorai <sukumar.ghorai@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78177
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
2023-10-05 15:22:04 +00:00
..
alderlake soc/intel: Select GMA v2 for ADL, MTL, TGL to reflect port/pipe defs 2023-10-04 18:50:32 +00:00
apollolake soc/intel/apollolake: Correct the logic for the legacy 8254 timer 2023-08-25 14:38:31 +00:00
baytrail soc/intel: Remove space between function name and '(' 2023-09-11 21:39:08 +00:00
braswell soc: Remove SOC_SPECIFIC_OPTIONS 2023-08-21 23:45:43 +00:00
broadwell soc/intel: Remove space between function name and '(' 2023-09-11 21:39:08 +00:00
cannonlake soc/intel: Move USB wake methods to a common ASL file 2023-10-04 15:29:32 +00:00
common soc/intel: separate slp-s0 residency counter frequency in LPIT table 2023-10-05 15:22:04 +00:00
denverton_ns soc/intel/denverton_ns: Remove __attribute__(()) 2023-09-17 13:31:59 +00:00
elkhartlake soc: Remove SOC_SPECIFIC_OPTIONS 2023-08-21 23:45:43 +00:00
jasperlake soc/intel/jasperlake: Enable wake from USB 2023-10-04 15:29:57 +00:00
meteorlake soc/intel: Select GMA v2 for ADL, MTL, TGL to reflect port/pipe defs 2023-10-04 18:50:32 +00:00
skylake soc/intel: Move USB wake methods to a common ASL file 2023-10-04 15:29:32 +00:00
tigerlake soc/intel: Select GMA v2 for ADL, MTL, TGL to reflect port/pipe defs 2023-10-04 18:50:32 +00:00
xeon_sp soc/intel/xeon_sp: Add HDA disable support 2023-09-25 16:37:39 +00:00
Makefile.inc soc/intel/Makefile.inc: Add comment where CONFIG_CSE_*_FILE are used 2023-09-22 15:48:08 +00:00