Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 10, 2014 at 09:04:15AM -0500, Felipe Balbi wrote:
> Hi,
> 
> On Fri, Oct 10, 2014 at 05:25:34PM +0800, Huang Rui wrote:
> > > > I enabled dwc3 and gadget debug/verbose configuration, the whole testing dmesg
> > > 
> > > oh, that's why it's so slow :-) I'm getting over 30MB/sec with a Cortex
> > > A9 :-)
> > > 
> > 
> > Yes, maybe have two reasons:
> > 1) The input clock is much slower than SOC's.
> > 2) I used high speed mode.
> 
> right, i'm running at highspeed too.
> 
> > Because of the timing issue on FPGA, bulk write transfer would get
> > stuck when use more than 1MB (can pass on small file write) on super
> > speed mode. (Gadget Zero failed on 1/3/5/7 with 10s timeout)
> 
> These shouldn't fail. I'll leave testusb running tonight.
> 
> > > > Do you want to see the whole testing dmesg, with which debug level
> > > > enablement?
> > > 
> > > This is good for me, thank you.
> > 
> > The test log with booting is attached. Please review.
> 
> will do.
> 
> > > ps: FYI, I left my board running overnight the same test. It has been
> > > pretty stable so far.
> > > 
> > 
> > High speed mode is stable in my FPGA board, but super speed is not
> > at current.
> 
> weird. Got any logs ? If you want to share logs I can probably help you
> debugging that.
> 

Sure. Below is my controller as super speed mode on gadget zero test 1 (bulk
write). Test 9/10 can be passed and device is able to enumerated, so control
transfer should be OK.

Bus 007 Device 004: ID 0525:a4a0 Netchip Technology, Inc. Linux-USB "Gadget Zero"

root@hr-bak:/home/ray/usb# ./testusb.sh 1
unknown speed   /dev/bus/usb/007/004    0
/dev/bus/usb/007/004 test 1 --> 110 (Connection timed out)

Host:
[ 8793.096303] usb 7-1: new SuperSpeed USB device number 4 using xhci_hcd
[ 8793.119876] usb 7-1: New USB device found, idVendor=0525, idProduct=a4a0
[ 8793.120109] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8793.120352] usb 7-1: Product: Gadget Zero
[ 8793.120493] usb 7-1: Manufacturer: Linux 3.17.0-rc5-dwc3-upstream+ with dwc3-gadget
[ 8793.120751] usb 7-1: SerialNumber: 0123456789.0123456789.0123456789
[ 8793.489749] usbtest 7-1:3.0: Linux gadget zero
[ 8793.489933] usbtest 7-1:3.0: super-speed {control in/out bulk-in bulk-out} tests (+alt)
[ 8793.490246] usbcore: registered new interface driver usbtest
[ 8815.325781] usbcore: deregistering interface driver usbtest
[ 8819.760443] usbtest 7-1:3.0: Linux gadget zero
[ 8819.760621] usbtest 7-1:3.0: super-speed {control in/out bulk-in bulk-out} tests (+alt)
[ 8819.760921] usbcore: registered new interface driver usbtest
[ 8891.317350] usbtest 7-1:3.0: TEST 1:  write 512 bytes 20 times
[ 8901.316770] usb 7-1: test1 failed, iterations left 19, status -110 (not 0)

Device:
[ 7872.401865] udc dwc3.0.auto: registering UDC driver [zero]
[ 7872.420057] zero gadget: adding 'source/sink'/ffff88002e593e00 to config 'source/sink'/ffffffffa01ad000
[ 7872.420072] zero gadget: super speed source/sink: IN/ep1in, OUT/ep1out, ISO-IN/ep2in, ISO-OUT/ep2out, INT-IN/ep3in, INT-OUT/ep3out
[ 7872.420076] zero gadget: adding 'loopback'/ffff88002e593000 to config 'loopback'/ffffffffa01ad0e0
[ 7872.420081] zero gadget: super speed loopback: IN/ep1in, OUT/ep1out
[ 7872.420086] zero gadget: Gadget Zero, version: Cinco de Mayo 2008
[ 7872.420089] zero gadget: zero ready
[ 7872.661926] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 8/8 ===> 0
[ 7872.662505] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 18/18 ===> 0
[ 7872.663039] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 5/5 ===> 0
[ 7872.663655] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 22/22 ===> 0
[ 7872.664261] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 9/9 ===> 0
[ 7872.664890] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 140/140 ===> 0
[ 7872.665924] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 9/9 ===> 0
[ 7872.666493] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 44/44 ===> 0
[ 7872.667596] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 4/4 ===> 0
[ 7872.668135] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 24/24 ===> 0
[ 7872.668933] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 98/98 ===> 0
[ 7872.669501] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 66/66 ===> 0
[ 7872.671680] zero gadget: super-speed config #3: source/sink
[ 7872.671766] zero gadget: source/sink enabled, alt intf 0
[ 7872.671898] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 0/0 ===> 0
[ 7872.672400] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 42/42 ===> 0
[ 7970.768261] dwc3 dwc3.0.auto: request ffff88018778eb40 from ep1in completed 0/512 ===> -108
[ 7970.768277] dwc3 dwc3.0.auto: request ffff88018778e600 from ep1out completed 0/512 ===> -108
[ 7970.768349] zero gadget: source/sink enabled, alt intf 0
[ 7970.768517] dwc3 dwc3.0.auto: request ffff880186d91180 from ep0out completed 0/0 ===> 0

Thanks,
Rui
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux