[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0910221558510.9192-100000@netrider.rowland.org>
Date: Thu, 22 Oct 2009 16:03:41 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: Ozan Çağlayan <ozan@...dus.org.tr>
cc: Laurent Pinchart <laurent.pinchart@...asonboard.com>,
<linux-media@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
USB list <linux-usb@...r.kernel.org>
Subject: Re: uvcvideo causes ehci_hcd to halt
On Thu, 22 Oct 2009, [UTF-8] Ozan ÃaÄlayan wrote:
> Alan Stern wrote:
> > On Thu, 22 Oct 2009, [UTF-8] Ozan Ãâ¡aßlayan wrote:
> >
> >
> >> Here's the outputs from /sys/kernel/debug/usb/ehci:
> >>
> >> periodic:
> >> ----------------
> >> size = 1024
> >> 1: qh1024-0001/f6ffe280 (h2 ep2 [1/0] q0 p8)
> >>
> >
> > There's something odd about this. I'd like to see this file again,
> > after the patch below has been applied.
> >
> >
>
> Do you want me to apply this patch altogether with the first one that
> you sent a while ago in this thread or directly onto the vanilla kernel?
It doesn't matter. The "size = 1024" line in your debugging output
means that the first patch won't have any effect; my hunch was wrong.
However it turns out that the most recent patch wasn't quite what I
wanted. Here's an updated version to be used instead.
Alan Stern
Index: usb-2.6/drivers/usb/host/ehci-dbg.c
===================================================================
--- usb-2.6.orig/drivers/usb/host/ehci-dbg.c
+++ usb-2.6/drivers/usb/host/ehci-dbg.c
@@ -596,18 +596,22 @@ static ssize_t fill_periodic_buffer(stru
qtd->hw_token) >> 8)) {
case 0: type = "out"; continue;
case 1: type = "in"; continue;
+ case 2: type = "?2"; continue;
+ case 3: type = "?3"; continue;
}
}
temp = scnprintf (next, size,
" (%c%d ep%d%s "
- "[%d/%d] q%d p%d)",
+ "[%d/%d] q%d p%d) t%08x",
speed_char (scratch),
scratch & 0x007f,
(scratch >> 8) & 0x000f, type,
p.qh->usecs, p.qh->c_usecs,
temp,
- 0x7ff & (scratch >> 16));
+ 0x7ff & (scratch >> 16),
+ hc32_to_cpu(ehci,
+ p.qh->hw->hw_token));
if (seen_count < DBG_SCHED_LIMIT)
seen [seen_count++].qh = p.qh;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists