Re: [PATCH 4/5] x86/mce: Fix all mce notifiers to update the mce->handled bitmask

From: Borislav Petkov
Date: Fri Feb 14 2020 - 04:02:49 EST


On Thu, Feb 13, 2020 at 03:08:07PM -0800, Luck, Tony wrote:
> Ok. We don't have code that does this yet. If we need some, I'll
> make sure to do the weed out before it gets to the notifier.

... which would make running the CEC hook *before* running the notifiers
the easiest thing. Hacking in "did-CEC-handle-it" logic in the rest of
the chain is just going to be painful so the best would be IMO: if the
CEC decided to consume it, it won't even go down the notifiers.

Just like the added crap^W value firmware-first thing does and we should
learn from it. :-)

--
Regards/Gruss,
Boris.

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