From: Mario Limonciello <superm1@kernel.org>
To: mario.limonciello@amd.com, rafael@kernel.org,
len.brown@intel.com, pavel@kernel.org
Cc: linux-pm@vger.kernel.org
Subject: [PATCH] PM: hibernate: Explicitly set PM_SUSPEND_MAX at hibernate entry
Date: Thu, 1 May 2025 16:58:36 -0500 [thread overview]
Message-ID: <20250501215838.2501827-1-superm1@kernel.org> (raw)
From: Mario Limonciello <mario.limonciello@amd.com>
This allows pm_debug_messages to work properly for hibernate.
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
kernel/power/hibernate.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
index 23c0f4e6cb2ff..443002fd680de 100644
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@ -772,6 +772,7 @@ int hibernate(void)
}
pr_info("hibernation entry\n");
+ pm_suspend_target_state = PM_SUSPEND_MAX;
pm_prepare_console();
error = pm_notifier_call_chain_robust(PM_HIBERNATION_PREPARE, PM_POST_HIBERNATION);
if (error)
@@ -852,6 +853,7 @@ int hibernate(void)
hibernate_release();
Unlock:
unlock_system_sleep(sleep_flags);
+ pm_suspend_target_state = PM_SUSPEND_ON;
pr_info("hibernation exit\n");
return error;
--
2.43.0
next reply other threads:[~2025-05-01 21:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-01 21:58 Mario Limonciello [this message]
2025-05-07 7:44 ` [PATCH] PM: hibernate: Explicitly set PM_SUSPEND_MAX at hibernate entry kernel test robot
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=20250501215838.2501827-1-superm1@kernel.org \
--to=superm1@kernel.org \
--cc=len.brown@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=pavel@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