From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1FAB1FF61E; Mon, 2 Jun 2025 15:11:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748877070; cv=none; b=VlAubzU8BWyhFKvgXMyQojDv40G3JNKEDoEYjuN3d9m6LVUYOwPcEIl5rglhQhX9XGT3UIpXKgc3YBW/SOtl6wJc5y1+xSliXLsZIZQdw4v6drSc2hAoq8c16TWzglwIpM+lgFUM4ik+8L0uJ5mhQ5EX++9olmXXKiwS5SzfJVA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748877070; c=relaxed/simple; bh=/4vE8x2rNwu3LhVcQ2SbZNAVx/VNUiKMsVlSI2Jyirg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IzszLICk+0jy0v2raK3gmjcuY44SmvkzllClEICmHFLeWl0QCOOvuBmKWlFGY+UtNVjuwuNzk4zVMLbaQqLW7w3tk9WYwWW6cINp2Rvau6Ravvc6ldtgib/1vJvwC+zFf1vc5Ogts5mxWQTtNgJbymaJ5irNb61GVnKGASH8cgs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nXVYcDtW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nXVYcDtW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C0D3C4CEEB; Mon, 2 Jun 2025 15:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748877070; bh=/4vE8x2rNwu3LhVcQ2SbZNAVx/VNUiKMsVlSI2Jyirg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nXVYcDtW8J/keYNtInkFG9A8b+8KiSbZokJ36+bmX+OAMcDSOOZUiykOoQ/XDsFtp Fc0rObQyYl4zXkvRgeR1/NN/MiyCPnYA+cCx72l7zsaGv4WIrds1sx7tDlTC30OCQm 5LfgHo2DpJavHxQh/lTEHgtWTFUQYQ/PhpWsclnY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xiaofei Tan , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 6.1 162/325] ACPI: HED: Always initialize before evged Date: Mon, 2 Jun 2025 15:47:18 +0200 Message-ID: <20250602134326.384344247@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134319.723650984@linuxfoundation.org> References: <20250602134319.723650984@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xiaofei Tan [ 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 Link: https://patch.msgid.link/20250212063408.927666-1-tanxiaofei@huawei.com [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/Kconfig | 2 +- drivers/acpi/hed.c | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index 473241b5193fa..596e96d3b3bdb 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -438,7 +438,7 @@ config ACPI_SBS the modules will be called sbs and sbshc. config ACPI_HED - tristate "Hardware Error Device" + bool "Hardware Error Device" help This driver supports the Hardware Error Device (PNP0C33), which is used to report some hardware errors notified via diff --git a/drivers/acpi/hed.c b/drivers/acpi/hed.c index 60a2939cde6c5..e8e9b1ac06b88 100644 --- a/drivers/acpi/hed.c +++ b/drivers/acpi/hed.c @@ -72,7 +72,12 @@ static struct acpi_driver acpi_hed_driver = { .notify = acpi_hed_notify, }, }; -module_acpi_driver(acpi_hed_driver); + +static int __init acpi_hed_driver_init(void) +{ + return acpi_bus_register_driver(&acpi_hed_driver); +} +subsys_initcall(acpi_hed_driver_init); MODULE_AUTHOR("Huang Ying"); MODULE_DESCRIPTION("ACPI Hardware Error Device Driver"); -- 2.39.5