From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307559; b=eS6RMCpjr06COHJH8pMic9JHoJ9QdFDYCiaNHYOC1GDdEmloUgyORaFGq4CDJFxlpqEE Mii4Oc7aNaEtyAQhyeYMizcciV2DqszyDOLTlI7Cvt34UL2G4MBppmRfdk7wGXM+4tH/0 VKRO8nlFhBmOLqc8UZhwS4a7JCwOxSMpvpkGMtNi/AhndrsNVwmqTFpdfcfX2PRv1GYYl K/w3xBdpfzqZx6/5ztY67nyyN4FGAiRuKBFZBDBUsOG5T/1Vo7O+OeSsRXPwj9PztvO6m rVNcGhZsr27Y5SUhGIrdU6Fj7qtbFBphVzirkCYzgGwSUkwC/mcB9z4QeTgyLy+hzTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796307559; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ACMUAcGK85s2tVoAEL8pqL6/OqM2qkkCKgQUBhdUaZc=; b=PnEdZDr+CddEGC/cm26HF8zO0h8w5gKVl1Pu16E+oTWxWM7bprqOGrPCKku75mM2kKFG +j0VXSDTIfQSAZ4Ku8YK/RBK3zNMLvSczOK8pfUB9611AU1hOSHsPaVmFtC9PI1ZfgOwQ aqO+EJ9AEoqVPwtNX0XfvWFpMZJDRMG4zbWkjJ6YrVohwCLba2N8vs9LDc37z6ovrHj4X /ZYHmIIKBvcAb2sFZgTs8W14IW0vkxQEkfviqhaeApZgspBb0eJRfiFBZDNVZO5w/WVLD hprtlwLfK69owcpH+EibzPNJQhbvvK1QvHmsLhHl1f+zVty8mL9Y3afS/a0vwoA9ygQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WuPQifyr; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B87C606A322; Thu, 3 Dec 2026 14:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WuPQifyr Received: by smtp.kernel.org (Postfix) with ESMTPSA id 633071F000C1; Thu, 3 Dec 2026 14:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796307558; bh=ACMUAcGK85s2tVoAEL8pqL6/OqM2qkkCKgQUBhdUaZc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=WuPQifyrblVFoNJEnOmxAI3LFw2gWz3TnNOqTxhBCDgn32XOv3McwI0hlo0ej8cLQ yzr2Aw6imc+3VKsIshSpIIW+xsVHPLNUYNNURRBYK5jmonfY2kRz+OCZMLDdQ517z2 FwO/g3qMMZFiGCwEyCc1y4k2S1/9MGXd2PKNpZ31nUw+jsAtYQYAGc9IEqgwUx/QyT 8MjJU+p00Y4Fw6Wr8GJ8rX0Tfy++FYwF242CqnqE5VU0ZNUsq6FNt4phuH8rGf4O7d J/y4zc8uYNS4SdT5Yh7F4hEgWMeQQgMMpzpvU/A2jOKoBrpgdkdNuTYgaqruRXzpsl Id2H11b+AY4fg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 19/22] ACPI: APEI: introduce GHES CPER helper configuration Reply-To: sashiko-reviews@lists.linux.dev To: "Ahmed Tiba" Cc: linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-19-157aac88560b@arm.com> References: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com> <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-19-157aac88560b@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:19:18 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] ACPI: APEI: GHES_CPER_HELPERS Kconfig hidden on non-ACPI architectures - [Medium] ACPI: APEI: unconditional acpi_io.h include breaks non-ACPI builds - [Low] ACPI: APEI: direct ghes_cper.o build in drivers/Makefile breaks Kbuild -- commit 99a3ea65531ce94ebb1d728428b0a385d9b7dd27 Author: Ahmed Tiba ACPI: APEI: introduce GHES CPER helper configuration This commit adds a GHES_CPER_HELPERS Kconfig symbol selected by ACPI_APEI_GHES, builds ghes_cper.o from drivers/Makefile under that symbol, and updates the public declarations in ghes.h and cxl/event.h to follow it. > diff --git a/drivers/Makefile b/drivers/Makefile > index 0841ea851847e..27a664cb45ea7 100644 > --- a/drivers/Makefile > +++ b/drivers/Makefile > @@ -31,6 +31,7 @@ obj-y +=3D idle/ > obj-y +=3D char/ipmi/ > =20 > obj-$(CONFIG_ACPI) +=3D acpi/ > +obj-$(CONFIG_GHES_CPER_HELPERS) +=3D acpi/apei/ghes_cper.o > =20 > # PnP must come after ACPI since it will eventually need to check if acpi > # was used and do nothing if so [Severity: Medium] Can ghes_cper.c build when CONFIG_GHES_CPER_HELPERS=3Dy and CONFIG_ACPI=3Dn? ghes_cper.c unconditionally includes , which pulls in and defines a fallback acpi_os_ioremap() calling ioremap_cache(). On RISC-V with CONFIG_ACPI=3Dn, ioremap_cache() is undefined, breaking compilation. On architectures outside arm64, loongarch, riscv, and x86, does not exist at all. Guarding under CONFIG_ACPI_APEI would also require guarding apei_unmap_generic_address() in apei-internal.h or relocating cper_estatus_len(). > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > index fa3eb52b22cd8..3cec674cf788d 100644 > --- a/drivers/acpi/Kconfig > +++ b/drivers/acpi/Kconfig > @@ -6,6 +6,10 @@ > config ARCH_SUPPORTS_ACPI > bool > =20 > +config GHES_CPER_HELPERS > + bool > + select UEFI_CPER > + > menuconfig ACPI > bool "ACPI (Advanced Configuration and Power Interface) Support" > depends on ARCH_SUPPORTS_ACPI [Severity: Medium] Is GHES_CPER_HELPERS visible on non-ACPI architectures when defined in drivers/acpi/Kconfig? drivers/acpi/Kconfig is only sourced by arm64, loongarch, riscv, and x86, unlike UEFI_CPER in drivers/firmware/efi/Kconfig which is sourced on all architectures. When a globally sourced Kconfig such as drivers/ras/Kconfig selects GHES_CPER_HELPERS on an architecture like 32-bit ARM, Kconfig treats the symbol as undefined, omits CONFIG_GHES_CPER_HELPERS and CONFIG_UEFI_CPER, and leaves the build with link failures for the missing helper objects. Moving GHES_CPER_HELPERS to a globally sourced file such as drivers/firmware/efi/Kconfig (or restricting consumers to ARCH_SUPPORTS_ACPI) would avoid this. [ ... ] > diff --git a/drivers/acpi/apei/Makefile b/drivers/acpi/apei/Makefile > index f57f3b009d8e8..66588d6be56fe 100644 > --- a/drivers/acpi/apei/Makefile > +++ b/drivers/acpi/apei/Makefile > @@ -1,6 +1,6 @@ > # SPDX-License-Identifier: GPL-2.0 > obj-$(CONFIG_ACPI_APEI) +=3D apei.o > -obj-$(CONFIG_ACPI_APEI_GHES) +=3D ghes.o ghes_cper.o > +obj-$(CONFIG_ACPI_APEI_GHES) +=3D ghes.o [Severity: Low] Does moving ghes_cper.o out of drivers/acpi/apei/Makefile into drivers/Makefile break Kbuild subdirectory and single-target builds? Subdirectory builds (make drivers/acpi/ or make drivers/acpi/apei/) will now skip ghes_cper.o. Also, full builds from drivers/Makefile set KBUILD_MODFILE to drivers/ghes_cper instead of drivers/acpi/apei/ghes_cper. When CONFIG_ACPI=3Dy, make drivers/acpi/apei/ghes_cper.o delegates into drivers/acpi/apei/Makefile where ghes_cper.o is no longer in real-obj-y, so is-kernel-object evaluates to empty and silently drops instrumentation flags such as KASAN and UBSAN. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-topics-ahm= tib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com?part=3D19