Re: [RFC PATCH 0/2] isoc support for gadget zero and usbtest

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

 



On 3/22/2012 2:15 AM, Paul Zimmerman wrote:
From: Pratyush Anand [mailto:pratyush.anand@xxxxxxxxx]
Sent: Wednesday, March 21, 2012 2:36 AM

Hi Paul,

I tried to use these patches , but I see that all isoc OUT test does
pass, but it
fails with iosc IN.
I do use device as synopsys dwc3(in HS mode) and host as synopsys ehci
controller.

May be I will investigate it. But if you see something at a glance
then please let me know.
Regards
Pratyush

root@(none):/testusb# ./testusb -D /proc/bus/usb/001/002 -t 15 -g 5
unknown speed   /proc/bus/usb/001/usbtest 1-1:3.0: TEST 15:  write
1000 iso, 5 entries of 512 bytes
002
usbtest 1-1:3.0: ... iso period 8 microframes, wMaxPacket 1400
usbtest 1-1:3.0: ... total 5000 msec (5000 packets)
/proc/bus/usb/001/002 test 15,    5.027093 secs
root@(none):/testusb# ./testusb -D /proc/bus/usb/001/002 -t 16 -g 2
unknown speed   /proc/bus/usb/001/002
usbtest 1-1:3.0: TEST 16:  read 1000 iso, 2 entries of 512 bytes
usbtest 1-1:3.0: ... iso period 8 microframes, wMaxPacket 1400
usbtest 1-1:3.0: ... total 2000 msec (2000 packets)
usbtest 1-1:3.0: iso test, 2000 errors out of 2000
/proc/bus/usb/001/002 test 16 -->  5 (Input/output error)
root@(none):/testusb# ./testusb -D /proc/bus/usb/001/002 -t 22 -g 2
unknown speed   /proc/bus/usb/001/dwc3 dwc3: incomplete IN transfer ep2in-isoc
dwc3 dwc3: ep2in-isoc's TRB (c3009020) still owned by HW
dwc3 dwc3: incomplete IN transfer ep2in-isoc
dwc3 dwc3: ep2in-isoc's TRB (c3009030) still owned by HW
dwc3 dwc3: incomplete IN transfer ep2in-isoc
dwc3 dwc3: ep2in-isoc's TRB (c3009040) still owned by HW
dwc3 dwc3: incomplete IN transfer ep2in-isoc
002
usbtest 1-1:3.0: TEST 22:  write 1000 iso odd, 2 entries of 512 bytes
usbtest 1-1:3.0: ... iso period 8 microframes, wMaxPacket 1400
usbtest 1-1:3.0: ... total 2000 msec (2000 packets)
/proc/bus/usb/001/002 test 22,    2.026283 secs
root@(none):/testusb# ./testusb -D /proc/bus/usb/001/002 -t 23 -g 2
unknown speed   /proc/bus/usb/001/usbtest 1-1:3.0: TEST 23:  read 1000
iso odd, 2 entries of 512 bytes
002
usbtest 1-1:3.0: ... iso period 8 microframes, wMaxPacket 1400
usbtest 1-1:3.0: ... total 2000 msec (2000 packets)
dwc3 dwc3: incomplete IN transfer ep2in-isoc
dwc3 dwc3: incomplete IN transfer ep2in-isoc
dwc3 dwc3: incomplete IN transfer ep2in-isoc
dwc3 dwc3: incomplete IN transfer ep2in-isoc
usbtest 1-1:3.0: iso test, 2000 errors out of 2000
/proc/bus/usb/001/002 test 23 -->  5 (Input/output error)

Hi Pratyush,

Please don't top-post.

Sry.. Will take care.


I did not test these patches with the dwc3 driver yet, nor with the
EHCI host, only xHCI. With xHCI, you need the ring expansion patchset
in order for testusb to work.

Also, I think there may be some issue with dwc3 and testusb, maybe
Felipe can comment on that.


Yes it seems that there might be issues with dwc3 driver while working with isoc in. I also tried to use Audio gadget (recent uac2 patches submitted by Jassi Brar).It is also net working. While same audio gadget works with designware_udc.

I will debug it in detail and will get back.

Regards
Pratyush
--
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