1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/intel/pmc
Kane Chen 16f8091b49
platform/x86/intel/pmc: Improve PKGC residency counters debug
The current code only prints PKGC-10 residency when the PKGC-10
is not reached in previous 'freeze' attempt. To debug PKGC-10 issues, we
also need to know other PKGC residency counters to better triage issues.
Ex:
1. When system is stuck in PC2, it can be caused short LTR from device.
2. When system is stuck in PC8, it can be caused by display engine.

To better triage issues, all PKGC residency are needed when issues happen.

Example log:
 CPU did not enter Package C10!!! (Package C10 cnt=0x0)
 Prev Package C2 cnt = 0x2191a325de, Current Package C2 cnt = 0x21aba30724
 Prev Package C3 cnt = 0x0, Current Package C3 cnt = 0x0
 Prev Package C6 cnt = 0x0, Current Package C6 cnt = 0x0
 Prev Package C7 cnt = 0x0, Current Package C7 cnt = 0x0
 Prev Package C8 cnt = 0x0, Current Package C8 cnt = 0x0
 Prev Package C9 cnt = 0x0, Current Package C9 cnt = 0x0
 Prev Package C10 cnt = 0x0, Current Package C10 cnt = 0x0

With this log, we can know whether it's a stuck PC2 issue, and we can
check whether the short LTR from device causes the issue.

Signed-off-by: Kane Chen <kane.chen@intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240308033127.1013053-1-kane.chen@intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2024-03-12 12:56:04 +02:00
..
adl.c platform-drivers-x86 for v6.7-6 2024-01-02 13:13:01 +01:00
arl.c platform/x86/intel/pmc/arl: Put GNA device in D3 2024-03-12 12:47:53 +02:00
cnp.c platform-drivers-x86 for v6.7-6 2024-01-02 13:13:01 +01:00
core.c platform/x86/intel/pmc: Improve PKGC residency counters debug 2024-03-12 12:56:04 +02:00
core.h platform/x86/intel/pmc: Improve PKGC residency counters debug 2024-03-12 12:56:04 +02:00
core_ssram.c platform/x86/intel/pmc: Move common code to core.c 2023-12-19 16:48:24 +01:00
icl.c platform/x86:intel/pmc: Call pmc_get_low_power_modes from platform init 2023-12-04 14:53:43 +01:00
Kconfig platform/x86/intel/pmc: Find and register PMC telemetry entries 2023-12-04 14:53:43 +01:00
lnl.c platform/x86/intel/pmc/lnl: Remove SSRAM support 2024-03-12 12:47:51 +02:00
Makefile platform/x86/intel/pmc: Add Lunar Lake M support to intel_pmc_core driver 2023-12-28 10:06:44 +01:00
mtl.c platform-drivers-x86 for v6.7-6 2024-01-02 13:13:01 +01:00
pltdrv.c platform/x86/intel: pmc: Don't unconditionally attach Intel PMC when virtualized 2022-11-15 16:53:17 +01:00
spt.c platform/x86:intel/pmc: Call pmc_get_low_power_modes from platform init 2023-12-04 14:53:43 +01:00
tgl.c platform-drivers-x86 for v6.7-6 2024-01-02 13:13:01 +01:00