[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250715082939.GAaHYRc3Yn49jyvYzc@fat_crate.local>
Date: Tue, 15 Jul 2025 10:29:39 +0200
From: Borislav Petkov <bp@...en8.de>
To: "Luck, Tony" <tony.luck@...el.com>
Cc: Breno Leitao <leitao@...ian.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Len Brown <lenb@...nel.org>, James Morse <james.morse@....com>,
"Moore, Robert" <robert.moore@...el.com>,
"linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"acpica-devel@...ts.linux.dev" <acpica-devel@...ts.linux.dev>,
"kernel-team@...a.com" <kernel-team@...a.com>
Subject: Re: [PATCH] ghes: Track number of recovered hardware errors
On Mon, Jul 14, 2025 at 03:21:44PM -0700, Luck, Tony wrote:
> So what about something like:
>
> enum recovered_error_sources {
> ERR_GHES,
> ERR_MCE,
> ERR_AER,
> ...
> ERR_NUM_SOURCES
> };
>
> static struct recovered_error_info {
> int num_recovered_errors;
> time64_t last_recovered_error_timestamp;
> } recovered_error_info[ERR_NUM_SOURCES];
Too many "recovered" :-)
> A count is just a hint. A count with a timestamp that is shortly
> before a crash is a smoking gun.
All good thoughts... from where I'm standing right now, though, it looks to me
like we're wagging the dog: inventing issues and thinking of which solution
would fit them best. :-)
We have all of that info in rasdaemon. If the machine explodes, one can simply
read out its database from the core file.
And if you don't run rasdaemon, you can read out dmesg from the vmcore where
the errors should have been dumped anyway.
So there's no need to add anything new to the kernel.
IMNSVHO.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists