]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ACPI: sleep: Put the FACS table after using it"
authorZhang Rui <rui.zhang@intel.com>
Thu, 3 Jun 2021 02:34:14 +0000 (10:34 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jun 2021 13:00:52 +0000 (15:00 +0200)
commit2b06bc5987e45a6c2d0aabd6f3bea82c3389529b
treec3413c0523654ff5ac66f37169177a0d6392f42e
parentc54d307ae8ea340d52d8a28b01227b3c31a41c0e
Revert "ACPI: sleep: Put the FACS table after using it"

Commit 70dd6c2345cd ("ACPI: sleep: Put the FACS table after using it")
puts the FACS table during initialization.

But the hardware signature bits in the FACS table need to be accessed,
after every hibernation, to compare with the original hardware
signature.

So there is no reason to release the FACS table mapping after
initialization.

This reverts commit 70dd6c2345cdb04fd928e7c4111ad5e98c5d18cd.

An alternative solution is to use acpi_gbl_FACS variable instead, which
is mapped by the ACPICA core and never released.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=212277
Reported-by: Stephan Hohe <sth.dev@tejp.de>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Cc: 5.8+ <stable@vger.kernel.org> # 5.8+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c