]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: HED: Always initialize before evged
authorXiaofei Tan <tanxiaofei@huawei.com>
Wed, 12 Feb 2025 06:34:08 +0000 (14:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:17 +0000 (11:13 +0200)
commit4e29f8a92038f04da088c658867b87cf735e6d35
tree2bebf7e87dbf4d02685db451bce67d144d7e193c
parent077474fe59d4f3ea18ad14d5ede6f9ec6ed59ce7
ACPI: HED: Always initialize before evged

[ Upstream commit cccf6ee090c8c133072d5d5b52ae25f3bc907a16 ]

When the HED driver is built-in, it initializes after evged because they
both are at the same initcall level, so the initialization ordering
depends on the Makefile order.  However, this prevents RAS records
coming in between the evged driver initialization and the HED driver
initialization from being handled.

If the number of such RAS records is above the APEI HEST error source
number, the HEST resources may be exhausted, and that may affect
subsequent RAS error reporting.

To fix this issue, change the initcall level of HED to subsys_initcall
and prevent the driver from being built as a module by changing ACPI_HED
in Kconfig from "tristate" to "bool".

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://patch.msgid.link/20250212063408.927666-1-tanxiaofei@huawei.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/Kconfig
drivers/acpi/hed.c