Skip to content

ACPI: scan: Adjust power management initialization and PCI devices handling

Rafael J. Wysocki linux-acpi linux-pci linux-pm lkml sashiko-reviews 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 6 repliesIn review
  2. v26 patches 2 repliesSuperseded
  3. v17 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI: PM: Drop parent state update from acpi_device_get_power()drivers/acpi/device_pm.c+2 -130 replies
2/4ACPI: scan: Stop calling acpi_bus_init_power() earlydrivers/acpi/device_pm.c drivers/acpi/scan.c+76 -261 reply
3/4ACPI: PM: Move acpi_bus_init_power() declaration to internal header filedrivers/acpi/internal.h include/acpi/acpi_bus.h+1 -10 replies
4/4ACPI: scan: Combine two conditionals in acpi_bus_attach()drivers/acpi/scan.c+2 -70 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchAndy ShevchenkoPeixin XieSakari Ailus
SeriesT-b T-b
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/4] ACPI: scan: Adjust power management initialization and PCI devices handling

Hi All,

This is an update of

https://lore.kernel.org/linux-acpi/[email protected]/

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!