mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC v4 0/5] Report percentage of time in hardware sleep state
@ 2022-11-17 22:58 Mario Limonciello
  2022-11-17 22:58 ` [RFC v4 1/5] PM: Add a sysfs file to represent the percentage of sleep in hardware state Mario Limonciello
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Mario Limonciello @ 2022-11-17 22:58 UTC (permalink / raw)
  To: Rafael J . Wysocki, Stephen Boyd, platform-driver-x86, linux-pm,
	linux-kernel
  Cc: Sven van Ashbrook, Raul Rangel, Pavel Machek, Len Brown,
	John Stultz, Thomas Gleixner, Rajneesh Bhardwaj,
	S-k Shyam-sundar, Rajat Jain, David E Box, Hans de Goede,
	Mario Limonciello

Sven van Ashbrook brought a patch to the kernel mailing list that
attempted to change the reporting level of a s0ix entry issue to a
different debugging level so that infastructure used by Google could
better scan logs to catch problems.

This approach was rejected, but during the conversation another
suggestion was made by David E. Box to introduce some infrastructure
into the kernel to report this information.

One idea suggested in RFC v3 was to report the percentage of time instead
of the raw numbers.  This allows the details to how much time to be reported
to be abstracted by individual drivers instead.

RFC v3->v4:
 * Switch to percentage reporting
 * More changes to Intel drivers to hopefully report this properly.

Mario Limonciello (5):
  PM: Add a sysfs file to represent the percentage of sleep in hardware
    state
  platform/x86/amd: pmc: Report duration of time in deepest hw state
  platform/x86/intel/pmc: core: Drop check_counters
  platform/x86/intel/pmc: core: Always capture counters on suspend
  platform/x86/intel/pmc: core: Report duration of time in HW sleep
    state

 Documentation/ABI/testing/sysfs-power |  9 +++++++
 drivers/platform/x86/amd/pmc.c        |  5 ++--
 drivers/platform/x86/intel/pmc/core.c | 13 +++-------
 drivers/platform/x86/intel/pmc/core.h |  1 -
 include/linux/suspend.h               |  2 ++
 include/linux/timekeeping.h           |  1 +
 kernel/power/main.c                   | 36 +++++++++++++++++++++++++++
 kernel/time/timekeeping.c             | 20 ++++++++++++---
 8 files changed, 70 insertions(+), 17 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-12-01 20:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17 22:58 [RFC v4 0/5] Report percentage of time in hardware sleep state Mario Limonciello
2022-11-17 22:58 ` [RFC v4 1/5] PM: Add a sysfs file to represent the percentage of sleep in hardware state Mario Limonciello
2022-11-18  0:41   ` John Stultz
2022-11-17 22:58 ` [RFC v4 2/5] platform/x86/amd: pmc: Report duration of time in deepest hw state Mario Limonciello
2022-11-17 22:58 ` [RFC v4 3/5] platform/x86/intel/pmc: core: Drop check_counters Mario Limonciello
2022-11-23 17:47   ` Sven van Ashbrook
2022-12-01 20:12     ` Limonciello, Mario
2022-11-17 22:58 ` [RFC v4 4/5] platform/x86/intel/pmc: core: Always capture counters on suspend Mario Limonciello
2022-11-17 22:58 ` [RFC v4 5/5] platform/x86/intel/pmc: core: Report duration of time in HW sleep state Mario Limonciello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®