From: Mario Limonciello <mario.limonciello@amd.com>
To: <rafael@kernel.org>, <hdegoede@redhat.com>, <linus.walleij@linaro.org>
Cc: <linux-acpi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-gpio@vger.kernel.org>,
<platform-driver-x86@vger.kernel.org>, <linux-pm@vger.kernel.org>,
<Shyam-sundar.S-k@amd.com>, <Basavaraj.Natikar@amd.com>,
Mario Limonciello <mario.limonciello@amd.com>
Subject: [PATCH 0/4] Add consumers for pm_pr_debug() outside of pm
Date: Thu, 18 May 2023 12:27:48 -0500 [thread overview]
Message-ID: <20230518172752.93322-1-mario.limonciello@amd.com> (raw)
The amd-pmc and pinctrl-amd drivers have messages that are generally
useful for debugging power or wakeup issues, but users need to know to
turn on dynamic debug to get them.
Add support for using the pm_pr_debug() macro outside of pm code so
that other drivers can use it to show messages when a user turns on
`/sys/power/pm_debug_messages`.
NOTE: There aren't hard dependencies that would make this apply to a
single tree, but the pinctrl-amd message is in an IRQ handler.
It shouldn't be applied unless the changes to the macro are included.
Mario Limonciello (4):
include/linux/suspend.h: Only show pm_pr_dbg messages at
suspend/resume
ACPI: x86: Add pm_debug_messages for LPS0 _DSM state tracking
pinctrl: amd: Use pm_pr_dbg to show debugging messages
platform/x86/amd: pmc: Use pm_pr_dbg() for suspend related messages
drivers/acpi/x86/s2idle.c | 52 ++++++++++++++++++++++++++++++----
drivers/pinctrl/pinctrl-amd.c | 6 ++--
drivers/platform/x86/amd/pmc.c | 4 +--
include/linux/suspend.h | 6 ++--
4 files changed, 55 insertions(+), 13 deletions(-)
base-commit: dac0c6388ff86af74dc6f4dd6e90a7db5a429e3d
--
2.34.1
next reply other threads:[~2023-05-18 17:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-18 17:27 Mario Limonciello [this message]
2023-05-18 17:27 ` [PATCH 1/4] include/linux/suspend.h: Only show pm_pr_dbg messages at suspend/resume Mario Limonciello
2023-05-18 17:27 ` [PATCH 2/4] ACPI: x86: Add pm_debug_messages for LPS0 _DSM state tracking Mario Limonciello
2023-05-19 7:16 ` kernel test robot
2023-05-18 17:27 ` [PATCH 3/4] pinctrl: amd: Use pm_pr_dbg to show debugging messages Mario Limonciello
2023-05-18 17:27 ` [PATCH 4/4] platform/x86/amd: pmc: Use pm_pr_dbg() for suspend related messages Mario Limonciello
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230518172752.93322-1-mario.limonciello@amd.com \
--to=mario.limonciello@amd.com \
--cc=Basavaraj.Natikar@amd.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hdegoede@redhat.com \
--cc=linus.walleij@linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®