Linux Power Management development
 help / color / mirror / Atom feed
From: Mario Limonciello <superm1@kernel.org>
To: Martin Steigerwald <martin@lichtvoll.de>,
	Denis Benato <benato.denis96@gmail.com>,
	rafael@kernel.org, len.brown@intel.com, pavel@kernel.org,
	gregkh@linuxfoundation.org, dakr@kernel.org
Cc: "AceLan Kao" <acelan.kao@canonical.com>,
	"Kai-Heng Feng" <kaihengf@nvidia.com>,
	"Mark Pearson" <mpearson-lenovo@squebb.ca>,
	"Merthan Karakaş" <m3rthn.k@gmail.com>,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH] PM: Use hibernate flows for system power off
Date: Mon, 19 May 2025 16:16:05 -0500	[thread overview]
Message-ID: <4a17230a-1340-445a-a8a3-33ca31f1ffa2@kernel.org> (raw)
In-Reply-To: <5890366.DvuYhMxLoT@lichtvoll.de>

On 5/18/2025 3:24 AM, Martin Steigerwald wrote:
> Hi.
> 
> Thanks for your reply, Mario.
> 
> Mario Limonciello - 14.05.25, 19:06:03 CEST:
>>> I will eventually see I bet.
>>>
>>> Currently I only compile my own kernel for my current ThinkPad which
>>> is not affected by this issue.
> 
>> As a debugging tactic for your problem you can try to save your shutdown
>> log to the EFI pstore by adding this to your kernel command line for a
>> boot.
>>
>> efi_pstore.pstore_disable=N printk.always_kmsg_dump=Y
>>
>> Then the next boot if you have the systemd-pstore service enabled it
>> will move the log into /var/lib/systemd/pstore.
>>
>> If you don't have it enabled you can run this to manually do it one
>> time.
>>
>> sudo systemctl start systemd-pstore.service
>>
>> Hopefully that log will be helpful in identifying your problem.
> 
> Thanks for the hint on how to debug things like this without some serial
> console or so.
> 
> As I use Devuan and thus do not have Systemd installed, I will need to
> find a different way to obtain the log from the pstore. But according to
> kernel documentation this seems to be easy enough¹:
> 
> mount -t pstore pstore /sys/fs/pstore
> 
> I can indeed mount it and there are a lot of "dmesg-efi_pstore-
> [timestamp]" files where time stamp seems to be in seconds since beginning
> of 1970.
> 
> [1] https://docs.kernel.org/admin-guide/pstore-blk.html
> 
> Thanks,

Great.  As a word of warning - you will want to clear these out manually 
while debugging if you don't have something like systemd to do it for you.

Now that you can debug, does this patch series improve anything?  Or 
it's a completely separate problem you're seeing?

  reply	other threads:[~2025-05-19 21:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-12 21:26 [PATCH] PM: Use hibernate flows for system power off Mario Limonciello
2025-05-14 15:45 ` Denis Benato
2025-05-14 16:15   ` Mario Limonciello
2025-05-14 16:30     ` Martin Steigerwald
2025-05-14 17:06       ` Mario Limonciello
2025-05-18  8:24         ` Martin Steigerwald
2025-05-19 21:16           ` Mario Limonciello [this message]
2025-05-14 17:18 ` Rafael J. Wysocki

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=4a17230a-1340-445a-a8a3-33ca31f1ffa2@kernel.org \
    --to=superm1@kernel.org \
    --cc=acelan.kao@canonical.com \
    --cc=benato.denis96@gmail.com \
    --cc=dakr@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kaihengf@nvidia.com \
    --cc=len.brown@intel.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=m3rthn.k@gmail.com \
    --cc=martin@lichtvoll.de \
    --cc=mpearson-lenovo@squebb.ca \
    --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