Re: [EXTERNAL] Re: [PATCH v2] x86/mce: Report unavailable MCE support at informational level

From: Borislav Petkov

Date: Thu Dec 03 2026 - 19:38:20 EST


On Fri, Dec 04, 2026 at 12:14:38AM +0000, Dexuan Cui wrote:
> Some internal monitoring tool flags all pr_err() messages in dmesg as
> failures. When I looked into "mce: Unable to init MCE device (rc: -5)",
> I felt using pr_info() for the unavailable case made sense.

Put that in your commit message. Because I have no clue why your patch exists.

And drop the

pr_info("MCE is unavailable\n");

print.

No need to say anything there - either the user knows she disabled MCE or
machines without X86_FEATURE_MCA are outdated junk which no one uses. Then
your tool won't have anything to ignore and everyone's happy.

But srsly, to go to that effort to patch the kernel instead of teaching your
internal tool to ignore prints, that does sound like your tool needs to be
taught to ignore prints faster.

Because you've probably found yourself in a whack'a'mole game already and will
soon realize that wagging the dog simply doesn't cut it.

But ok, we can do it this one time. :)

Thx.

--
Regards/Gruss,
Boris.

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