Re: [PATCH v1 09/19] ACPI: extlog: Report errors independently of RAS consumers

From: Borislav Petkov

Date: Tue Nov 24 2026 - 00:01:45 EST


On Tue, Nov 17, 2026 at 12:10:19PM +0100, Pierre Gondois wrote:
> The RAS consumer check removes:
> - trace events when no daemon is registered
> - CPER console report when one is registered
> This ties tracing, PCIe recovery and CXL protocol delivery to daemon
> registration, and can hide a fatal record when userspace cannot process
> its trace event before a reset.
>
> Remove the RAS consumer registration condition and:
> - always emit trace events
> - print the CPER record only for CPER_SEV_FATAL
>
> [1] additionally suggested to have a cmdline parameter to dynamically
> update the above policy. Keep a simple hard coded policy for now.
>
> [1]
> https://lore.kernel.org/lkml/20240521183913.GGZkzqUSN1hdE-_OEY@fat_crate.local/
>
> Signed-off-by: Pierre Gondois <pierre.gondois@xxxxxxx>
> ---
> drivers/acpi/acpi_extlog.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/acpi/acpi_extlog.c b/drivers/acpi/acpi_extlog.c
> index e09ea571c32f5..16a16b12d8ccf 100644
> --- a/drivers/acpi/acpi_extlog.c
> +++ b/drivers/acpi/acpi_extlog.c
> @@ -208,10 +208,9 @@ static int extlog_print(struct notifier_block *nb, unsigned long val,
> if (cper_estatus_len(tmp) > ELOG_ENTRY_LEN || cper_estatus_check(tmp))
> return NOTIFY_DONE;
>
> - if (!ras_userspace_consumers()) {
> + /* Print fatal records regardless of RAS consumer registration. */
> + if (tmp->error_severity == CPER_SEV_FATAL)
> print_extlog_rcd(NULL, tmp, cpu);
> - goto out;
> - }

So after rereading that link, we had this conversation back then about
reorganizing and reworking RAS error reporting and Dan (may he rest in peace)
wanted to unify and dump all the old cruft - especially since
ras_userspace_consumers() is not really used anymore. Apparently.

But what else uses it?

This is something other luserspace probably relies on and we should probably
do our due diligence and slowly deprecate it with a warning splat but not just
whack it unceremoniously.

And what I'm missing in all that effort is the big picture. What are you even
trying to achieve here, what's the point of all that gymnastics?

Unify GHES and acpi_extlog? That's it?

I'm sure there's much more to it than just a plain unification.

Probably CXL-something is going to use this too eventually?

But I should not be guessing - I should be reading about the big picture
somewhere. No?

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette