linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data
@ 2021-06-10  8:52 kun peng
  2021-06-10 10:06 ` Greg KH
  2021-06-10 10:07 ` Felipe Balbi
  0 siblings, 2 replies; 7+ messages in thread
From: kun peng @ 2021-06-10  8:52 UTC (permalink / raw)
  To: linux-usb

[-- Attachment #1: Type: text/plain, Size: 15109 bytes --]

Hi , I'm using the 4*A53 with DWC3 USB controller, my hardware to work
like a USB camera and so make use of the USB 3.0 UVC gadget driver。
usb3.0 isoc transfer with  missisoc -18,larger maxburst is set, the
more -18 appears。
but from trace info, the trb has been put in advance。

test setting:
dwc3 driver version:5.12
PC: potplayer

maxpacket : 3072
maxburst : 15
interval : 1
UVC_NUM_REQUESTS: 8

dmesg info:
[  806.696113] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.696136] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.696361] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.696380] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.746120] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.746145] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.746496] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.769243] configfs-gadget gadget: uvc: VS request completed with
status -18.
[  806.769265] configfs-gadget gadget: uvc: VS request completed with
status -18.

trace info:
    irq/175-dwc3-2373  [003]  7391.966129: dwc3_event:           event
(9e5f408a): ep2in: Transfer In Progress [40543] (sIm)
    irq/175-dwc3-2373  [003]  7391.966131: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307250 allocated=32768028
queued=1764913253 bpl=1987444736 bph=0 size=0 ctrl=664259680 type=1
enqueue=45 dequeue=38
    irq/175-dwc3-2373  [003]  7391.966134: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554800 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.966136:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554800 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.966171: dwc3_ep_queue:
ep2in: req 0xffffffc07a554800 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.966172: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 45/38 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966174: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 45/38 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966180: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072d0 allocated=16
queued=41 bpl=1987444736 bph=0 size=49152 ctrl=3169 type=1 enqueue=46
dequeue=38
    kworker/3:1H-1147  [003]  7391.966183: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.966186: usb_ep_queue:
ep2in: req 0xffffffc07a554800 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.966260: dwc3_event:           event
(9e60408a): ep2in: Transfer In Progress [40544] (sIm)
    irq/175-dwc3-2373  [003]  7391.966262: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307260 allocated=32768028
queued=1764913253 bpl=1987641344 bph=0 size=0 ctrl=664276064 type=1
enqueue=46 dequeue=39
    irq/175-dwc3-2373  [003]  7391.966264: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554200 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.966266:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554200 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.966304: dwc3_ep_queue:
ep2in: req 0xffffffc07a554200 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.966306: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 46/39 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966307: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 46/39 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966314: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072e0 allocated=16
queued=41 bpl=1987641344 bph=0 size=49152 ctrl=3169 type=1 enqueue=47
dequeue=39
    kworker/3:1H-1147  [003]  7391.966316: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.966319: usb_ep_queue:
ep2in: req 0xffffffc07a554200 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.966382: dwc3_event:           event
(9e61408a): ep2in: Transfer In Progress [40545] (sIm)
    irq/175-dwc3-2373  [003]  7391.966384: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307270 allocated=32768028
queued=1764913253 bpl=1987313664 bph=0 size=0 ctrl=664292448 type=1
enqueue=47 dequeue=40
    irq/175-dwc3-2373  [003]  7391.966386: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554000 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.966388:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554000 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.966425: dwc3_ep_queue:
ep2in: req 0xffffffc07a554000 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.966426: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 47/40 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966428: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 47/40 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966435: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072f0 allocated=16
queued=41 bpl=1987313664 bph=0 size=49152 ctrl=3169 type=1 enqueue=48
dequeue=40
    kworker/3:1H-1147  [003]  7391.966437: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.966440: usb_ep_queue:
ep2in: req 0xffffffc07a554000 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.966507: dwc3_event:           event
(9e62408a): ep2in: Transfer In Progress [40546] (sIm)
    irq/175-dwc3-2373  [003]  7391.966510: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307280 allocated=32768028
