coreboot/src
Sukumar Ghorai bd9c562a9e acpi: Configure 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
Ref. https://www.uefi.org/sites/default/files/resources/Intel_ACPI_Low_Power_S0_Idle.pdf

System sleep time (SLP_S0 signal asserted) is measured in ticks,
varies in every platform and based on PMC clock.

BUG=b:300440936
TEST=check kernel cpuidle sysfs for non-zero residency after s0ix cycle
and both must match
 cat /sys/devices/system/cpu/cpuidle/low_power_idle_system_residency_us
 cat /sys/kernel/debug/pmc_core/slp_s0_residency_usec

Change-Id: I401dd4a09a67d81a9ea3a56cd22f1a681e2a9349
Signed-off-by: Sukumar Ghorai <sukumar.ghorai@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78164
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-10-18 06:23:57 +00:00
..
acpi acpi/acpigen: Allow general namestring in write mutex functions 2023-10-16 07:59:21 +00:00
arch arch/x86/cpu_common: Add cpu_get_c_substate_support 2023-10-06 12:15:34 +00:00
commonlib cbfs: Restore 32-bit padding in cbfs_header 2023-10-06 10:11:31 +00:00
console commonlib,console,nb,sb,security: Add SPDX licenses to Makefiles 2023-08-14 15:14:45 +00:00
cpu Kconfig: Bring HEAP_SIZE to a common, large value 2023-10-11 12:09:01 +00:00
device arch to drivers/intel: Fix misspellings & capitalization issues 2023-09-08 00:53:57 +00:00
drivers spi/winbond: Use spi_flash_bpbits in winbond_bpbits_to_region 2023-10-05 12:57:51 +00:00
ec ec/google/chromeec: Add is_battery_present_and_above_critical_threshold 2023-10-16 03:41:29 +00:00
include acpi: Configure slp-s0 residency counter frequency in LPIT table 2023-10-18 06:23:57 +00:00
lib cbfs: Remove x86 .data section limitation comment 2023-09-18 13:19:51 +00:00
mainboard mb/google/rex: enable WIFI_SAR for all variants 2023-10-18 05:46:54 +00:00
northbridge Kconfig: Bring HEAP_SIZE to a common, large value 2023-10-11 12:09:01 +00:00
sbom
security security/tpm: Enable Hibernate on setup failure 2023-10-02 17:06:32 +00:00
soc soc/intel/{adl, mtl}: Avoid redundant display init by joining to MBUS 2023-10-18 05:47:24 +00:00
southbridge sb/intel/bd82x6x/pcie: Drop register write 2023-10-12 12:41:17 +00:00
superio superio/smsc/sch5545/acpi/superio.asl: Fix UART2 device name 2023-10-16 09:44:49 +00:00
vendorcode treewide: convert to tpm_result_t 2023-09-28 16:54:37 +00:00
Kconfig Kconfig: Bring HEAP_SIZE to a common, large value 2023-10-11 12:09:01 +00:00