[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221117225822.16154-1-mario.limonciello@amd.com>
Date: Thu, 17 Nov 2022 16:58:16 -0600
From: Mario Limonciello <mario.limonciello@....com>
To: "Rafael J . Wysocki" <rafael@...nel.org>,
Stephen Boyd <sboyd@...nel.org>,
<platform-driver-x86@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Sven van Ashbrook <svenva@...omium.org>,
Raul Rangel <rrangel@...omium.org>,
Pavel Machek <pavel@....cz>, Len Brown <len.brown@...el.com>,
John Stultz <jstultz@...gle.com>,
Thomas Gleixner <tglx@...utronix.de>,
Rajneesh Bhardwaj <irenic.rajneesh@...il.com>,
"S-k Shyam-sundar" <Shyam-sundar.S-k@....com>,
Rajat Jain <rajatja@...gle.com>,
David E Box <david.e.box@...el.com>,
Hans de Goede <hdegoede@...hat.com>,
Mario Limonciello <mario.limonciello@....com>
Subject: [RFC v4 0/5] Report percentage of time in hardware sleep state
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
Powered by blists - more mailing lists