Re: [PATCH] platform/x86/intel/pmc: Don't truncate HW sleep time to 32 bits

From: Ilpo Järvinen

Date: Fri Dec 04 2026 - 13:44:46 EST


On Tue, 17 Nov 2026 10:29:06 +0900, HyeongJun An wrote:

> The pmc_core_is_s0ix_failed() casts the S0ix residency delta to u32
> before it calls pm_report_hw_sleep_time(). The delta is already in
> microseconds, so any suspend longer than 71.6 minutes is reported
> modulo 2^32 us. But the limit set by pm_report_max_hw_sleep() is 2^32
> counter ticks, which is 145.6 hours with the 122 us step.
>
> On a Tiger Lake laptop, one suspend raised the LPIT S0ix residency by
> 22559 s, but last_hw_sleep reads 1085 s. The LPIT value modulo 2^32 us
> is 1084 s.
>
> [...]

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/1] platform/x86/intel/pmc: Don't truncate HW sleep time to 32 bits
commit: a3418c3fe52e16f25953e63524bf63df3f98809e

--
i.