ACPI: PM: s2idle: Add AMD support to handle _DSM
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Fri, 20 Nov 2020 06:07:52 +0000 (11:37 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Dec 2020 18:54:55 +0000 (19:54 +0100)
commit146f1ed852a87b802ed6e71c31e189c64871383c
tree8e51c85c2a77a04936dd99f8f4c6e944b2efda90
parent0477e92881850d44910a7e94fc2c46f96faa131f
ACPI: PM: s2idle: Add AMD support to handle _DSM

Initial support for S2Idle based on the Intel implementation [1] does not
work for AMD as the BIOS implementation for ACPI methods like the _DSM
are not standardized.

So, the way in which the UUID's were parsed and the ACPI packages were
retrieved out of the ACPI objects are not the same between Intel and AMD.

Add AMD support for S2Idle to parse the UUID, evaluate the
_DSM methods, prepare the Idle constraint list etc.

Link: https://uefi.org/sites/default/files/resources/Intel_ACPI_Low_Power_S0_Idle.pdf
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c