queued=1764913253 bpl=1987510272 bph=0 size=0 ctrl=664308832 type=1
enqueue=48 dequeue=41
    irq/175-dwc3-2373  [003]  7391.966512: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554900 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.966514:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554900 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.966553: dwc3_ep_queue:
ep2in: req 0xffffffc07a554900 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.966555: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 48/41 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966556: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 48/41 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966563: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307300 allocated=16
queued=41 bpl=1987510272 bph=0 size=49152 ctrl=3169 type=1 enqueue=49
dequeue=41
    kworker/3:1H-1147  [003]  7391.966566: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.966568: usb_ep_queue:
ep2in: req 0xffffffc07a554900 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.966632: dwc3_event:           event
(9e63408a): ep2in: Transfer In Progress [40547] (sIm)
    irq/175-dwc3-2373  [003]  7391.966634: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307290 allocated=32768028
queued=1764913253 bpl=1987706880 bph=0 size=0 ctrl=664325216 type=1
enqueue=49 dequeue=42
    irq/175-dwc3-2373  [003]  7391.966636: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554300 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.966638:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554300 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.966673: dwc3_ep_queue:
ep2in: req 0xffffffc07a554300 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.966675: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 49/42 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966676: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 49/42 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966683: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307310 allocated=16
queued=41 bpl=1987706880 bph=0 size=49152 ctrl=3169 type=1 enqueue=50
dequeue=42
    kworker/3:1H-1147  [003]  7391.966686: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.966688: usb_ep_queue:
ep2in: req 0xffffffc07a554300 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.966760: dwc3_event:           event
(9e64408a): ep2in: Transfer In Progress [40548] (sIm)
    irq/175-dwc3-2373  [003]  7391.966762: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072a0 allocated=32768028
queued=1764913253 bpl=1987575808 bph=0 size=0 ctrl=664341600 type=1
enqueue=50 dequeue=43
    irq/175-dwc3-2373  [003]  7391.966764: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554100 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.966766:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554100 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.966806: dwc3_ep_queue:
ep2in: req 0xffffffc07a554100 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.966808: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 50/43 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966809: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 50/43 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966816: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307320 allocated=16
queued=41 bpl=1987575808 bph=0 size=49152 ctrl=3169 type=1 enqueue=51
dequeue=43
    kworker/3:1H-1147  [003]  7391.966819: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.966821: usb_ep_queue:
ep2in: req 0xffffffc07a554100 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.966881: dwc3_event:           event
(9e65408a): ep2in: Transfer In Progress [40549] (sIm)
    irq/175-dwc3-2373  [003]  7391.966883: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072b0 allocated=32768028
queued=1764913253 bpl=1987772416 bph=0 size=0 ctrl=664357984 type=1
enqueue=51 dequeue=44
    irq/175-dwc3-2373  [003]  7391.966885: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554e00 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.966887:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554e00 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.966922: dwc3_ep_queue:
ep2in: req 0xffffffc07a554e00 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.966924: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 51/44 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966925: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 51/44 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.966932: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307330 allocated=16
queued=41 bpl=1987772416 bph=0 size=49152 ctrl=3169 type=1 enqueue=52
dequeue=44
    kworker/3:1H-1147  [003]  7391.966935: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.966938: usb_ep_queue:
ep2in: req 0xffffffc07a554e00 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.967011: dwc3_event:           event
(9e66408a): ep2in: Transfer In Progress [40550] (sIm)
    irq/175-dwc3-2373  [003]  7391.967014: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072c0 allocated=32768028
queued=1764913253 bpl=1987379200 bph=0 size=0 ctrl=664374368 type=1
enqueue=52 dequeue=45
    irq/175-dwc3-2373  [003]  7391.967017: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554600 length 49152/49152 zsI ==> 0
    irq/175-dwc3-2373  [003]  7391.967019:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554600 length
49152/49152 sgs 0/0 stream 0 zsI status 0 --> 0
    kworker/3:1H-1147  [003]  7391.967056: dwc3_ep_queue:
