LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net> To: Alan Stern <stern@rowland.harvard.edu> Cc: Andre Tomt <andre@tomt.net>, Kernel development list <linux-kernel@vger.kernel.org>, USB list <linux-usb@vger.kernel.org> Subject: Re: USB OOPS 2.6.25-rc2-git1 Date: Wed, 20 Feb 2008 14:54:51 -0800 [thread overview] Message-ID: <200802201454.52125.david-b@pacbell.net> (raw) In-Reply-To: <Pine.LNX.4.44L0.0802201725070.24070-100000@iolanthe.rowland.org> On Wednesday 20 February 2008, Alan Stern wrote: > On Wed, 20 Feb 2008, David Brownell wrote: > > > On Wednesday 20 February 2008, Alan Stern wrote: > > > > ehci_hcd 0000:00:1d.7: IAA watchdog, lost IAA: status 8029 cmd 10021 > > > > > > lines in the log brings up some ideas that have been percolating in my > > > mind for a while. They have to do with the possibility of a race > > > between the watchdog routine and assertion of IAA. > > > > The curious bit IMO being STS_INT (0001), which should also have > > triggered an IRQ. Suggesting to me that the race might be lower > > level than that ... at the level of a conflict between the various > > mechanisms to ack irqs. > > Maybe it did trigger an IRQ. Inside the watchdog routine interrupts > are disabled. > > > > In fact, if the timing comes out just wrong then it's possible (on SMP > > > systems) for an IAA interrupt to arrive when the watchdog > > > routine has already started running. Then end_unlink_async() might get > > > called right at the start of a new IAA cycle, or when the reclaim list > > > is empty. > > > > The driver's spinlock should prevent that particular problem from > > appearing. > > I don't think so: > > CPU 0 CPU 1 > ----- ----- > Watchdog timer expires > Timer routine acquires spinlock > IAA IRQ arrives > ehci_irq tries to acquire > spinlock... There's another condition here, and another action. The condition is that ehci->reclaim must first be set; the action is to clear STS_IAA (and, given the previous patch, maybe IAAD). And this "either" is more concisely written as "call end_unlink_async()" (point made just for clarity). > Timer routine either sets > ehci->reclaim to NULL > or else starts a new > IAA cycle > Timer routine releases spinlock > and returns > ehci_irq acquires spinlock > and sees IAA is set Can only happen if a new IAA cycle was started by CPU0, and the IAA condition triggered that quickly. > Call end_unlink_async()! >
next prev parent reply other threads:[~2008-02-20 22:55 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-02-19 15:19 USB OOPS 2.6.25-rc2-git1 Andre Tomt 2008-02-19 18:49 ` David Brownell 2008-02-19 23:04 ` Andre Tomt 2008-02-20 0:32 ` David Brownell 2008-02-20 20:33 ` Andre Tomt 2008-02-20 21:16 ` Alan Stern 2008-02-20 21:56 ` David Brownell 2008-02-20 22:33 ` Alan Stern 2008-02-20 22:54 ` David Brownell [this message] 2008-02-21 16:15 ` Alan Stern 2008-03-05 4:15 ` David Brownell 2008-03-05 17:04 ` Alan Stern 2008-03-05 17:39 ` David Brownell 2008-02-21 15:56 ` Alan Stern 2008-02-25 9:13 ` David Brownell 2008-02-20 21:24 ` David Brownell 2008-02-21 0:25 ` Andre Tomt 2008-02-21 0:53 ` David Brownell 2008-02-19 19:31 ` Alan Stern 2008-02-19 21:58 ` Andre Tomt 2008-02-19 22:24 ` David Miller 2008-02-20 0:19 ` David Brownell 2008-02-20 1:40 ` David Miller 2008-02-20 16:10 ` Alan Stern 2008-02-19 22:28 ` Andre Tomt
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=200802201454.52125.david-b@pacbell.net \ --to=david-b@pacbell.net \ --cc=andre@tomt.net \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=stern@rowland.harvard.edu \ /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: linkBe 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; as well as URLs for NNTP newsgroup(s).