linux-stable/include/acpi
Shuai Xue 0b55460c31 ACPI: APEI: explicit init of HEST and GHES in apci_init()
[ Upstream commit dc4e8c07e9 ]

From commit e147133a42 ("ACPI / APEI: Make hest.c manage the estatus
memory pool") was merged, ghes_init() relies on acpi_hest_init() to manage
the estatus memory pool. On the other hand, ghes_init() relies on
sdei_init() to detect the SDEI version and (un)register events. The
dependencies are as follows:

    ghes_init() => acpi_hest_init() => acpi_bus_init() => acpi_init()
    ghes_init() => sdei_init()

HEST is not PCI-specific and initcall ordering is implicit and not
well-defined within a level.

Based on above, remove acpi_hest_init() from acpi_pci_root_init() and
convert ghes_init() and sdei_init() from initcalls to explicit calls in the
following order:

    acpi_hest_init()
    ghes_init()
        sdei_init()

Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Stable-dep-of: 5cd474e573 ("arm64: sdei: abort running SDEI handlers during crash")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:20:28 +02:00
..
platform Merge back earlier ACPICA-related changes for 5.10. 2020-10-08 18:04:04 +02:00
acbuffer.h
acconfig.h ACPICA: Tree-wide: fix various typos and spelling mistakes 2020-10-08 18:03:55 +02:00
acexcep.h ACPICA: Fix exception code class checks 2021-03-04 11:37:24 +01:00
acnames.h
acoutput.h
acpi.h
acpi_bus.h ACPI: Change acpi_device_always_present() into acpi_device_override_status() 2022-01-27 10:54:13 +01:00
acpi_drivers.h
acpi_io.h ACPI: OSL: Change the type of acpi_os_map_generic_address() return value 2020-09-11 16:45:00 +02:00
acpi_lpat.h
acpi_numa.h ACPI updates for 5.10-rc1 2020-10-14 11:42:04 -07:00
acpiosxf.h
acpixf.h ACPICA: Update version to 20200925 Version 20200925 2020-10-08 18:03:56 +02:00
acrestyp.h
actbl.h
actbl1.h ACPICA: Fix a couple of typos 2020-02-16 10:19:53 +01:00
actbl2.h ACPICA: Add NHLT table signature 2020-03-30 14:52:33 +02:00
actbl3.h acpi: Extend TPM2 ACPI table with missing log fields 2020-07-24 09:29:21 +03:00
actypes.h ACPICA: actypes.h: Expand the ACPI_ACCESS_ definitions 2022-01-27 10:54:18 +01:00
acuuid.h ACPICA: acpi_help: Update UUID list 2020-10-08 18:03:55 +02:00
apei.h ACPI: APEI: explicit init of HEST and GHES in apci_init() 2023-09-19 12:20:28 +02:00
battery.h ACPI: battery: include linux/power_supply.h 2020-09-25 18:31:19 +02:00
button.h ACPI: button: move HIDs to acpi/button.h 2020-02-13 23:36:23 +01:00
cppc_acpi.h ACPI: CPPC: Do not prevent CPPC from working in the future 2022-08-21 15:16:20 +02:00
ghes.h ACPI: APEI: Fix integer overflow in ghes_estatus_pool_init() 2022-11-10 18:14:22 +01:00
hed.h
nfit.h
pcc.h
pdc_intel.h
processor.h x86: ACPI: fix CPU hotplug deadlock 2020-04-04 16:28:24 +02:00
reboot.h
video.h