ep2in: req 0xffffffc07a554600 length 0/49152 zsI ==> -115
    kworker/3:1H-1147  [003]  7391.967058: dwc3_gadget_ep_info:
ep2in: mps 1024/1024 streams 15 burst 16 ring 52/45 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.967059: dwc3_gadget_ep_info2:
ep2in: mps 1024/1024 streams 15 burst 16 ring 52/45 flags 0x29
>c<:>c<>c<>c<>c<:>c<
    kworker/3:1H-1147  [003]  7391.967066: dwc3_prepare_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff8009307340 allocated=16
queued=41 bpl=1987379200 bph=0 size=49152 ctrl=3169 type=1 enqueue=53
dequeue=45
    kworker/3:1H-1147  [003]  7391.967069: dwc3_gadget_ep_cmd:
ep2in: cmd 'Update Transfer' [50407] ri:5 params 00000000 00000000
00000000 --> status: Successful
    kworker/3:1H-1147  [003]  7391.967071: usb_ep_queue:
ep2in: req 0xffffffc07a554600 length 0/49152 sgs 0/0 stream 0 zsI
status -115 --> 0
    irq/175-dwc3-2373  [003]  7391.967141: dwc3_event:           event
(9e67c08a): ep2in: Transfer In Progress [40551] (sIM)
    irq/175-dwc3-2373  [003]  7391.967143: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072d0 allocated=32768028
queued=1764913253 bpl=1987444736 bph=0 size=268484608 ctrl=664390752
type=1 enqueue=53 dequeue=46
    irq/175-dwc3-2373  [003]  7391.967145: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554800 length 0/49152 zsI ==> -18
    irq/175-dwc3-2373  [003]  7391.967147:
usb_gadget_giveback_request: ep2in: req 0xffffffc07a554800 length
0/49152 sgs 0/0 stream 0 zsI status -18 --> 0
    irq/175-dwc3-2373  [003]  7391.967171: dwc3_event:           event
(9e68c08a): ep2in: Transfer In Progress [40552] (sIM)
    irq/175-dwc3-2373  [003]  7391.967173: dwc3_complete_trb:
[FAILED TO PARSE] name=ep2in trb=0xffffff80093072e0 allocated=32768028
queued=1764913253 bpl=1987641344 bph=0 size=268484608 ctrl=664407136
type=1 enqueue=53 dequeue=47
    irq/175-dwc3-2373  [003]  7391.967175: dwc3_gadget_giveback:
ep2in: req 0xffffffc07a554200 length 0/49152 zsI ==> -18


regdump、trace: refer to attachment

hope providing some directions for this bug

Best regards

kun peng

