]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/mce/inject: Remove call to mce_notify_irq()
authorNikolay Borisov <nik.borisov@suse.com>
Tue, 25 Feb 2025 14:33:48 +0000 (16:33 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 26 Feb 2025 11:18:37 +0000 (12:18 +0100)
commit6447828875b7d768e4ef0f58765b4bd4e16bcf18
tree42d542fd45bb4a7d5567c3e203b8b5ce3a4d409d
parentd082ecbc71e9e0bf49883ee4afd435a77a5101b6
x86/mce/inject: Remove call to mce_notify_irq()

The call to mce_notify_irq() has been there since the initial version of
the soft inject mce machinery, introduced in

  ea149b36c7f5 ("x86, mce: add basic error injection infrastructure").

At that time it was functional since injecting an MCE resulted in the
following call chain:

  raise_mce()
    ->machine_check_poll()
        ->mce_log() - sets notfiy_user_bit
  ->mce_notify_user() (current mce_notify_irq) consumed the bit and called the
  usermode helper.

However, with the introduction of

  011d82611172 ("RAS: Add a Corrected Errors Collector")

the code got moved around and the usermode helper began to be called via the
early notifier mce_first_notifier() rendering the call in raise_local()
defunct as the mce_need_notify bit (ex notify_user) is only being set from the
early notifier.

Remove the noop call and make mce_notify_irq() static.

No functional changes.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20250225143348.268469-1-nik.borisov@suse.com
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/inject.c