coreboot/src/include/acpi
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
..
acpi.h soc/intel: separate slp-s0 residency counter frequency in LPIT table 2023-10-05 15:22:04 +00:00
acpi_crat.h include/acpi/acpi_crat.h: Add missing <stdint.h> 2022-11-03 13:03:21 +00:00
acpi_device.h acpi: Helper functions to add certain _DSD properties 2022-12-05 14:30:57 +00:00
acpi_gnvs.h ACPI: Add usb_charge_mode_from_gnvs() 2023-08-16 17:55:02 +00:00
acpi_ivrs.h include/acpi: Use C99 flexible arrays 2023-08-01 12:55:42 +00:00
acpi_osc.h
acpi_pld.h include/acpi/acpi_pld.h: Remove comment on PLD 2023-09-28 21:26:39 +00:00
acpi_pm.h acpi/acpi_pm.c: refactor acpi_pm_state_for_* functions 2022-09-27 14:19:01 +00:00
acpi_sata.h
acpi_soundwire.h
acpigen.h acpi/acpigen: rename and clarify bus/IO/MMIO resource producer functions 2023-05-30 16:05:35 +00:00
acpigen_dptf.h Reland "drivers/intel/dptf: Add multiple fan support under dptf" 2023-04-12 14:11:45 +00:00
acpigen_dsm.h drivers/usb/acpi: Add USB _DSM method to enable/disable USB LPM per port 2023-01-19 05:58:33 +00:00
acpigen_pci.h
acpigen_ps2_keybd.h acpi/acpigen_ps2_keybd: Reduce minimum keys, optional alpha/num/punct 2023-10-02 16:24:54 +00:00
acpigen_usb.h ec/google/chromeec: Add retimer handle to Type C conn 2022-05-04 13:15:30 +00:00