All of lore.kernel.org
 help / color / mirror / Atom feed
* DM3730 + MUSB host mode + DMA + USB Ethernet dongle = Fail
@ 2015-05-06 23:17 Tim Nordell
       [not found] ` <554AA11B.9040909-L+YfUVVR8+RBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Tim Nordell @ 2015-05-06 23:17 UTC (permalink / raw)
  To: linux-omap; +Cc: linux-usb

Hi all -

I'm running kernel v3.19 (although I've tried v4.1-rc2's version of the 
MUSB code) on a DM3730 processor.  I'm running into an issue where if I 
enable MUSB Inventra DMA, plug in a USB Ethernet Dongle, and run iperf 
between the dongle and a PC, the MUSB driver stops working.  I get the 
following in my kernel log, twice back-to-back:

     musb_host_rx 1762: Rx interrupt with no errors or packet!

Any ideas?

The test above works in PIO mode, but I'd like to reduce the system CPU 
usage of the driver by using DMA.  I'm using a ASIX AX88772B Ethernet 
dongle, although, this shouldn't impact the error above.  I also tried 
re-reading the RXCSR register immediately after the error printout 
above, and the immediate subsequent time it contains the bit the driver 
is looking for.  I tried nesting the check so that if the bit the driver 
is looking for is set with an immediate subsequent read that it would 
continue past it, but it still keels over (albeit lasting maybe a second 
longer).

Something about this feels race conditiony too.  Depending on the kernel 
configuration options in the kernel debug menu (which slows down other 
parts of the kernel), or if I enable verbose debug message output from 
the MUSB driver, it lasts much, much longer before keeling over as a 
system.  You can restore normal behavior by unplugging/replugging in the 
device.

Thanks,
Tim


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-05-08 21:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 23:17 DM3730 + MUSB host mode + DMA + USB Ethernet dongle = Fail Tim Nordell
     [not found] ` <554AA11B.9040909-L+YfUVVR8+RBDgjK7y7TUQ@public.gmane.org>
2015-05-07 16:06   ` Tony Lindgren
     [not found]     ` <20150507160606.GB15563-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2015-05-07 16:16       ` Felipe Balbi
     [not found]         ` <20150507161656.GB29183-HgARHv6XitJaoMGHk7MhZQC/G2K4zDHf@public.gmane.org>
2015-05-07 18:17           ` Tim Nordell
     [not found]             ` <554BAC48.2050406-L+YfUVVR8+RBDgjK7y7TUQ@public.gmane.org>
2015-05-07 21:07               ` Chan-Taek Park
     [not found]                 ` <CAPM0aKVSJfyBj-FzdTDC+PFmHOmch39F26OF_0CzK5a704AVpA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-07 21:21                   ` Bin Liu
     [not found]                     ` <CADYTM3YGgm9b+vpxH8jJk41Cc9no=-pPydfHQsvR1FehbRCTxw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-07 21:26                       ` Tim Nordell
2015-05-07 21:41                         ` Tim Nordell
2015-05-07 22:12                           ` Tim Nordell
2015-05-08 18:24                             ` Tim Nordell
     [not found]                               ` <554CFF6E.9020208-L+YfUVVR8+RBDgjK7y7TUQ@public.gmane.org>
2015-05-08 21:11                                 ` Ruslan Bilovol

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.