From: Ahmed Tiba <ahmed.tiba@arm.com>
To: Borislav Petkov <bp@alien8.de>
Cc: linux-acpi@vger.kernel.org, devicetree@vger.kernel.org,
tony.luck@intel.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, catalin.marinas@arm.com, will@kernel.org,
linux-arm-kernel@lists.infradead.org, rafael@kernel.org,
linux-doc@vger.kernel.org, Dmitry.Lamerov@arm.com,
Michael.Zhao2@arm.com
Subject: Re: [PATCH 00/12] ras: share firmware-first estatus handling
Date: Mon, 26 Jan 2026 10:58:41 +0000 [thread overview]
Message-ID: <9216ef1b-a3fb-4030-917d-c6141faa186a@arm.com> (raw)
In-Reply-To: <20260120111509.GAaW9jvTirZhL_pHTT@fat_crate.local>
On 20/01/2026 11:15, Borislav Petkov wrote:
> On Thu, Jan 15, 2026 at 12:17:17PM +0000, Ahmed Tiba wrote:
>> In drivers/acpi/apei/ghes.c, this subset of CPER handling
>> is already implemented using a number of helpers mostly named
>> estatus_* rather than cper_*.
>
> Which helpers are those?
>
> $ git grep -Ei "\Westatus_" drivers/acpi/apei/ghes.c
>
> doesn't give me a single one. Maybe I can't grep.
A simpler grep that catches both prefixes and suffixes is:
git grep -E "estatus_|_estatus" drivers/acpi/apei/ghes.c
>> The naming therefore originates from the existing GHES implementation, not
>> from a new abstraction.
>
> And even if, calling it a "estatus core" and making it a separate thing is
> just confusing and unnecessary.
Agreed. I’ll drop the “core” framing and keep it as a plain shared
compilation unit with exported helpers.
>> What I did was lift that existing estatus_* logic so it can be reused by a
>> non-ACPI provider, rather than duplicating the CPER handling
>> in a parallel DT path.
>
> Nothing wrong with that as long as you simply export common helpers and we
> agree on how they're going to be shared. We do stuff like that all the time.
If you have a reference series that demonstrates the preferred pattern
for doing this, I’d appreciate a pointer and will follow that approach.
>> Because the DT-based path still needs a clean way to call into the shared
>> logic without dragging in ACPI plumbing.
>
> Yes, carve them out in a separate compilation unit and select it in your DT
> glue and that's it. No need for a Kconfig item and calling it a "core" bla.
Works for me. The only question I had is where you’d prefer that unit to
live so it can be built without pulling in ACPI/APEI (not gated by
CONFIG_ACPI), while still staying under the ACPI/APEI maintainer umbrella.
Would you prefer to:
1- Keep the shared unit under drivers/acpi/apei/ but make it buildable
independent of CONFIG_ACPI, and have both GHES + DT select it.
2- Place the shared unit somewhere APEI-adjacent but not ACPI-gated so
it remains reviewed by the same folks, and have GHES/DT both link it.
Thanks,
Ahmed
prev parent reply other threads:[~2026-01-26 11:00 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-17 11:28 [PATCH 00/12] ras: share firmware-first estatus handling Ahmed Tiba
2025-12-17 11:28 ` [PATCH 01/12] ras: add estatus core interfaces Ahmed Tiba
2025-12-17 11:28 ` [PATCH 02/12] ras: add estatus core implementation Ahmed Tiba
2025-12-18 15:42 ` Mauro Carvalho Chehab
2025-12-19 14:35 ` Ahmed Tiba
2025-12-21 19:31 ` kernel test robot
2025-12-17 11:28 ` [PATCH 03/12] ras: add estatus vendor handling and processing Ahmed Tiba
2025-12-18 16:04 ` Mauro Carvalho Chehab
2025-12-19 14:49 ` Ahmed Tiba
2025-12-19 15:30 ` Mauro Carvalho Chehab
2025-12-19 18:11 ` Ahmed Tiba
2025-12-22 8:13 ` Mauro Carvalho Chehab
2025-12-29 15:01 ` Ahmed Tiba
2025-12-21 23:39 ` kernel test robot
2025-12-17 11:28 ` [PATCH 04/12] ras: add estatus queuing and IRQ/NMI handling Ahmed Tiba
2025-12-17 11:28 ` [PATCH 05/12] ras: flesh out estatus processing core Ahmed Tiba
2025-12-17 11:28 ` [PATCH 06/12] efi/cper: adopt estatus iteration helpers Ahmed Tiba
2025-12-17 11:28 ` [PATCH 07/12] ghes: prepare estatus hooks for shared handling Ahmed Tiba
2025-12-17 11:28 ` [PATCH 08/12] ghes: add estatus provider ops Ahmed Tiba
2025-12-17 11:28 ` [PATCH 09/12] ghes: route error handling through shared estatus core Ahmed Tiba
2025-12-17 11:28 ` [PATCH 10/12] dt-bindings: ras: document estatus provider Ahmed Tiba
2025-12-17 11:41 ` Krzysztof Kozlowski
2025-12-17 17:49 ` Ahmed Tiba
2025-12-18 6:48 ` Krzysztof Kozlowski
2025-12-18 10:22 ` Ahmed Tiba
2025-12-18 10:31 ` Ahmed Tiba
2025-12-19 9:53 ` Krzysztof Kozlowski
2025-12-19 10:47 ` Ahmed Tiba
2025-12-17 11:28 ` [PATCH 11/12] ras: add DeviceTree estatus provider driver Ahmed Tiba
2025-12-18 12:13 ` Will Deacon
2025-12-18 13:42 ` Ahmed Tiba
2025-12-18 15:19 ` Will Deacon
2025-12-19 9:02 ` Ahmed Tiba
2025-12-19 13:00 ` Will Deacon
2025-12-19 17:21 ` Ahmed Tiba
2026-01-05 21:09 ` Will Deacon
2025-12-17 11:28 ` [PATCH 12/12] doc: ras: describe firmware-first estatus flow Ahmed Tiba
2025-12-21 1:35 ` [PATCH 00/12] ras: share firmware-first estatus handling Borislav Petkov
2025-12-29 11:54 ` Ahmed Tiba
2026-01-14 14:15 ` Borislav Petkov
2026-01-15 12:17 ` Ahmed Tiba
2026-01-20 11:15 ` Borislav Petkov
2026-01-26 10:58 ` Ahmed Tiba [this message]
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=9216ef1b-a3fb-4030-917d-c6141faa186a@arm.com \
--to=ahmed.tiba@arm.com \
--cc=Dmitry.Lamerov@arm.com \
--cc=Michael.Zhao2@arm.com \
--cc=bp@alien8.de \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=tony.luck@intel.com \
--cc=will@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox