[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <288e4d9c-a3e4-4f7e-a68c-330704e5125d@collabora.com>
Date: Wed, 22 Oct 2025 21:27:21 +0500
From: Muhammad Usama Anjum <usama.anjum@...labora.com>
To: "Rafael J. Wysocki" <rafael@...nel.org>,
"Mario Limonciello (AMD) (kernel.org)" <superm1@...nel.org>
Cc: usama.anjum@...labora.com, Len Brown <lenb@...nel.org>,
Pavel Machek <pavel@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Danilo Krummrich <dakr@...nel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Thomas Gleixner <tglx@...utronix.de>, Peter Zijlstra <peterz@...radead.org>,
linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org, linux-input@...r.kernel.org, kernel@...labora.com
Subject: Re: [RFC 1/4] PM: hibernate: export hibernation_in_progress()
On 10/22/25 2:53 PM, Rafael J. Wysocki wrote:
> On Tue, Oct 21, 2025 at 11:07 PM Mario Limonciello (AMD) (kernel.org)
> <superm1@...nel.org> wrote:
>>
>>
>>
>> On 10/18/2025 9:21 AM, Muhammad Usama Anjum wrote:
>>> Export hibernation_in_progress() to be used by other modules. Add its
>>> signature when hibernation config isn't enabled as well.
>>
>> I wonder if you actually want to have pm_sleep_transition_in_progress()
>> exported instead. "Logically" I would expect cancelling a hibernate and
>> cancelling a suspend should work similarly.
>
> Well, it does AFAICS, except that only the "freeze" and "poweroff"
> transitions can be aborted during hibernation. This is analogous to
> aborting a suspend transition.
I'll switch up with pm_sleep_transition_in_progress().
>
> The missing part is a mechanism to cancel hibernation between image
> creation and the "poweroff" transition.
I'll add wakeup checking there and see if it works.
--
---
Thanks,
Usama
Powered by blists - more mailing lists