ACPICA: acpidump: Add DSDT/FACS instance support for Linux and EFI
authorLv Zheng <lv.zheng@intel.com>
Thu, 3 Aug 2017 06:26:56 +0000 (14:26 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Aug 2017 21:34:16 +0000 (23:34 +0200)
commit03c5b6b0da3f8ce8a4ba463daeb26b151d36f10e
tree50094f6cb2d6ad4575aab63e230c68fb3f0add6c
parent65082bfcb486ef06f93b7603a9045cdf0c0022e8
ACPICA: acpidump: Add DSDT/FACS instance support for Linux and EFI

ACPICA commit 343fc31840d40c06001f3b170ee5bcdfd3c7f3e0

ACPI spec allows to configure different 32-bit/64-bit table addresses for
DSDT and FACS. And for FACS, it's meaningful to dump both of them as they
are used to support different suspend protocols.

While:
1. on Linux, only 1 instance is supported for DSDT/FACS; and
2. on EFI, the code in osl_get_table() is buggy with special table instances,
   causing endless file dump for such tables (reported by Shao Ming in link
   #2).

This patch adds DSDT/FACS instance support for Linux/EFI acpidump. Fixed by
Lv Zheng.

Link: https://github.com/acpica/acpica/commit/343fc318
Link: https://bugs.acpica.org/show_bug.cgi?id=1407
Link: https://github.com/acpica/acpica/issues/285
Reported-by: Shao Ming <smbest163@163.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/acpi/os_specific/service_layers/oslinuxtbl.c