linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 00/11] Improvements to S5 power consumption
@ 2025-08-11 19:40 Mario Limonciello (AMD)
  2025-08-11 19:40 ` [PATCH v5 01/11] PM: Introduce new PMSG_POWEROFF event Mario Limonciello (AMD)
                   ` (10 more replies)
  0 siblings, 11 replies; 13+ messages in thread
From: Mario Limonciello (AMD) @ 2025-08-11 19:40 UTC (permalink / raw)
  To: Rafael J . Wysocki, Bjorn Helgaas
  Cc: Pavel Machek, Len Brown, Greg Kroah-Hartman, Danilo Krummrich,
	Christian König, James E . J . Bottomley,
	Martin K . Petersen, Steven Rostedt,
	open list:HIBERNATION (aka Software Suspend, aka swsusp),
	open list:RADEON and AMDGPU DRM DRIVERS, open list:DRM DRIVERS,
	open list:PCI SUBSYSTEM, open list:SCSI SUBSYSTEM,
	open list:USB SUBSYSTEM, open list:TRACING, AceLan Kao,
	Kai-Heng Feng, Mark Pearson, Merthan Karakaş, Eric Naim,
	Mario Limonciello (AMD)

A variety of issues both in function and in power consumption have been
raised as a result of devices not being put into a low power state when
the system is powered off.

There have been some localized changes[1] to PCI core to help these issues,
but they have had various downsides.

This series instead tries to use the S4 flow when the system is being
powered off.  This lines up the behavior with what other operating systems
do as well.  If for some reason that fails or is not supported, run their
shutdown() callbacks.

Cc: AceLan Kao <acelan.kao@canonical.com>
Cc: Kai-Heng Feng <kaihengf@nvidia.com>
Cc: Mark Pearson <mpearson-lenovo@squebb.ca>
Cc: Merthan Karakaş <m3rthn.k@gmail.com>
Cc: Eric Naim <dnaim@cachyos.org>
---
v4->v5:
 * Rebase on v6.17-rc1
 * Re-order series to be more bisectable for issues
 * Add tags where relevant
 * Split up PCI patches into more easily reviewable "chunks".

Mario Limonciello (AMD) (11):
  PM: Introduce new PMSG_POWEROFF event
  scsi: Add PM_EVENT_POWEROFF into suspend callbacks
  usb: sl811-hcd: Add PM_EVENT_POWEROFF into suspend callbacks
  USB: Pass PMSG_POWEROFF event to suspend_common() for poweroff with S4
    flow
  PCI: PM: Disable device wakeups when halting system through S4 flow
  PCI: PM: Split out code from pci_pm_suspend_noirq() into helper
  PCI: PM: Run bridge power up actions as part of restore phase
  PCI: PM: Use pci_power_manageable() in pci_pm_poweroff_noirq()
  PCI: Put PCIe ports with downstream devices into D3 at hibernate
  drm/amd: Avoid evicting resources at S5
  PM: Use hibernate flows for system power off

 drivers/base/power/main.c                  |  7 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c |  4 +
 drivers/pci/pci-driver.c                   | 99 +++++++++++++++-------
 drivers/scsi/mesh.c                        |  1 +
 drivers/scsi/stex.c                        |  1 +
 drivers/usb/core/hcd-pci.c                 | 10 ++-
 drivers/usb/host/sl811-hcd.c               |  1 +
 include/linux/pm.h                         |  5 +-
 include/trace/events/power.h               |  3 +-
 kernel/reboot.c                            |  6 ++
 10 files changed, 102 insertions(+), 35 deletions(-)


base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
-- 
2.43.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-08-12 16:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-11 19:40 [PATCH v5 00/11] Improvements to S5 power consumption Mario Limonciello (AMD)
2025-08-11 19:40 ` [PATCH v5 01/11] PM: Introduce new PMSG_POWEROFF event Mario Limonciello (AMD)
2025-08-11 19:40 ` [PATCH v5 02/11] scsi: Add PM_EVENT_POWEROFF into suspend callbacks Mario Limonciello (AMD)
2025-08-11 19:40 ` [PATCH v5 03/11] usb: sl811-hcd: " Mario Limonciello (AMD)
2025-08-11 19:40 ` [PATCH v5 04/11] USB: Pass PMSG_POWEROFF event to suspend_common() for poweroff with S4 flow Mario Limonciello (AMD)
2025-08-12 16:23   ` kernel test robot
2025-08-11 19:40 ` [PATCH v5 05/11] PCI: PM: Disable device wakeups when halting system through " Mario Limonciello (AMD)
2025-08-11 19:40 ` [PATCH v5 06/11] PCI: PM: Split out code from pci_pm_suspend_noirq() into helper Mario Limonciello (AMD)
2025-08-11 19:40 ` [PATCH v5 07/11] PCI: PM: Run bridge power up actions as part of restore phase Mario Limonciello (AMD)
2025-08-11 19:40 ` [PATCH v5 08/11] PCI: PM: Use pci_power_manageable() in pci_pm_poweroff_noirq() Mario Limonciello (AMD)
2025-08-11 19:41 ` [PATCH v5 09/11] PCI: Put PCIe ports with downstream devices into D3 at hibernate Mario Limonciello (AMD)
2025-08-11 19:41 ` [PATCH v5 10/11] drm/amd: Avoid evicting resources at S5 Mario Limonciello (AMD)
2025-08-11 19:41 ` [PATCH v5 11/11] PM: Use hibernate flows for system power off Mario Limonciello (AMD)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).