Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/4] ACPI: scan: Adjust power management initialization and PCI devices handling
@ 2026-09-03 16:57 Rafael J. Wysocki
  2026-09-03 16:58 ` [PATCH v3 1/4] ACPI: PM: Drop parent state update from acpi_device_get_power() Rafael J. Wysocki
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Rafael J. Wysocki @ 2026-09-03 16:57 UTC (permalink / raw)
  To: Linux ACPI
  Cc: Linux PM, LKML, Mika Westerberg, Peixin Xie, Sakari Ailus,
	Lukas Wunner, Ilpo Järvinen, Linux PCI, Bjorn Helgaas,
	Hans de Goede, Andy Shevchenko

Hi All,

This is an update of

https://lore.kernel.org/linux-acpi/5144065.31r3eYUQgx@rafael.j.wysocki/

that adds 1 patch, 3 two patches, and addresses review comments in patch [2/4].

The new patch drops in v3 is a cleanup relocating the acpi_bus_init_power()
declaration to an internal header file in the core ACPI support code (patch
[3/4]).

One of the patches dropped from the v2 has been folded into patch [2/4]
and the other two have become cleanups on top of this series that can be
done later.

Overall, the series aims at addressing a few issues present in the core ACPI
device enumeration code, mostly related to the acpi_bus_attach() function.

The first one is that, on some systems, ACPI power management is initialized
twice for devices that have missing dependencies to start with.  An attempt
to address this issue had been made during the 7.3 merge window, but it had
to be reverted [1].  The approach used here is roughly the same as in the
reverted commit, but it takes PCI devices (which are a special case) into
account.

In addition to the above, ACPI power management may be initialized prematurely
for device objects whose parents are not ready for enumeration.

The other issues are that flags are unnecessarily cleared by acpi_bus_attach()
for devices with missing dependencies and PCI devices are handled by
acpi_bus_attach() like any other devices which is a mistake.

Please see the changelogs of individual patches for details.

Thanks!


Link: https://lore.kernel.org/linux-acpi/20260820-acpi-power-resource-ref-fix-v2-1-29818173ea13@linux.spacemit.com/ [1]




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

end of thread, other threads:[~2026-09-04 10:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 16:57 [PATCH v3 0/4] ACPI: scan: Adjust power management initialization and PCI devices handling Rafael J. Wysocki
2026-09-03 16:58 ` [PATCH v3 1/4] ACPI: PM: Drop parent state update from acpi_device_get_power() Rafael J. Wysocki
2026-09-03 17:19   ` sashiko-bot
2026-09-03 17:05 ` [PATCH v3 2/4] ACPI: scan: Stop calling acpi_bus_init_power() early Rafael J. Wysocki
2026-09-03 17:24   ` sashiko-bot
2026-09-03 17:06 ` [PATCH v3 3/4] ACPI: PM: Move acpi_bus_init_power() declaration to internal header file Rafael J. Wysocki
2026-09-03 17:13   ` sashiko-bot
2026-09-03 17:09 ` [PATCH v3 4/4] ACPI: scan: Combine two conditionals in acpi_bus_attach() Rafael J. Wysocki
2026-09-03 17:13   ` sashiko-bot
2026-09-04  9:40 ` [PATCH v3 0/4] ACPI: scan: Adjust power management initialization and PCI devices handling Peixin Xie
2026-09-04 10:04   ` Rafael J. Wysocki (Intel)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox