mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Álvaro Martín" <alvaromartinrdr@gmail.com>
To: superm1@kernel.org
Cc: acelan.kao@canonical.com, bartualev@gmail.com,
	benato.denis96@gmail.com, corbet@lwn.net, dnaim@cachyos.org,
	driver-core@vger.kernel.org, gregkh@linuxfoundation.org,
	kaihengf@nvidia.com, lenb@kernel.org, linux-acpi@vger.kernel.org,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-pm@vger.kernel.org, m3rthn.k@gmail.com,
	mpearson-lenovo@squebb.ca, pavel@kernel.org, rafael@kernel.org,
	rdunlap@infradead.org, skhan@linuxfoundation.org
Subject: Re: [PATCH 0/2] Use hibernate callbacks when shutting down the system
Date: Mon, 30 Nov 2026 10:55:05 +0100	[thread overview]
Message-ID: <20261130095507.43584-1-alvaromartinrdr@gmail.com> (raw)
In-Reply-To: <82efa7f5-c5b4-4934-a72d-7399ce52496c@kernel.org>

Hi Mario,

I tested this series on an HP OMEN 16-c0xxx (board 8902, BIOS F.27,
Ryzen 7 5800H + Radeon RX 6600M).

The test machine has the dGPU behind \_SB.PCI0.GPP0 -> SWUS -> SWDS. The
dGPU (03:00.0) was bound to amdgpu and the Wi-Fi device (05:00.0) to
rtw89_8852ae during both runs.

I built 7.4-rc3 with this series applied and booted the same kernel image
twice: once using the new default path, and once with shutdown=legacy.
Battery energy was measured before shutdown and after the next boot.

Setup note: iommu=pt was required on this machine because 7.4-rc3 fails
to probe the dGPU with the default IOMMU translation mode
(IO_PAGE_FAULT followed by "PSP load kdb failed"). That is a separate
amdgpu issue and was identical in both runs.

Results:

- New default path:
    power-off duration: 97660 s (27 h 7 min 40 s)
    battery energy: 67.766 Wh -> 67.766 Wh
    measured drain: 0.000 Wh (no change at the reported resolution)

- shutdown=legacy:
    power-off duration: 46364 s (12 h 52 min 44 s)
    battery energy: 67.766 Wh -> 62.682 Wh
    measured drain: 5.084 Wh
    average power draw while off: approximately 395 mW

Assuming a constant average power draw, the legacy path would have
drained approximately 10.7 Wh over the duration of the new-path test.

Both runs shut down cleanly and booted normally afterwards. No shutdown
hang was observed, and lspci -k showed the dGPU and Wi-Fi device still
bound to amdgpu and rtw89_8852ae after the next boot. pstore was empty
after both clean shutdowns.

Tested-by: Álvaro Martín <alvaromartinrdr@gmail.com>

Thanks,
Álvaro

      reply	other threads:[~2026-11-30  9:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-02 13:54 Mario Limonciello
2026-11-02 13:54 ` [PATCH 1/2] PM: Use hibernation callbacks for system power off Mario Limonciello
2026-11-02 13:54 ` [PATCH 2/2] PM: Add shutdown=legacy command line option Mario Limonciello
2026-11-02 17:17   ` Randy Dunlap
2026-11-02 17:36     ` Mario Limonciello
2026-11-06 16:57 ` [PATCH 0/2] Use hibernate callbacks when shutting down the system Rafael J. Wysocki (Intel)
2026-11-06 17:13   ` Mario Limonciello
2026-11-30  9:55     ` Álvaro Martín [this message]

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=20261130095507.43584-1-alvaromartinrdr@gmail.com \
    --to=alvaromartinrdr@gmail.com \
    --cc=acelan.kao@canonical.com \
    --cc=bartualev@gmail.com \
    --cc=benato.denis96@gmail.com \
    --cc=corbet@lwn.net \
    --cc=dnaim@cachyos.org \
    --cc=driver-core@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kaihengf@nvidia.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=m3rthn.k@gmail.com \
    --cc=mpearson-lenovo@squebb.ca \
    --cc=pavel@kernel.org \
    --cc=rafael@kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=skhan@linuxfoundation.org \
    --cc=superm1@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®