mirror_ubuntu-kernels/drivers/platform/x86/intel
Rajvi Jingar fb5755100a platform/x86/intel/pmc: Alder Lake PCH slp_s0_residency fix
For platforms with Alder Lake PCH (Alder Lake S and Raptor Lake S) the
slp_s0_residency attribute has been reporting the wrong value. Unlike other
platforms, ADL PCH does not have a counter for the time that the SLP_S0
signal was asserted. Instead, firmware uses the aggregate of the Low Power
Mode (LPM) substate counters as the S0ix value.  Since the LPM counters run
at a different frequency, this lead to misreporting of the S0ix time.

Add a check for Alder Lake PCH and adjust the frequency accordingly when
display slp_s0_residency.

Fixes: bbab31101f ("platform/x86/intel: pmc/core: Add Alderlake support to pmc core driver")
Signed-off-by: Rajvi Jingar <rajvi.jingar@linux.intel.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Rajneesh Bhardwaj <irenic.rajneesh@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20230320212029.3154407-1-david.e.box@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-03-27 13:34:34 +02:00
..
atomisp2 platform/x86: intel_atomisp2_led: Also turn off the always-on camera LED on the Asus T100TAF 2022-07-10 19:37:19 +02:00
ifs platform/x86/intel/ifs: Add missing kernel-doc entry 2022-12-03 11:16:16 +01:00
int1092 platform/x86: int1092: Switch to use acpi_evaluate_dsm_typed() 2023-02-02 22:48:20 +01:00
int3472 platform/x86: int3472: Add GPIOs to Surface Go 3 Board data 2023-03-07 12:08:30 +01:00
pmc platform/x86/intel/pmc: Alder Lake PCH slp_s0_residency fix 2023-03-27 13:34:34 +02:00
pmt platform/x86/intel/pmt: Sapphire Rapids PMT errata fix 2022-11-07 12:33:49 +01:00
speed_select_if platform/x86: ISST: Fix kernel documentation warnings 2023-03-07 11:37:27 +01:00
telemetry platform/x86: intel_telemetry: Move to intel sub-directory 2021-08-20 20:08:09 +02:00
uncore-frequency platform/x86: intel-uncore-freq: add Emerald Rapids support 2022-11-23 17:00:11 +01:00
wmi platform/x86/intel/wmi: thunderbolt: Use dev_groups callback 2022-09-27 16:01:44 +02:00
bxtwc_tmu.c platform/x86: intel_bxtwc_tmu: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
chtdc_ti_pwrbtn.c platform/x86: intel_chtdc_ti_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
chtwc_int33fe.c platform/x86: intel_cht_int33fe: Fix comment according to the code flow 2022-09-01 14:50:09 +02:00
crystal_cove_charger.c platform/x86: intel_crystal_cove_charger: Fix IRQ masking / unmasking 2022-01-24 10:41:46 +01:00
hid.c platform/x86/intel/hid: Add module-params for 5 button array + SW_TABLET_MODE reporting 2022-11-21 11:17:58 +01:00
int0002_vgpio.c platform/x86: intel_int0002_vgpio: Use generic_handle_irq_safe() 2022-09-19 15:08:38 +02:00
ishtp_eclite.c HID: intel-ish-hid: fix module device-id handling 2021-11-11 22:45:40 +01:00
Kconfig platform/x86/intel: Intel TPMI enumeration driver 2023-02-06 13:47:30 +01:00
Makefile platform/x86/intel: Intel TPMI enumeration driver 2023-02-06 13:47:30 +01:00
mrfld_pwrbtn.c platform/x86: intel_mrfld_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
oaktrail.c platform/x86: intel: oaktrail: Drop empty platform remove function 2023-02-02 22:48:20 +01:00
punit_ipc.c platform/x86: intel: punit_ipc: Drop empty platform remove function 2023-02-02 22:48:20 +01:00
rst.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
sdsi.c platform/x86/intel/sdsi: Add meter certificate support 2022-11-21 10:55:35 +01:00
smartconnect.c platform/x86: intel-smartconnect: Move to intel sub-directory 2021-08-20 20:11:12 +02:00
tpmi.c platform/x86/intel: tpmi: Revise the comment of intel_vsec_add_aux 2023-03-20 13:11:55 +01:00
turbo_max_3.c platform/x86: intel_turbo_max_3: Move to intel sub-directory 2021-08-20 20:11:22 +02:00
vbtn.c platform/x86: Replace acpi_bus_get_device() 2022-02-03 11:55:57 +01:00
vsec.c platform/x86/intel: vsec: Fix a memory leak in intel_vsec_add_aux 2023-03-20 13:11:55 +01:00
vsec.h platform/x86/intel/vsec: Support private data 2023-02-06 13:47:26 +01:00