public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Krishnakumar B <kitty@cse.wustl.edu>,
	Johannes Erdfelt <johannes@erdfelt.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Multiple OOPS with Linux-2.5.40
Date: Tue, 1 Oct 2002 19:17:13 -0700	[thread overview]
Message-ID: <20021002021713.GC11453@kroah.com> (raw)
In-Reply-To: <15770.19197.730535.272727@samba.doc.wustl.edu>

On Tue, Oct 01, 2002 at 08:25:17PM -0500, Krishnakumar B wrote:
> hcd-pci.c: uhci-hcd @ 00:1f.2, Intel Corp. 82801AA USB
> hcd-pci.c: irq 19, io base 0000ff80
> hcd.c: new USB bus registered, assigned bus number 1
> hub.c: USB hub found at 0
> hub.c: 2 ports detected
> Debug: sleeping function called from illegal context at /u/scratch/downloads/kernel/linux-2.5.40/include/asm/semaphore.h:119
> df675f70 e2886692 e28926c0 00000077 df675fa8 df808760 df664f88 df66e0d0 
>        df674000 dfb36100 00000286 df674000 df674000 df675fc0 df674000 e28869f5 
>        dfa1b860 dfb36100 df674000 df81df34 00000000 dfa1b860 c0118260 00000000 
> Call Trace:
>  [<e2886692>]usb_hub_events+0x82/0x3b0 [usbcore]
>  [<e28926c0>].rodata.str1.32+0xd20/0x28e2 [usbcore]
>  [<e28869f5>]usb_hub_thread+0x35/0x100 [usbcore]
>  [<c0118260>]default_wake_function+0x0/0x40
>  [<e28869c0>]usb_hub_thread+0x0/0x100 [usbcore]
>  [<c0105665>]kernel_thread_helper+0x5/0x10

I think this is due to the following lines of code in
drivers/usb/core/hub.c:
		spin_lock_irqsave(&hub_event_lock, flags);

		....

		down(&hub->khubd_sem); /* never blocks, we were on list */
		spin_unlock_irqrestore(&hub_event_lock, flags);

Johannes, any reason for the down() when we have a spinlock held?

thanks,

greg k-h

  reply	other threads:[~2002-10-02  2:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-02  1:25 Multiple OOPS with Linux-2.5.40 Krishnakumar B
2002-10-02  2:17 ` Greg KH [this message]
2002-10-02  2:24   ` Johannes Erdfelt

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=20021002021713.GC11453@kroah.com \
    --to=greg@kroah.com \
    --cc=johannes@erdfelt.com \
    --cc=kitty@cse.wustl.edu \
    --cc=linux-kernel@vger.kernel.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