RE: [RFC v2 3/3] platform/x86/intel/pmc: core: Report duration of time in HW sleep state

From: Limonciello, Mario
Date: Mon Nov 14 2022 - 14:06:57 EST


[Public]



> -----Original Message-----
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Sent: Sunday, November 13, 2022 17:57
> To: Limonciello, Mario <Mario.Limonciello@xxxxxxx>; Sven van Ashbrook
> <svenva@xxxxxxxxxxxx>; Rafael J Wysocki <rafael@xxxxxxxxxx>; linux-
> pm@xxxxxxxxxxxxxxx; platform-driver-x86@xxxxxxxxxxxxxxx; Rajneesh
> Bhardwaj <irenic.rajneesh@xxxxxxxxx>; David E Box
> <david.e.box@xxxxxxxxx>
> Cc: S-k, Shyam-sundar <Shyam-sundar.S-k@xxxxxxx>;
> rrangel@xxxxxxxxxxxx; Rajat Jain <rajatja@xxxxxxxxxx>; Hans de Goede
> <hdegoede@xxxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx; Limonciello, Mario
> <Mario.Limonciello@xxxxxxx>; Mark Gross <markgross@xxxxxxxxxx>
> Subject: Re: [RFC v2 3/3] platform/x86/intel/pmc: core: Report duration of
> time in HW sleep state
>
> On Thu, Nov 10 2022 at 00:47, Mario Limonciello wrote:
> > intel_pmc_core displays a warning when a suspend didn't get to a HW
> > sleep state.
>
> Where? Copy and paste is wonderful...

In current mainline, drivers/platform/x86/intel/pmc/core.c line 2130 will
show such a warning.

"CPU did not enter SLP_S0!!! (S0ix cnt=%llu)"