From: sashiko-bot@kernel.org
To: "Ahmed Tiba" <ahmed.tiba@arm.com>
Cc: linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org,
devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v8 19/22] ACPI: APEI: introduce GHES CPER helper configuration
Date: Thu, 03 Dec 2026 14:19:18 +0000 [thread overview]
Message-ID: <sashiko-outbox-247946@kernel.org> (raw)
In-Reply-To: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-19-157aac88560b@arm.com>
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 <ahmed.tiba@arm.com>
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 += idle/
> obj-y += char/ipmi/
>
> obj-$(CONFIG_ACPI) += acpi/
> +obj-$(CONFIG_GHES_CPER_HELPERS) += acpi/apei/ghes_cper.o
>
> # 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=y and CONFIG_ACPI=n?
ghes_cper.c unconditionally includes <acpi/acpi_io.h>, which pulls in
<asm/acpi.h> and defines a fallback acpi_os_ioremap() calling
ioremap_cache(). On RISC-V with CONFIG_ACPI=n, ioremap_cache() is
undefined, breaking compilation.
On architectures outside arm64, loongarch, riscv, and x86, <asm/acpi.h>
does not exist at all. Guarding <acpi/acpi_io.h> 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
>
> +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) += apei.o
> -obj-$(CONFIG_ACPI_APEI_GHES) += ghes.o ghes_cper.o
> +obj-$(CONFIG_ACPI_APEI_GHES) += 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=y, 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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com?part=19
next prev parent reply other threads:[~2026-12-03 14:19 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 13:40 [PATCH v8 00/22] ACPI: APEI: share GHES CPER helpers and add DT FFH provider Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 01/22] ACPI: APEI: GHES: wait for RCU readers before unmapping Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 02/22] EDAC: ghes: avoid traversing the GHES device list Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 03/22] ACPI: APEI: GHES: track error status pool allocation size Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 04/22] ACPI: APEI: GHES: drain deferred work before freeing a source Ahmed Tiba
2026-12-03 14:00 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 05/22] ACPI: APEI: GHES: apply read-acknowledge masks directly Ahmed Tiba
2026-12-03 13:58 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 06/22] ACPI: APEI: GHES: revalidate the error status length after copying Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 07/22] ACPI: APEI: GHES: free an estatus cache entry when no slot is found Ahmed Tiba
2026-12-03 13:53 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 08/22] efi/cper: include architecture ACPI declarations directly Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 09/22] ACPI: APEI: GHES: allow the error status pool to be extended Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 10/22] ACPI: APEI: GHES: keep task work valid through error reporting Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 11/22] ACPI: APEI: GHES: reset FRU metadata for each CPER section Ahmed Tiba
2026-12-03 13:54 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 12/22] efi/cper: validate the remaining length before reading a section Ahmed Tiba
2026-12-03 13:52 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 13/22] ACPI: APEI: GHES: share macros via a private header Ahmed Tiba
2026-12-03 14:00 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 14/22] ACPI: APEI: GHES: move CPER read helpers Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 15/22] ACPI: APEI: GHES: move GHESv2 ack and alloc helpers Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 16/22] ACPI: APEI: GHES: move estatus cache helpers Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 17/22] ACPI: APEI: GHES: move vendor record helpers Ahmed Tiba
2026-12-03 14:04 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 18/22] ACPI: APEI: GHES: move CXL CPER helpers Ahmed Tiba
2026-12-03 14:09 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 19/22] ACPI: APEI: introduce GHES CPER helper configuration Ahmed Tiba
2026-12-03 14:19 ` sashiko-bot [this message]
2026-12-03 13:40 ` [PATCH v8 20/22] ACPI: APEI: share GHES CPER helpers Ahmed Tiba
2026-12-03 14:23 ` sashiko-bot
2026-12-03 13:40 ` [PATCH v8 21/22] dt-bindings: firmware: add arm,ras-cper Ahmed Tiba
2026-12-03 13:40 ` [PATCH v8 22/22] RAS: add firmware-first CPER provider Ahmed Tiba
2026-12-03 14:28 ` sashiko-bot
2026-12-05 9:54 ` kernel test robot
2026-12-05 9:54 ` kernel test robot
2026-12-03 14:28 ` [PATCH v8 00/22] ACPI: APEI: share GHES CPER helpers and add DT FFH provider sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-247946@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ahmed.tiba@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.