[PATCH 0/13] ACPI / PM: Rework power resources management

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Wednesday, November 24, 2010 - 4:01 pm

Hi,

Unfortunately there are a few problems with ACPI power resources management
that should be fixed by the following series of patches.

Patch [1/13] is necessary to fix a recent regression in the mainline kernel and
patch [2/13] also should go into 2.6.37 IMO.  The remaining patches are not so
urgent, but they all are necessary.

[1/13] - Fix regression if fan resume resulting from the rework of power
         resources reference counting.

[2/13] - Do not reference count power resources that can't be turned on.

[3/13] - Rework acpi_power_get_inferred_state() so that it doesn't update
         device->power.state behind the caller's back.

[4/13] - Introduce functions for handling lists of power resources.

[5/13] - Introduce helper function for reference counting power resources
         for a given device and power state.

[6/13] - Introduce function for reading device power state without modifying
         the device object.

[7/13] - Add function for device power state initialization.

[8/13] - Add function for updating device power state in a consistent way.

[9/13] - Register acpi_power_driver before scanning the root of the namespace.

[10/13] - Add power resource ACPI device objects as soon as they are needed.

[11/13] - Rework the management of ACPI power resources in the ACPI fan driver.

[12/13] - Drop acpi_bus_get_power() that has no users now.

[13/13] - Drop acpi_power_nocheck which isn't necessary any more.

The patches have been tested on my HP nx6325 (which is the only machine using
ACPI power resources I have) and a combo patch functionally equivalen to this
series has been tested by Maciej Rutecki.

Please apply.

Thanks,
Rafael

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/13] ACPI / PM: Rework power resources management, Rafael J. Wysocki, (Wed Nov 24, 4:01 pm)
[PATCH 1/13] ACPI / PM: Check device state before refcount ..., Rafael J. Wysocki, (Wed Nov 24, 4:02 pm)
[PATCH 2/13] ACPI / PM: Do not refcount power resources th ..., Rafael J. Wysocki, (Wed Nov 24, 4:03 pm)
[PATCH 3/13] ACPI / PM: Prevent acpi_power_get_inferred_st ..., Rafael J. Wysocki, (Wed Nov 24, 4:05 pm)
[PATCH 4/13] ACPI / PM: Add functions for manipulating lis ..., Rafael J. Wysocki, (Wed Nov 24, 4:06 pm)
[PATCH 5/13] ACPI / PM: Introduce function for refcounting ..., Rafael J. Wysocki, (Wed Nov 24, 4:06 pm)
[PATCH 6/13] ACPI / PM: Introduce __acpi_bus_get_power(), Rafael J. Wysocki, (Wed Nov 24, 4:07 pm)
[PATCH 7/13] ACPI / PM: Add function for device power stat ..., Rafael J. Wysocki, (Wed Nov 24, 4:08 pm)
[PATCH 8/13] ACPI / PM: Add function for updating device p ..., Rafael J. Wysocki, (Wed Nov 24, 4:09 pm)
[PATCH 9/13] ACPI / PM: Register acpi_power_driver early, Rafael J. Wysocki, (Wed Nov 24, 4:10 pm)
[PATCH 10/13] ACPI / PM: Register power resource devices a ..., Rafael J. Wysocki, (Wed Nov 24, 4:10 pm)
[PATCH 11/13] ACPI / Fan: Rework the handling of power res ..., Rafael J. Wysocki, (Wed Nov 24, 4:11 pm)
[PATCH 12/13] ACPI / PM: Drop acpi_bus_get_power(), Rafael J. Wysocki, (Wed Nov 24, 4:12 pm)
[PATCH 13/13] ACPI / PM: Drop acpi_power_nocheck, Rafael J. Wysocki, (Wed Nov 24, 4:12 pm)
[PATCH] Platform / x86: Make fujitsu_laptop use acpi_bus_u ..., Rafael J. Wysocki, (Fri Nov 26, 2:55 pm)
Re: [PATCH 12/13] ACPI / PM: Drop acpi_bus_get_power(), Rafael J. Wysocki, (Wed Dec 1, 3:07 pm)