Re: [RFC PATCH 5/5] x86/mce: Handle AMD threshold interrupt storms

From: Koralahalli Channabasappa, Smita
Date: Fri Apr 08 2022 - 03:48:59 EST


Hi,

On 4/6/22 5:44 PM, Luck, Tony wrote:

+ /* Return early on an interrupt storm */
+ if (this_cpu_read(bank_storm[bank]))
+ return;

Is you reasoning for early return that you already have plenty of
logged errors from this bank, so OK to skip additional processing
of this one?

The idea behind this was: Once, the interrupts are turned off by
track_cmci_storm() on a storm, (which is called before this "if
statement") logging and handling of subsequent corrected errors
will be taken care by machine_check_poll(). Hence, no need to
redo this again in the handler....

Let me know what are your thoughts on this?


-Tony