Re: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Thursday, September 4, 2008 - 7:56 am

* Prarit Bhargava <prarit@redhat.com> wrote:


i'd much rather attack this general problem from this angle:

  static inline unsigned char get_nmi_reason(void)
  {
          return inb(0x61);
  }

that port 61H read is both arcane (on modern chipsets) and broken on 
multiple levels. It's racy and SMP unsafe to begin with, if there's any 
mixture of intentional cross-CPU or CPU self-generated NMIs mixed with 
chipset generated NMIs.

One possible approach would be to get rid of it, and to perhaps register 
a low-priority die notifier on systems where we know port 61 
reads+writes to be safe and desired. Modern systems will emit MCEs in 
most cases anyway, not NMIs.

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Prarit Bhargava, (Thu Sep 4, 6:07 am)
Re: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Peter Zijlstra, (Thu Sep 4, 6:37 am)
Re: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Prarit Bhargava, (Thu Sep 4, 7:29 am)
Re: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Ingo Molnar, (Thu Sep 4, 7:56 am)
Re: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, H. Peter Anvin, (Thu Sep 4, 8:12 am)
Re: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Vivek Goyal, (Thu Sep 4, 12:08 pm)
RE: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Mingarelli, Thomas, (Thu Sep 4, 1:01 pm)
RE: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Mingarelli, Thomas, (Thu Sep 4, 1:21 pm)
RE: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback, Mingarelli, Thomas, (Thu Sep 4, 2:05 pm)