Skip to content

ACPI: power: Keep track of power resource states

Rafael J. Wysocki linux-acpi linux-pm lkml 1 version New

Get series with b4
b4 am 2074778.irdbgypaU6@kreacher

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI: power: Use u8 as the power resource state data typedrivers/acpi/power.c+15 -120 replies
2/3ACPI: power: Save the last known state of each power resourcedrivers/acpi/power.c+32 -180 replies
3/3ACPI: power: Rework turning off unused power resourcesdrivers/acpi/internal.h drivers/acpi/power.c drivers/acpi/scan.c +1 more+14 -370 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchDave OlsthoornShujun Wang
1/3T-b T-b
2/3T-b T-b
3/3T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/3] ACPI: power: Keep track of power resource states

Hi All,

This series changes the handling of ACPI power resources so as to track the state of each power resource in the kernel in addition to using reference counting instead of relying on the values returned by the _STA objects of power resources.

The underlying issue is that on some systems the _STA always returns the same value for certain power resources even after changing their state with _ON or _OFF, so it is not reliable in general.

Patch [1/3] changes the data type used for representing the state of an ACPI power resources to u8 (cosmetics).

Patch [2/3] introduces the power resource state tracking (refer to the changelog for details).

Patch [3/3] simplifies turning off the unused power resources with the help of the state tracking mechanism (refer to the changelog for details).

The series is not top of the patch at

https://patchwork.kernel.org/project/linux-acpi/patch/11762320.O9o76ZdvQC@kreacher/

which is going to be pushed as a fix for 5.13-rc.

Thanks!