[-- Attachment #2: trace_and_regdump.zip --]
[-- Type: application/zip, Size: 10131 bytes --]

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

* Re: usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data
  2021-06-10  8:52 usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data kun peng
@ 2021-06-10 10:06 ` Greg KH
  2021-06-10 10:07 ` Felipe Balbi
  1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2021-06-10 10:06 UTC (permalink / raw)
  To: kun peng; +Cc: linux-usb

On Thu, Jun 10, 2021 at 04:52:19PM +0800, kun peng wrote:
> Hi , I'm using the 4*A53 with DWC3 USB controller, my hardware to work
> like a USB camera and so make use of the USB 3.0 UVC gadget driver。
> usb3.0 isoc transfer with  missisoc -18,larger maxburst is set, the
> more -18 appears。
> but from trace info, the trb has been put in advance。

What exactly is the problem you are having here?

What is not working how you expect it to?

> test setting:
> dwc3 driver version:5.12

You mean kernel version?

thanks,

greg k-h

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

* Re: usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data
  2021-06-10  8:52 usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data kun peng
  2021-06-10 10:06 ` Greg KH
@ 2021-06-10 10:07 ` Felipe Balbi
  2021-06-10 11:33   ` kun peng
  1 sibling, 1 reply; 7+ messages in thread
From: Felipe Balbi @ 2021-06-10 10:07 UTC (permalink / raw)
  To: kun peng, linux-usb

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

Hi,

kun peng <kunpeng0891@gmail.com> writes:
> Hi , I'm using the 4*A53 with DWC3 USB controller, my hardware to work
> like a USB camera and so make use of the USB 3.0 UVC gadget driver。
> usb3.0 isoc transfer with  missisoc -18,larger maxburst is set, the
> more -18 appears。
> but from trace info, the trb has been put in advance。
>
> test setting:
> dwc3 driver version:5.12
> PC: potplayer
>
> maxpacket : 3072
> maxburst : 15
> interval : 1
> UVC_NUM_REQUESTS: 8

sorry, you're running 4.14.74 kernel. That's far too old for this forum
to help you. Try reproducing with the latest v5.13-rc kernel.

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

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

* Re: usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data
  2021-06-10 10:07 ` Felipe Balbi
@ 2021-06-10 11:33   ` kun peng
  2021-06-10 11:38     ` Felipe Balbi
  2021-06-10 11:40     ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: kun peng @ 2021-06-10 11:33 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-usb

On Thu, Jun 10, 2021 at 6:07 PM Felipe Balbi <balbi@kernel.org> wrote:
>
> Hi,
>
> kun peng <kunpeng0891@gmail.com> writes:
> > Hi , I'm using the 4*A53 with DWC3 USB controller, my hardware to work
> > like a USB camera and so make use of the USB 3.0 UVC gadget driver。
> > usb3.0 isoc transfer with  missisoc -18,larger maxburst is set, the
> > more -18 appears。
> > but from trace info, the trb has been put in advance。
> >
> > test setting:
> > dwc3 driver version:5.12
> > PC: potplayer
> >
> > maxpacket : 3072
> > maxburst : 15
> > interval : 1
> > UVC_NUM_REQUESTS: 8
>
> sorry, you're running 4.14.74 kernel. That's far too old for this forum
> to help you. Try reproducing with the latest v5.13-rc kernel.
>
> --
> balbi

thanks for your reply.

my kernel is 4.14, but usb and uvc related driver has been update to
5.12.0 linux main line.
The problem mentioned above is after the update.

best regards

kun

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

* Re: usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data
  2021-06-10 11:33   ` kun peng
@ 2021-06-10 11:38     ` Felipe Balbi
  2021-06-10 11:45       ` kun peng
  2021-06-10 11:40     ` Greg KH
  1 sibling, 1 reply; 7+ messages in thread
From: Felipe Balbi @ 2021-06-10 11:38 UTC (permalink / raw)
  To: kun peng; +Cc: linux-usb

[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]


Hi,

kun peng <kunpeng0891@gmail.com> writes:
> On Thu, Jun 10, 2021 at 6:07 PM Felipe Balbi <balbi@kernel.org> wrote:
>>
>> Hi,
>>
>> kun peng <kunpeng0891@gmail.com> writes:
>> > Hi , I'm using the 4*A53 with DWC3 USB controller, my hardware to work
>> > like a USB camera and so make use of the USB 3.0 UVC gadget driver。
>> > usb3.0 isoc transfer with  missisoc -18,larger maxburst is set, the
>> > more -18 appears。
>> > but from trace info, the trb has been put in advance。
>> >
>> > test setting:
>> > dwc3 driver version:5.12
>> > PC: potplayer
>> >
>> > maxpacket : 3072
>> > maxburst : 15
>> > interval : 1
>> > UVC_NUM_REQUESTS: 8
>>
>> sorry, you're running 4.14.74 kernel. That's far too old for this forum
>> to help you. Try reproducing with the latest v5.13-rc kernel.
>>
>> --
>> balbi
>
> thanks for your reply.
>
> my kernel is 4.14, but usb and uvc related driver has been update to
> 5.12.0 linux main line.
> The problem mentioned above is after the update.

right, many other things happen in the framework. You could bisect and
try to find the offending commit, but this forum can't do much to help,
sorry.

-- 
balbi

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

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

* Re: usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data
  2021-06-10 11:33   ` kun peng
  2021-06-10 11:38     ` Felipe Balbi
@ 2021-06-10 11:40     ` Greg KH
  1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2021-06-10 11:40 UTC (permalink / raw)
  To: kun peng; +Cc: Felipe Balbi, linux-usb

On Thu, Jun 10, 2021 at 07:33:43PM +0800, kun peng wrote:
> On Thu, Jun 10, 2021 at 6:07 PM Felipe Balbi <balbi@kernel.org> wrote:
> >
> > Hi,
> >
> > kun peng <kunpeng0891@gmail.com> writes:
> > > Hi , I'm using the 4*A53 with DWC3 USB controller, my hardware to work
> > > like a USB camera and so make use of the USB 3.0 UVC gadget driver。
> > > usb3.0 isoc transfer with  missisoc -18,larger maxburst is set, the
> > > more -18 appears。
> > > but from trace info, the trb has been put in advance。
> > >
> > > test setting:
> > > dwc3 driver version:5.12
> > > PC: potplayer
> > >
> > > maxpacket : 3072
> > > maxburst : 15
> > > interval : 1
> > > UVC_NUM_REQUESTS: 8
> >
> > sorry, you're running 4.14.74 kernel. That's far too old for this forum
> > to help you. Try reproducing with the latest v5.13-rc kernel.
> >
> > --
> > balbi
> 
> thanks for your reply.
> 
> my kernel is 4.14, but usb and uvc related driver has been update to
> 5.12.0 linux main line.

That will not work, you have to update the whole kernel at once, drivers
can not be picked and choosen from different kernel trees and expect to
work at all, sorry.

Please try 5.12 or as Felipe said, the latest 5.13-rc release and let us
know if that works or not.

thanks,

greg k-h

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

* Re: usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data
  2021-06-10 11:38     ` Felipe Balbi
@ 2021-06-10 11:45       ` kun peng
  0 siblings, 0 replies; 7+ messages in thread
From: kun peng @ 2021-06-10 11:45 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-usb

On Thu, Jun 10, 2021 at 7:38 PM Felipe Balbi <balbi@kernel.org> wrote:
>
>
> Hi,
>
> kun peng <kunpeng0891@gmail.com> writes:
> > On Thu, Jun 10, 2021 at 6:07 PM Felipe Balbi <balbi@kernel.org> wrote:
> >>
> >> Hi,
> >>
> >> kun peng <kunpeng0891@gmail.com> writes:
> >> > Hi , I'm using the 4*A53 with DWC3 USB controller, my hardware to work
> >> > like a USB camera and so make use of the USB 3.0 UVC gadget driver。
> >> > usb3.0 isoc transfer with  missisoc -18,larger maxburst is set, the
> >> > more -18 appears。
> >> > but from trace info, the trb has been put in advance。
> >> >
> >> > test setting:
> >> > dwc3 driver version:5.12
> >> > PC: potplayer
> >> >
> >> > maxpacket : 3072
> >> > maxburst : 15
> >> > interval : 1
> >> > UVC_NUM_REQUESTS: 8
> >>
> >> sorry, you're running 4.14.74 kernel. That's far too old for this forum
> >> to help you. Try reproducing with the latest v5.13-rc kernel.
> >>
> >> --
> >> balbi
> >
> > thanks for your reply.
> >
> > my kernel is 4.14, but usb and uvc related driver has been update to
> > 5.12.0 linux main line.
> > The problem mentioned above is after the update.
>
> right, many other things happen in the framework. You could bisect and
> try to find the offending commit, but this forum can't do much to help,
> sorry.
>
> --
> balbi

previous 4.14 was problematic, so we updated it to 5.12.
after the update:
usb2.0 isoc\bulk\ all is well.
usb3.0 isoc with many -18 error...  bulk is normal

thanks
--
kun

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

end of thread, other threads:[~2021-06-10 11:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10  8:52 usb3.0: dwc3: isoc: missisoc while setting the USB transfer UVC data kun peng
2021-06-10 10:06 ` Greg KH
2021-06-10 10:07 ` Felipe Balbi
2021-06-10 11:33   ` kun peng
2021-06-10 11:38     ` Felipe Balbi
2021-06-10 11:45       ` kun peng
2021-06-10 11:40     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).