mbox series

[v3,0/2] S3 wakeup support for hardware reduced model

Message ID 20240827025821.2099068-1-jiaqing.zhao@linux.intel.com
Headers show
Series S3 wakeup support for hardware reduced model | expand

Message

Jiaqing Zhao Aug. 27, 2024, 2:58 a.m. UTC
S3 wakeup requires waking vector in FACS table, which is typically set
by OS. This patchset enables FACS table support and allows setting
waking vector in "Hardware-reduced ACPI support only" builds
(CONFIG_ACPI_REDUCED_HARDWARE_ONLY=y).

Link: https://github.com/acpica/acpica/pull/960
Link: https://github.com/acpica/acpica/commit/ee53ed6b5452612bb44af542b68d605f8b2b1104

v2->v3:
* Remove extra code style changes to align with original ACPICA commit.
v1->v2:
* Not removing acpi_hw_set_firmware_waking_vector() declaration in
  hwxfsleep.c
* Change was merged in ACPICA project, add links to it.

Jiaqing Zhao (2):
  ACPICA: Detect FACS in reduced hardware build
  ACPICA: Allow setting waking vector on reduced hardware platforms

 drivers/acpi/acpica/acglobal.h  |  6 +-----
 drivers/acpi/acpica/hwxfsleep.c | 15 ++++++---------
 drivers/acpi/acpica/tbutils.c   |  2 --
 drivers/acpi/acpica/utxfinit.c  | 24 ++++++++++++------------
 include/acpi/acconfig.h         |  1 -
 include/acpi/acpixf.h           |  8 ++++----
 6 files changed, 23 insertions(+), 33 deletions(-)

Comments

Rafael J. Wysocki Aug. 29, 2024, 12:44 p.m. UTC | #1
On Tue, Aug 27, 2024 at 4:58 AM Jiaqing Zhao
<jiaqing.zhao@linux.intel.com> wrote:
>
> S3 wakeup requires waking vector in FACS table, which is typically set
> by OS. This patchset enables FACS table support and allows setting
> waking vector in "Hardware-reduced ACPI support only" builds
> (CONFIG_ACPI_REDUCED_HARDWARE_ONLY=y).
>
> Link: https://github.com/acpica/acpica/pull/960
> Link: https://github.com/acpica/acpica/commit/ee53ed6b5452612bb44af542b68d605f8b2b1104
>
> v2->v3:
> * Remove extra code style changes to align with original ACPICA commit.
> v1->v2:
> * Not removing acpi_hw_set_firmware_waking_vector() declaration in
>   hwxfsleep.c
> * Change was merged in ACPICA project, add links to it.
>
> Jiaqing Zhao (2):
>   ACPICA: Detect FACS in reduced hardware build
>   ACPICA: Allow setting waking vector on reduced hardware platforms
>
>  drivers/acpi/acpica/acglobal.h  |  6 +-----
>  drivers/acpi/acpica/hwxfsleep.c | 15 ++++++---------
>  drivers/acpi/acpica/tbutils.c   |  2 --
>  drivers/acpi/acpica/utxfinit.c  | 24 ++++++++++++------------
>  include/acpi/acconfig.h         |  1 -
>  include/acpi/acpixf.h           |  8 ++++----
>  6 files changed, 23 insertions(+), 33 deletions(-)
>
> --

Both patches applied as 6.12 material, thanks!