From: Mark Lord <lkml@rtr.ca>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <david-b@pacbell.net>,
pavel@suse.cz, oliver@neukum.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org, jikos@suse.cz, gregkh@suse.de,
akpm@linux-foundation.org
Subject: Re: [PATCH] usb ehci_iaa_watchdog fix
Date: Wed, 02 Apr 2008 13:34:56 -0400 [thread overview]
Message-ID: <47F3C3C0.5080705@rtr.ca> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0804021244230.5042-100000@iolanthe.rowland.org>
Alan Stern wrote:
> On Wed, 2 Apr 2008, Mark Lord wrote:
>
>> Yup, that does indeed cure it.
>> Here's a patch, in case you didn't already generate one:
>>
>> Signed-off-by: Mark Lord <mlord@pobox.com>
>>
>> --- rc8/drivers/usb/host/ehci-hcd.c 2008-03-11 11:18:40.000000000 -0400
>> +++ linux/drivers/usb/host/ehci-hcd.c 2008-04-02 12:16:40.000000000 -0400
>> @@ -289,9 +289,7 @@
>> * (a) SMP races against real IAA firing and retriggering, and
>> * (b) clean HC shutdown, when IAA watchdog was pending.
>> */
>> - if (ehci->reclaim
>> - && !timer_pending(&ehci->iaa_watchdog)
>> - && HC_IS_RUNNING(ehci_to_hcd(ehci)->state)) {
>> + if (ehci->reclaim && !timer_pending(&ehci->iaa_watchdog)) {
>> u32 cmd, status;
>>
>> /* If we get here, IAA is *REALLY* late. It's barely
>
> Okay, I'm puzzled. How could this make any difference?
> ehci_bus_suspend() calls end_unlink_async() anyway, whenever reclaim is
> set.
>
> Is the real problem that it does so before calling ehci_work() instead
> of after calling ehci_halt()?
>
> Mark, if you want to experiment some more, try reverting your patch
> above and moving:
..
Here's what I did, and yes, this also works. Pick one.
This patch, suggested by Alan Stern, fixes the hung USB issues
on my notebook from suspend/resume cycles.
Signed-off-by: Mark Lord <mlord@pobox.com>
--- rc8/drivers/usb/host/ehci-hub.c 2008-03-11 11:18:40.000000000 -0400
+++ linux/drivers/usb/host/ehci-hub.c 2008-04-02 13:28:50.000000000 -0400
@@ -135,8 +135,6 @@
hcd->state = HC_STATE_QUIESCING;
}
ehci->command = ehci_readl(ehci, &ehci->regs->command);
- if (ehci->reclaim)
- end_unlink_async(ehci);
ehci_work(ehci);
/* Unlike other USB host controller types, EHCI doesn't have
@@ -180,6 +178,9 @@
ehci_halt (ehci);
hcd->state = HC_STATE_SUSPENDED;
+ if (ehci->reclaim)
+ end_unlink_async(ehci);
+
/* allow remote wakeup */
mask = INTR_MASK;
if (!device_may_wakeup(&hcd->self.root_hub->dev))
next prev parent reply other threads:[~2008-04-02 17:35 UTC|newest]
Thread overview: 90+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-27 15:29 2.6.25-rc7: Ugh Mark Lord
2008-03-27 16:07 ` Greg KH
2008-03-28 0:32 ` Jiri Kosina
2008-03-28 1:57 ` Mark Lord
2008-03-28 3:12 ` David Miller
2008-03-28 4:42 ` Bob Tracy
2008-03-28 4:56 ` David Miller
2008-03-28 5:17 ` Mark Lord
2008-03-28 6:01 ` david
2008-03-28 16:34 ` Bob Tracy
2008-04-05 18:23 ` Bill Davidsen
2008-03-28 5:36 ` Mike Galbraith
2008-03-28 5:46 ` Mark Lord
2008-03-28 5:52 ` Mark Lord
2008-03-28 6:05 ` Mark Lord
2008-03-28 6:58 ` David Brownell
2008-03-28 9:16 ` Ingo Molnar
2008-03-28 9:49 ` David Brownell
2008-03-28 10:20 ` Ingo Molnar
2008-03-28 11:01 ` Pavel Machek
2008-03-28 15:03 ` Jan Engelhardt
2008-03-28 20:14 ` David Brownell
2008-03-28 12:51 ` Kconfig RTC selection (was: 2.6.25-rc7: Ugh.) Tilman Schmidt
2008-03-28 13:49 ` Kconfig RTC selection Mark Lord
2008-03-28 19:22 ` Kconfig RTC selection (was: 2.6.25-rc7: Ugh.) David Brownell
2008-03-29 12:55 ` Kconfig RTC selection Tilman Schmidt
2008-03-28 13:47 ` 2.6.25-rc7: Ugh Mark Lord
2008-03-28 20:04 ` Kconfig RTC selection (was: 2.6.25-rc7: Ugh.) David Brownell
2008-03-28 21:06 ` Adrian Bunk
2008-03-28 21:23 ` David Brownell
2008-03-28 21:33 ` Adrian Bunk
2008-03-28 21:45 ` David Brownell
2008-03-28 21:59 ` Adrian Bunk
2008-03-28 22:18 ` David Brownell
2008-03-28 22:36 ` Adrian Bunk
2008-03-29 11:40 ` [rtc-linux] " Alessandro Zummo
2008-03-28 14:56 ` 2.6.25-rc7: Ugh Jan Engelhardt
2008-03-28 17:47 ` Adrian Bunk
2008-03-29 3:58 ` Mark Lord
2008-03-28 1:51 ` Mark Lord
2008-03-28 2:11 ` Mark Lord
2008-03-28 2:13 ` Mark Lord
2008-03-28 14:34 ` Alan Stern
2008-03-28 14:57 ` Mark Lord
2008-03-27 22:00 ` Rafael J. Wysocki
2008-03-28 5:22 ` Mark Lord
2008-03-28 2:14 ` Mark Lord
2008-03-28 9:24 ` Pavel Machek
2008-03-30 21:04 ` Mark Lord
2008-03-30 21:09 ` Mark Lord
2008-03-31 11:55 ` Oliver Neukum
2008-03-31 14:39 ` Mark Lord
2008-03-31 15:04 ` Oliver Neukum
2008-03-31 15:04 ` Mark Lord
2008-03-31 15:14 ` Mark Lord
2008-03-31 16:37 ` Oliver Neukum
2008-03-31 17:03 ` Mark Lord
2008-03-31 17:06 ` Mark Lord
2008-03-31 17:15 ` Mark Lord
2008-03-31 17:21 ` Mark Lord
2008-03-31 17:30 ` Mark Lord
2008-03-31 18:05 ` Oliver Neukum
2008-03-31 19:21 ` Mark Lord
2008-04-02 8:04 ` Oliver Neukum
2008-04-02 14:38 ` Mark Lord
2008-04-02 14:38 ` Mark Lord
2008-04-02 15:05 ` 2.6.25-rc7/rc8 USB dead on resume Mark Lord
2008-04-02 15:21 ` Oliver Neukum
2008-04-02 15:08 ` 2.6.25-rc7: Ugh Alan Stern
2008-04-02 15:44 ` 2.6.25-rc7: Ugh. ---> PATCH Mark Lord
2008-04-02 15:47 ` Mark Lord
2008-04-02 15:49 ` Mark Lord
2008-04-02 20:09 ` Alan Stern
2008-04-02 16:04 ` 2.6.25-rc7: Ugh David Brownell
2008-04-02 16:09 ` Mark Lord
2008-04-02 20:22 ` David Brownell
2008-04-02 16:20 ` [PATCH] usb ehci_iaa_watchdog fix Mark Lord
2008-04-02 16:48 ` Alan Stern
2008-04-02 17:34 ` Mark Lord [this message]
2008-04-02 18:08 ` Mark Lord
2008-04-02 19:20 ` Alan Stern
2008-04-02 20:42 ` David Brownell
2008-04-02 21:08 ` Alan Stern
2008-04-07 23:37 ` David Brownell
2008-04-08 2:13 ` Alan Stern
2008-04-02 20:31 ` David Brownell
2008-04-02 20:55 ` Alan Stern
2008-04-02 23:07 ` David Brownell
2008-04-02 16:56 ` David Brownell
2008-04-01 9:59 ` 2.6.25-rc7: Ugh Pavel Machek
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=47F3C3C0.5080705@rtr.ca \
--to=lkml@rtr.ca \
--cc=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=gregkh@suse.de \
--cc=jikos@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oliver@neukum.org \
--cc=pavel@suse.cz \
--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: 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