From: Andrew Morton <akpm@osdl.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: AChittenden@bluearc.com, david-b@pacbell.net, greg@kroah.com,
linux-kernel@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net
Subject: Re: [linux-usb-devel] 2.6.17 hangs during boot on ASUS M2NPV-VM motherboard
Date: Fri, 14 Jul 2006 12:00:40 -0700 [thread overview]
Message-ID: <20060714120040.c0e66e72.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0607141447320.8006-100000@iolanthe.rowland.org>
On Fri, 14 Jul 2006 14:50:16 -0400 (EDT)
Alan Stern <stern@rowland.harvard.edu> wrote:
> On Fri, 14 Jul 2006, Andrew Morton wrote:
>
> > On Fri, 14 Jul 2006 16:54:25 +0100
> > "Andy Chittenden" <AChittenden@bluearc.com> wrote:
>
> > > > So I guess there's something awry with the USB controller driver?
> > > >
> > >
> > > Is there any other info that someone wants to track this down? Or has
> > > someone got a fix?
>
> It's hard to come up with a fix without knowing what's wrong. The current
> development version of that subroutine is essentially the same as the
> version in 2.6.17.
>
> If you want to pin down the problem more precisely, try adding a whole
> bunch of printk() statements to the quirk_usb_handoff_ohci() function in
> drivers/usb/host/pci-quirks.c.
>
Andy, please add the below, work out what line it gets stuck at and then
let us know? Thanks.
(bear in mind that our line numbers will usually be different from yours,
so please don't use line numbers to ifdentify where it hung).
diff -puN drivers/usb/host/pci-quirks.c~a drivers/usb/host/pci-quirks.c
--- a/drivers/usb/host/pci-quirks.c~a
+++ a/drivers/usb/host/pci-quirks.c
@@ -164,38 +164,50 @@ static int __devinit mmio_resource_enabl
return pci_resource_start(pdev, idx) && mmio_enabled(pdev);
}
+#define D() printk("%s:%d\n", __FILE__, __LINE__);
+
static void __devinit quirk_usb_handoff_ohci(struct pci_dev *pdev)
{
void __iomem *base;
+ D();
+
if (!mmio_resource_enabled(pdev, 0))
return;
+ D();
+
base = ioremap_nocache(pci_resource_start(pdev, 0),
pci_resource_len(pdev, 0));
if (base == NULL) return;
-
+ D();
/* On PA-RISC, PDC can leave IR set incorrectly; ignore it there. */
#ifndef __hppa__
{
u32 control = readl(base + OHCI_CONTROL);
+ D();
if (control & OHCI_CTRL_IR) {
int wait_time = 500; /* arbitrary; 5 seconds */
+ D();
writel(OHCI_INTR_OC, base + OHCI_INTRENABLE);
+ D();
writel(OHCI_OCR, base + OHCI_CMDSTATUS);
+ D();
while (wait_time > 0 &&
readl(base + OHCI_CONTROL) & OHCI_CTRL_IR) {
wait_time -= 10;
msleep(10);
}
+ D();
if (wait_time <= 0)
printk(KERN_WARNING "%s %s: BIOS handoff "
"failed (BIOS bug ?) %08x\n",
pdev->dev.bus_id, "OHCI",
readl(base + OHCI_CONTROL));
-
+ D();
/* reset controller, preserving RWC */
writel(control & OHCI_CTRL_RWC, base + OHCI_CONTROL);
+ D();
}
}
#endif
@@ -203,10 +215,13 @@ static void __devinit quirk_usb_handoff_
/*
* disable interrupts
*/
+ D();
writel(~(u32)0, base + OHCI_INTRDISABLE);
+ D();
writel(~(u32)0, base + OHCI_INTRSTATUS);
-
+ D();
iounmap(base);
+ D();
}
static void __devinit quirk_usb_disable_ehci(struct pci_dev *pdev)
_
next prev parent reply other threads:[~2006-07-14 19:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-14 15:54 Andy Chittenden
2006-07-14 16:30 ` Andrew Morton
2006-07-14 18:50 ` [linux-usb-devel] " Alan Stern
2006-07-14 19:00 ` Andrew Morton [this message]
2006-07-14 19:37 ` David Brownell
2006-07-17 10:44 [linux-usb-devel] " Andy Chittenden
2006-07-19 13:00 Andy Chittenden
2006-07-27 8:29 Andy Chittenden
2006-07-27 14:27 ` Alan Stern
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=20060714120040.c0e66e72.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=AChittenden@bluearc.com \
--cc=david-b@pacbell.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--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
Powered by JetHome