lkml.org 
[lkml]   [2005]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] NMI/CMOS RTC race fix for x86-64
Andi Kleen wrote:

>Corey Minyard <minyard@acm.org> writes:
>
>
>
>>This patch fixes a race between the CMOS clock setting and the NMI
>>code. The NMI code indiscriminatly sets index registers and values
>>in the same place the CMOS clock is set. If you are setting the
>>CMOS clock and an NMI occurs, Bad values could be written to or
>>read from the CMOS RAM, or the NMI operation might not occur
>>correctly.
>>
>>
>>
>
>In general you should send all x86-64 patches to me. I would have
>eventually merged it from i386 anyways if it was good.
>
>But in this case it isnt. Instead of all this complexity
>just remove the NMI reassert code from the NMI handler.
>It is oudated and mostly useless on modern systems anyways.
>
>
"mostly useless" and "completely useless" are two different things.

If you run with nmi_watchdog=0, then this code actually does something
useful, which is what I assume you mean by "mostly useless". I'm all for
removing useless code, so I'd be fine with just removing the code. But
something really needs to be done.

Do you want me to submit a patch that simply removes this?

-Corey

>Since the NMI watchdog runs regularly even if an NMI is missed
>it will be eventually handled. And even when it doesn't run
>it doesn't matter much because NMI does nothing essential.
>
>-Andi
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.051 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site