Skip to content

RFC ACPI / PM: Export power resources information to user space

Rafael J. Wysocki linux-acpi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPI / PM: Expose reference count values of ACPI power resourcesdrivers/acpi/power.c drivers/acpi/scan.c include/acpi/acpi_bus.h+29 -10 replies
1/3ACPI / PM: Expose reference count values of ACPI power resourcesDocumentation/ABI/testing/sysfs-devices-reference_count drivers/acpi/power.c drivers/acpi/scan.c +1 more+42 -10 replies
2/3sysfs: Functions for adding/removing symlinks to/from attribute groupsfs/sysfs/group.c fs/sysfs/symlink.c include/linux/sysfs.h+81 -130 replies
2/3sysfs: Functions for adding/removing symlinks to/from attribute groupsfs/sysfs/group.c fs/sysfs/symlink.c include/linux/sysfs.h+81 -130 replies
3/3ACPI / PM: Expose lists of device power resources to user spacedrivers/acpi/power.c+83 -130 replies
3/3ACPI / PM: Expose lists of device power resources to user spaceDocumentation/ABI/testing/sysfs-devices-power_resources_D0 Documentation/ABI/testing/sysfs-devices-power_resources_D1 Documentation/ABI/testing/sysfs-devices-power_resources_D2 +2 more+131 -130 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-Hartman
SeriesA-b A-b A-b A-b A-b A-b A-b A-b
1/3
1/3
2/3
2/3
3/3
3/3

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

Read the v1 thread

Cover letter [RFC][PATCH 0/3] ACPI / PM: Export power resources information to user space

Hi Greg,

The following patch series is about exporting ACPI power resources to user space that will be necessary for PM diagnostics on new platforms (powertop is the target). Still, existing systems can also benefit from that, like my oldish HP nx6325 on which the patches have been tested.

Patch [1/3] shouldn't be really controverisal, as it only makes it possible to read power resources' reference counters from user space in a quite straightforward way.

Patch [3/3], however, exposes lists of power resources associated with different power states of devices using ACPI PM as sysfs subdirectories containing symbolic links and that requires some sysfs changes made by patch [2/3].

Admittedly, my sysfs skills are limited so please let me know if those changes make sense and are acceptable from your perspective. If not, then please kindly advise what I can do instead of them.

The patches apply on top of the current linux-next branch of the linux-pm.git tree.

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.