Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH v1 0/7] ACPI: scan: Address power management initialization and PCI devices handling
@ 2026-08-31 16:20 Rafael J. Wysocki
  2026-08-31 16:24 ` [PATCH v1 1/7] ACPI: scan: Stop calling acpi_bus_init_power() early Rafael J. Wysocki
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Rafael J. Wysocki @ 2026-08-31 16:20 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 series aims at addressing a few issues present in the core ACPI device
enumeration code, mostly related to the acpi_bus_attach() function (that
gets renamed in one of the patches).

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.

The other issues are that flags are unnecessarily cleared by acpi_bus_attach()
for devices with missing dependencies, the "initialized" ACPI device object
flag is not particularly useful, the "visited" ACPI device object flag is
used for two different things which is confusing at best, and that 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.

I have tested this series on a couple of machines, but let's see what
Sashiko has to say about it.

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] 16+ messages in thread

end of thread, other threads:[~2026-09-02 12:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 16:20 [PATCH v1 0/7] ACPI: scan: Address power management initialization and PCI devices handling Rafael J. Wysocki
2026-08-31 16:24 ` [PATCH v1 1/7] ACPI: scan: Stop calling acpi_bus_init_power() early Rafael J. Wysocki
2026-09-01  8:27   ` Andy Shevchenko
2026-08-31 16:25 ` [PATCH v1 2/7] ACPI: PM: Introduce acpi_device_init_power() Rafael J. Wysocki
2026-09-01  8:29   ` Andy Shevchenko
2026-09-01 16:38     ` Rafael J. Wysocki (Intel)
2026-08-31 17:59 ` [PATCH v1 3/7] ACPI: bus: Drop initialized flag from struct acpi_device_flags Rafael J. Wysocki
2026-08-31 17:59 ` [PATCH v1 4/7] ACPI: scan: Combine two conditionals in acpi_bus_attach() Rafael J. Wysocki
2026-09-01  8:40   ` Andy Shevchenko
2026-09-01 19:11     ` Rafael J. Wysocki (Intel)
2026-08-31 17:59 ` [PATCH v1 5/7] ACPI: scan: Add ACPI device "enumerated" marker Rafael J. Wysocki
2026-08-31 17:59 ` [PATCH v1 6/7] ACPI: scan: Adjust and rename acpi_bus_attach() Rafael J. Wysocki
2026-08-31 17:59 ` [PATCH v1 7/7] ACPI: scan: Take PCI device enumeration into account directly Rafael J. Wysocki
2026-09-01  8:44   ` Andy Shevchenko
2026-09-01 19:14     ` Rafael J. Wysocki (Intel)
2026-09-02 12:42 ` [PATCH v1 0/7] ACPI: scan: Address power management initialization and PCI devices handling Peixin Xie

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