Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-31 Thread Maynard Cabiente
Hi Minas, On Thu, Jan 31, 2019 at 9:34 AM Minas Harutyunyan wrote: > Hi Maynard, > > On 1/31/2019 3:36 AM, Maynard Cabiente wrote: > > Hi Minas, > > > > On Wed, Jan 30, 2019 at 9:02 AM Minas Harutyunyan > > wrote: > >> Root cause of data messing between IN EP's because all IN EP's use same > >>

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-31 Thread Minas Harutyunyan
Hi Maynard, On 1/31/2019 3:36 AM, Maynard Cabiente wrote: > Hi Minas, > > On Wed, Jan 30, 2019 at 9:02 AM Minas Harutyunyan > wrote: >> Root cause of data messing between IN EP's because all IN EP's use same >> TXFIFO. TxFIFO number 7. See DIEPCTL's, bits 22-25 txfnum, from debug logs: >> >> EP1

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-30 Thread Maynard Cabiente
Hi Minas, On Wed, Jan 30, 2019 at 9:02 AM Minas Harutyunyan wrote: > Root cause of data messing between IN EP's because all IN EP's use same > TXFIFO. TxFIFO number 7. See DIEPCTL's, bits 22-25 txfnum, from debug logs: > > EP1IN DIEPCTL = 0x11ca8200 > EP2IN DIEPCTL = 0x11ca8200 > EP5IN DIEPCTL =

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-30 Thread Minas Harutyunyan
Hi Maynard, On 1/30/2019 3:09 AM, Maynard Cabiente wrote: > Hi Minas, > > On Tue, Jan 29, 2019 at 5:30 AM Minas Harutyunyan > wrote: >> Please send me regdump. >> > > Below is the regdump you requested. But, I'm not sure if this is the > time when it is failing or not as it is hard for me to d

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-29 Thread Maynard Cabiente
Hi Minas, On Tue, Jan 29, 2019 at 5:30 AM Minas Harutyunyan wrote: > Please send me regdump. > Below is the regdump you requested. But, I'm not sure if this is the time when it is failing or not as it is hard for me to determine (and time it) when it fails without looking at the USB trace or ker

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-29 Thread Minas Harutyunyan
Hi Maynard, On 1/26/2019 10:07 AM, Maynard Cabiente wrote: > Hi Minas, > > On Fri, Jan 25, 2019 at 2:54 AM Minas Harutyunyan > wrote: >> Besides, mentioned by you timestamp <23.918 564 900>, where BULK IN data >> messed between EP1IN and EP2IN, I found in USB trace one more invalid >> traffic pa

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-25 Thread Maynard Cabiente
Hi Minas, On Fri, Jan 25, 2019 at 2:54 AM Minas Harutyunyan wrote: > Besides, mentioned by you timestamp <23.918 564 900>, where BULK IN data > messed between EP1IN and EP2IN, I found in USB trace one more invalid > traffic packets sequence. See in trace at timestamp <24.169 347 217>: on > same E

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-25 Thread Minas Harutyunyan
Hi Maynard, On 1/25/2019 3:24 PM, Maynard Cabiente wrote: > Hi Minas, > > On Fri, Jan 25, 2019 at 2:54 AM Minas Harutyunyan > wrote: >> I not found yet where from come this bug. >> >> Meanwhile, could you please: >> 1. Test same scenario in BDMA mode > > Sorry but I'm not familiar with BDMA mo

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-25 Thread Maynard Cabiente
Hi Minas, On Fri, Jan 25, 2019 at 2:54 AM Minas Harutyunyan wrote: > I not found yet where from come this bug. > > Meanwhile, could you please: > 1. Test same scenario in BDMA mode Sorry but I'm not familiar with BDMA mode. DId not find it in the Altera reference manual or inside the kernel doc

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-24 Thread Minas Harutyunyan
Hi Maynard, On 1/24/2019 12:13 AM, Maynard Cabiente wrote: > Hi Minas, > > On Wednesday, January 23, 2019 3:58 AM Minas Harutyunyan > wrote: >> But before it, could you please add some debug print in >> dwc2_hsotg_suspend() function. I suspect that host side autosuspend mass >> storage device(s)

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-23 Thread Maynard Cabiente
Hi Minas, On Wednesday, January 23, 2019 3:58 AM Minas Harutyunyan wrote: > But before it, could you please add some debug print in > dwc2_hsotg_suspend() function. I suspect that host side autosuspend mass > storage device(s) this is why dwc2 driver complete request with ERROR: > -108. Based on

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-23 Thread Minas Harutyunyan
Hi Maynard, On 1/23/2019 10:52 AM, Maynard CABIENTE wrote: > Hi Minas, > > On Wednesday, January 23, 2019 1:42 AM, Minas Harutyunyan wrote: >> >> Can you provide USB trace for above fragment. >> > > Is it ok to have a 14MB attachment on this e-mail list? My USB trace was > taken using the Ellis

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-22 Thread Greg KH
On Wed, Jan 23, 2019 at 06:52:00AM +, Maynard CABIENTE wrote: > This e-mail, and any document attached hereby, may contain confidential > and/or privileged information. If you are not the intended recipient (or have > received this e-mail in error) please notify the sender immediately and >

RE: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-22 Thread Maynard CABIENTE
Hi Minas, On Wednesday, January 23, 2019 1:42 AM, Minas Harutyunyan wrote: > > Can you provide USB trace for above fragment. > Is it ok to have a 14MB attachment on this e-mail list? My USB trace was taken using the Ellisys USB Analyzer. It requires that you download their Windows software from

Re: usb: dwc2: usb data transmitted to incorrect usb endpoint

2019-01-22 Thread Minas Harutyunyan
Hi Maynard, On 1/22/2019 11:00 PM, Maynard CABIENTE wrote: > Hi Minas, > > I have one more issue on the dwc2 gadget driver that I can't figure out the > root cause. Hopefully, you have an idea on this problem. > > Our system is using an Altera Cyclone V SoC FPGA on our board with linux > kerne