public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Peter Zijlstra <peterz@infradead.org>
Cc: heukelum@fastmail.fm, linux-kernel@vger.kernel.org, ak@suse.de,
	Dhaval Giani <dhaval@linux.vnet.ibm.com>
Subject: Re: [PATCH 22/24] i386: add TRACE_IRQS_OFF for the nmi
Date: Mon, 12 Jan 2009 19:39:04 +0100	[thread overview]
Message-ID: <20090112183904.GC12249@elte.hu> (raw)
In-Reply-To: <1231780911.4371.196.camel@laptop>


* Peter Zijlstra <peterz@infradead.org> wrote:

> On Tue, 2008-09-09 at 21:56 +0200, heukelum@fastmail.fm wrote:
> > From: Alexander van Heukelum <heukelum@fastmail.fm>
> > 
> > At this point interrupts are off, so let's inform the tracing
> > code of that fact before calling into C.
> 
> Sorry but this is an obvious dud, lockdep (and thus the irq state
> tracer) aren't nmi safe.
> 
> Ingo, please revert, as people are already seeing lockdep warnings due
> to this.

done - reverted it in tip/x86/urgent, see the commit below. Is that all 
that we need, wasnt there a 64-bit side done too?

	Ingo

--------------->
>From e8cea892dff8e3ebed42954c46730309b617196f Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@elte.hu>
Date: Mon, 12 Jan 2009 19:36:59 +0100
Subject: [PATCH] Revert "i386: add TRACE_IRQS_OFF for the nmi"

This reverts commit e0c7317557c8fc8eacf611e30c2a80f4e24e47a3.

This patch was wrong, as lockdep (and thus the irq state tracer)
aren't nmi safe. People are already seeing lockdep warnings due
to this.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/kernel/entry_32.S |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
index d6f0490..4646902 100644
--- a/arch/x86/kernel/entry_32.S
+++ b/arch/x86/kernel/entry_32.S
@@ -1203,7 +1203,6 @@ nmi_stack_correct:
 	pushl %eax
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
-	TRACE_IRQS_OFF
 	xorl %edx,%edx		# zero error code
 	movl %esp,%eax		# pt_regs pointer
 	call do_nmi
@@ -1244,7 +1243,6 @@ nmi_espfix_stack:
 	pushl %eax
 	CFI_ADJUST_CFA_OFFSET 4
 	SAVE_ALL
-	TRACE_IRQS_OFF
 	FIXUP_ESPFIX_STACK		# %eax == %esp
 	xorl %edx,%edx			# zero error code
 	call do_nmi

  reply	other threads:[~2009-01-12 18:39 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09 19:55 [RFC/PATCH] i386: handle all exceptions with interrupts off initially heukelum
2008-09-09 19:55 ` [PATCH 1/24] i386: remove kprobes' restore_interrupts in favour of conditional_sti heukelum
2008-09-09 19:55   ` [PATCH 2/24] i386: prepare to convert exceptions to interrupts heukelum
2008-09-09 19:55     ` [PATCH 3/24] i386: convert hardware exception 0 to an interrupt gate heukelum
2008-09-09 19:55       ` [PATCH 4/24] i386: expand exception 3 DO_TRAP macro heukelum
2008-09-09 19:55         ` [PATCH 5/24] i386: convert hardware exception 4 to an interrupt gate heukelum
2008-09-09 19:56           ` [PATCH 6/24] i386: convert hardware exception 5 " heukelum
2008-09-09 19:56             ` [PATCH 7/24] i386: convert hardware exception 6 " heukelum
2008-09-09 19:56               ` [PATCH 8/24] i386: convert hardware exception 7 " heukelum
2008-09-09 19:56                 ` [PATCH 9/24] i386: convert hardware exception 9 " heukelum
2008-09-09 19:56                   ` [PATCH 10/24] i386: convert hardware exception 10 " heukelum
2008-09-09 19:56                     ` [PATCH 11/24] i386: convert hardware exception 11 " heukelum
2008-09-09 19:56                       ` [PATCH 12/24] i386: convert hardware exception 12 " heukelum
2008-09-09 19:56                         ` [PATCH 13/24] i386: convert hardware exception 13 " heukelum
2008-09-09 19:56                           ` [PATCH 14/24] i386: convert hardware exception 15 " heukelum
2008-09-09 19:56                             ` [PATCH 15/24] i386: convert hardware exception 16 " heukelum
2008-09-09 19:56                               ` [PATCH 16/24] i386: convert hardware exception 17 " heukelum
2008-09-09 19:56                                 ` [PATCH 17/24] i386: convert hardware exception 18 " heukelum
2008-09-09 19:56                                   ` [PATCH 18/24] i386: convert hardware exception 19 " heukelum
2008-09-09 19:56                                     ` [PATCH 19/24] i386: remove temporary DO_TRAP macros, expanding the last one used heukelum
2008-09-09 19:56                                       ` [PATCH 20/24] i386: add TRACE_IRQS_OFF to entry_32.S in 'error_code' heukelum
2008-09-09 19:56                                         ` [PATCH 21/24] i386: add TRACE_IRQS_OFF for exception 1 (debug) heukelum
2008-09-09 19:56                                           ` [PATCH 22/24] i386: add TRACE_IRQS_OFF for the nmi heukelum
2008-09-09 19:56                                             ` [PATCH 23/24] i386: add TRACE_IRQS_OFF for the exception 3 (int3) heukelum
2008-09-09 19:56                                               ` [PATCH 24/24] i386: trace_hardirqs_fixup should now not be necessary: irqs are off heukelum
2009-01-12 17:21                                             ` [PATCH 22/24] i386: add TRACE_IRQS_OFF for the nmi Peter Zijlstra
2009-01-12 18:39                                               ` Ingo Molnar [this message]
2009-01-12 18:43                                                 ` Peter Zijlstra
2009-01-12 20:50                                                   ` Alexander van Heukelum
2008-09-10  3:27 ` [RFC/PATCH] i386: handle all exceptions with interrupts off initially H. Peter Anvin
2008-09-10  5:53   ` Ingo Molnar
2008-09-10  5:59     ` H. Peter Anvin
2008-09-10  7:00       ` Ingo Molnar
2008-09-10  7:24         ` Ingo Molnar
2008-09-10  9:36           ` Alexander van Heukelum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090112183904.GC12249@elte.hu \
    --to=mingo@elte.hu \
    --cc=ak@suse.de \
    --cc=dhaval@linux.vnet.ibm.com \
    --cc=heukelum@fastmail.fm \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox