]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: scan: Release PM resources blocked by unused objects
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 9 Oct 2021 14:22:09 +0000 (16:22 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Oct 2021 17:57:01 +0000 (19:57 +0200)
commitbd9b4ca4fe5facf81e8f9eff8219f863b1b18966
tree12f0353e5aa3b433b7a7e89d058f2d857f46a018
parent60648e158363166a3a7d3e261a02a19022ea3024
ACPI: scan: Release PM resources blocked by unused objects

On some systems the ACPI namespace contains device objects that are
not used in certain configurations of the system.  If they start off
in the D0 power state configuration, they will stay in it until the
system reboots, because of the lack of any mechanism possibly causing
their configuration to change.  If that happens, they may prevent
some power resources from being turned off or generally they may
prevent the platform from getting into the deepest low-power states
thus causing some energy to be wasted.

Address this issue by changing the configuration of unused ACPI
device objects to the D3cold power state one after carrying out
the ACPI-based enumeration of devices.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214091
Link: https://lore.kernel.org/linux-acpi/20211007205126.11769-1-mario.limonciello@amd.com/
Reported-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/acpi/glue.c
drivers/acpi/internal.h
drivers/acpi/scan.c