All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@osdl.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	linux-kernel@vger.kernel.org, tglx@linutronix.de,
	torvalds@osdl.org
Subject: Re: [RFC][PATCH] request_irq(...,SA_BOOTMEM);
Date: Mon, 5 Jun 2006 11:01:19 +0200	[thread overview]
Message-ID: <20060605090119.GA849@elte.hu> (raw)
In-Reply-To: <20060605012405.ac17f918.akpm@osdl.org>


* Andrew Morton <akpm@osdl.org> wrote:

> And yes, the mutex code will (with debug enabled) unconditionally 
> enable interrupts.  ppc64 tends to oops when this happens, in the 
> timer handler (so it'll be intermittent...)

hm, i sent a patch to fix that, long time ago.

> But looking at 
> work-around-ppc64-bootup-bug-by-making-mutex-debugging-save-restore-irqs.patch 
> I realise I don't understand it.  We only go into the irq-enabling 
> code in the case of contention, and there cannot be contention in this 
> case?

in the debug case we go into the 'slowpath' all the time - so that we 
can do the debug checks under the mutex lock.

if we get real contention then we have a might_sleep() check that will 
catch that.

i'd suggest to push 
work-around-ppc64-bootup-bug-by-making-mutex-debugging-save-restore-irqs.patch 
upstream - i thought we agreed that while it's a bit hacky and slows the 
mutex code down a bit, it's not practical right now to forbid 
uncontended mutex_lock() in early init code?

	Ingo

      parent reply	other threads:[~2006-06-05  9:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-05  5:40 [RFC][PATCH] request_irq(...,SA_BOOTMEM); Benjamin Herrenschmidt
2006-06-05  7:08 ` Benjamin Herrenschmidt
2006-06-05  7:31   ` Andrew Morton
2006-06-05  7:48     ` Benjamin Herrenschmidt
2006-06-05  8:24       ` Andrew Morton
2006-06-05  8:49         ` Benjamin Herrenschmidt
2006-06-05  8:57           ` Andrew Morton
2006-06-05  9:01         ` Ingo Molnar [this message]

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=20060605090119.GA849@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@osdl.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.