Re: [RFT/PATCH 00/38] usb: dwc3: gadget: Rework & Refactoring

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

 



On Thu, Apr 19, 2018 at 02:18:21PM +0300, Felipe Balbi wrote:
> 
> Hi,
> 
> Felipe Balbi <felipe.balbi@xxxxxxxxxxxxxxx> writes:
> >>> Bin Liu <b-liu@xxxxxx> writes:
> >>> > On Mon, Apr 09, 2018 at 02:26:14PM +0300, Felipe Balbi wrote:
> >>> >> Hi guys,
> >>> >> 
> >>> >> I've been working on this series for a while now. I feels like after
> >>> >> this series the transfer management code is far easier to read and
> >>> >> understand.
> >>> >> 
> >>> >> Based on my tests, I have no regressions. Tested g_mass_storage and all
> >>> >> of testusb's tests (including ISOC).
> >>> >> 
> >>> >> Patches are also available on dwc3-improve-isoc-endpoints in my k.org
> >>> >> tree. Test reports would be VERY, VERY, VERY welcome. Please give this a
> >>> >> go so we avoid regressions on v4.18.
> >>> >
> >>> > Have you tested g_webcam? I just tested your dwc3-improve-isoc-endpoints
> >>> 
> >>> for isoc I only tested g_zero.
> >>
> >> Then writting down details on what I observed probably won't help you :(
> 
> I got webcam running here, it sure _is_ helpful to let me know how you

Great!

> trigger the problem ;-) Also, high-speed or super-speed?

Both. Long story short - super-speed doesn't stream the yuv video,
gadget side kernel prints "VS request completed with status -18."
flooding messages.

high-speed does stream the video, but stopping the host application
(both yavta and luvcview) causes gadget side kernel prints error message
(I didn't keep the log). Then restart the host application doesn't
stream the video any more.

To run the test:
gadget side:
	# modprobe g_webcam (streaming_maxpacket=3072 for super-speed)
	# uvc-gadget
host side:
	$ yavta -c -f YUYV -t 1/30 -s 640x360 -n4 /dev/video1, or
	$ luvcview -d /dev/video1 -f yuv

> 
> >>> > branch on TI VAYU evm, it has issues in both high-speed and super-speed
> >>> > connections. It works fine with v4.17-rc1.
> >>> >
> >>> > If it suppose to work with g-webcam, please let me know if you want
> >>> > the details of the problems I see - the log is very long in super-speed
> >>> > failure.
> >>> 
> >>> Sure, give me some details of what's going on. Some bisection would be
> >>> great too, then I'll know which patch to blame and where to focus fixes.
> >>
> >> Roger has a copy of your previous work here:
> >>
> >> git@xxxxxxxxxx:rogerq/linux.git, branch balbi-dwc3-improve-isoc-endpoints
> >>
> >> I just tested it and it works fine with g_webcam.
> >>
> >> Do you think this information will help you? If so it saves me time on
> >> bisect ;)
> >
> > What's the SHA1 on that? I can diff it locally and see if I can find
> > problems.
> 
> I got this one from Roger. There's nothing in there that should cause
> any changes to the behavior.
> 
> Please capture tracepoints of both working and failing cases and send to
> me. More details at [1]

I will try to capture the traces tomorrow.

> 
> [1] https://www.kernel.org/doc/html/v4.16/driver-api/usb/dwc3.html#reporting-bugs

Regards,
-Bin.
>
--
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