Skip to content

platform/x86/intel/pmc: Disable ACPI PM timer during suspend on PTL

Tzung-Bi Shih lkml platform-driver-x86 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v31 patch 2 repliesSuperseded
  3. v21 patch 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

- Split into a 3-patch series.
- Hook acpi_pmtmr_register_suspend_resume_callback() when CONFIG_X86_PM_TIMER=y to preserve ordering vs. the acpi_pm clocksource.
- Include S0i2.1/S0i2.2 residency evidence in Patch 3.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3clocksource: acpi_pm: Add stubs for suspend/resume callback helpersinclude/linux/acpi_pmtmr.h+5 -00 replies
2/3platform/x86/intel/pmc: Support disabling ACPI PM timer during suspenddrivers/platform/x86/intel/pmc/core.c drivers/platform/x86/intel/pmc/core.h+60 -00 replies
3/3platform/x86/intel/pmc: Disable ACPI PM timer during suspend on Panther Lakedrivers/platform/x86/intel/pmc/ptl.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] platform/x86/intel/pmc: Disable ACPI PM timer during suspend on PTL

When the ACPI PM timer is enabled by firmware on Panther Lake to drive the wdat_wdt hardware watchdog, leaving it running during s2idle blocks S0i2.2 entry (keeping the SoC in S0i2.1).

This series adds lockless support in intel_pmc_core to disable the ACPI PM timer during suspend and restore it on resume if it was previously enabled:

- Patch 1 adds static inline stubs for the acpi_pm suspend/resume callback helpers when CONFIG_X86_PM_TIMER is disabled.

- Patch 2 adds generic opt-in support in intel_pmc_core via struct pmc_reg_map.

- Patch 3 opts Panther Lake in.

Note on testing: Runtime s2idle testing was performed with CONFIG_X86_PM_TIMER=n (TSC clocksource). The CONFIG_X86_PM_TIMER=y path has only been compile-tested.

Regarding Wildcat Lake (WCL): I'm not sure whether WCL needs the same fix and don't have WCL hardware to verify it, so this series keeps the opt-in scoped to Panther Lake. With Patch 2 in place, WCL can easily opt in via wcl_pcdn_reg_map if needed.

---
v4:
- Split into a 3-patch series.
- Hook acpi_pmtmr_register_suspend_resume_callback() when CONFIG_X86_PM_TIMER=y to preserve ordering vs. the acpi_pm clocksource.
- Include S0i2.1/S0i2.2 residency evidence in Patch 3.

v3: https://lore.kernel.org/all/[email protected]
- Rebase to next-20261111.

v2: https://lore.kernel.org/all/[email protected]
- Include <linux/bits.h> for BIT().
- Rename ptl_set_acpi_pm_timer_on_suspend() -> ptl_set_acpi_pm_timer().
- Update register values on separate lines.

v1: https://lore.kernel.org/all/[email protected]

Tzung-Bi Shih (3):
clocksource: acpi_pm: Add stubs for suspend/resume callback helpers platform/x86/intel/pmc: Support disabling ACPI PM timer during suspend platform/x86/intel/pmc: Disable ACPI PM timer during suspend on
Panther Lake

 drivers/platform/x86/intel/pmc/core.c | 49 +++++++++++++++++++++++++++
 drivers/platform/x86/intel/pmc/core.h | 11 ++++++
 drivers/platform/x86/intel/pmc/ptl.c  |  2 ++
 include/linux/acpi_pmtmr.h            |  5 +++
 4 files changed, 67 insertions(+)
Signature · 1 line
2.56.1.708.g77570a6a1d-goog