* musb problems in git
@ 2007-08-23 19:42 Albert Santoni
2007-08-25 21:45 ` David Brownell
0 siblings, 1 reply; 2+ messages in thread
From: Albert Santoni @ 2007-08-23 19:42 UTC (permalink / raw)
To: linux-omap-open-source (E-mail)
Hi guys,
I pulled the latest musb changes from the OMAP tree into my local DaVinci
tree, and I'm experiencing a strange problem with the musb_hdrc driver now.
If I do a certain USB control transfer (that used to work before), dmesg
will spit out a bunch of these messages:
ep0_txstate 495: odd; csr0 0000
... and the transfer will timeout. Any further communication from the host
to the gadget will also timeout. Upon trying to reload the musb_hdrc module,
insmod will freeze.
Lastly, the kernel also occasionally spits out these message:
musb_g_ep0_irq 701: SETUP packet len 10 != 8 ?
I don't recall these messages occuring before I started using the updated
musb driver. (The last time I saw messages like this was when I had a flakey
USB cable, but I haven't changed my hardware configuration.)
Has anyone else experienced any problems running the latest musb code that's
in the OMAP tree on a DaVinci kernel?
Thanks,
Albert
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: musb problems in git
2007-08-23 19:42 musb problems in git Albert Santoni
@ 2007-08-25 21:45 ` David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2007-08-25 21:45 UTC (permalink / raw)
To: linux-omap-open-source; +Cc: Albert Santoni
On Thursday 23 August 2007, Albert Santoni wrote:
> Hi guys,
>
> I pulled the latest musb changes from the OMAP tree into my local DaVinci
> tree, and I'm experiencing a strange problem with the musb_hdrc driver now.
It passed peripheral sanity tests though, at least for me,
hooked up as a high speed link ...
> If I do a certain USB control transfer (that used to work before), dmesg
> will spit out a bunch of these messages:
>
> ep0_txstate 495: odd; csr0 0000
>
> ... and the transfer will timeout. Any further communication from the host
> to the gadget will also timeout.
It's not supposed to do that, obviously. But without information
about that control transfer, it's hard to say what's going wrong.
That could happen after a MUSB_CSR0_TXPKTRDY irq when there's no
transfer pending but the endpoint is still marked as being in the
TX stage (issuing IN packets) not STATUSOUT (host acks it).
> Upon trying to reload the musb_hdrc module,
> insmod will freeze.
Again, without info debugging isn't possible. Where does it
freeze? Alt-Sysrq-T (or "echo t > /proc/sysrq-trigger") will
show relevant information.
> Lastly, the kernel also occasionally spits out these message:
>
> musb_g_ep0_irq 701: SETUP packet len 10 != 8 ?
>
> I don't recall these messages occuring before I started using the updated
> musb driver. (The last time I saw messages like this was when I had a flakey
> USB cable, but I haven't changed my hardware configuration.)
Those messages seem to be symptoms of some race inside the
hardware. Usually the value is zero; a couple times I've
seen four; never have I seen ten. It would be nice to know
how to avoid triggering that race, but if that information
is available it's not in public docs.
> Has anyone else experienced any problems running the latest musb code that's
> in the OMAP tree on a DaVinci kernel?
I ran some host side sanity tests, and yes there are a
few "new" misbehaviors. The one most relevant to this
would be that the "get interface status" control requests
misbehave, causing regression test failures. But host and
peripheral roles don't share any protocol code, just the
core I/O logic.
- Dave
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-25 21:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-23 19:42 musb problems in git Albert Santoni
2007-08-25 21:45 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox