[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230224070506.4157738-1-saravanak@google.com>
Date: Thu, 23 Feb 2023 23:05:02 -0800
From: Saravana Kannan <saravanak@...gle.com>
To: Jonathan Corbet <corbet@....net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Rafael J. Wysocki" <rafael@...nel.org>
Cc: Saravana Kannan <saravanak@...gle.com>,
Abel Vesa <abel.vesa@...aro.org>,
Bjorn Andersson <andersson@...nel.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Doug Anderson <dianders@...omium.org>,
Matthias Kaehlcke <mka@...omium.org>, kernel-team@...roid.com,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org
Subject: [PATCH v1 0/2] Give more control of sync_state()
In systems where some devices don't have drivers, sync_state() will
never get called for suppliers of those devices. This is working as
intended since those consumer devices might be powered on, and cutting
resources to those consumer devices might make the system unstable.
However, not all systems will the same concern. For example, the
consumer device might have been left powered off and unused. In such
cases, sync_state() never getting called might cause an unnecessary
power regression if the bootloader had left the supplier in a powered on
state.
So give more control of sync_state() in the form of a kernel commandline
for a global timeout or a per device sysfs control to trigger
sync_state().
These patches have been tested on my end and seem to work well.
Thanks,
Saravana
Cc: Abel Vesa <abel.vesa@...aro.org>
Cc: Bjorn Andersson <andersson@...nel.org>
Cc: Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: Doug Anderson <dianders@...omium.org>
Cc: Matthias Kaehlcke <mka@...omium.org>
Saravana Kannan (2):
driver core: Add fw_devlink.sync_state command line param
driver core: Make state_synced device attribute writeable
.../ABI/testing/sysfs-devices-state_synced | 5 ++
.../admin-guide/kernel-parameters.txt | 12 ++++
drivers/base/base.h | 9 +++
drivers/base/core.c | 63 +++++++++++++++++--
drivers/base/dd.c | 24 ++++++-
5 files changed, 108 insertions(+), 5 deletions(-)
--
2.39.2.637.g21b0678d19-goog
Powered by blists - more mailing lists