-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working properly #76
Comments
Have you tried the FunctionFs mode instead ? |
Hi, Whenever umtprd is exited, I get this crash. I have seen it on 1.3.10 version. I upgraded to 1.6.2 version hoping it might resolve the issue and now it doesn't enumerate on bootup. If I manually try starting umtprd from the command line, it starts ok, but it does not enumerate on the Windows side with an invalid device descriptor error. On 1.3.10 it enumerates ok, but on both versions I see this crash when umtprd is exited. Below is console output with debug on and dmesg output: May 16 16:05:00 PLMOS user.notice umtprd: [uMTPrd - Info] uMTP Responder [ 401.213387] USB cable disconnected - dwc3 pullups_connected=false |
I see that you are using dwc3. Have you enabled "CONFIG_USB_SS_SUPPORT" in "buildconf.h" ? |
If this still doesn't work with the CONFIG_USB_SS_SUPPORT enabled, try to disable the inotify support in the umtp config file. |
Yes, we are using dwc3....our device is an embedded system running Linux
and the USB hardware only supports Hi-Speed so we are set to that speed. I
have tried with both CONFIG_USB_SS_SUPPORT enabled and not enabled and it
did not make a difference probably since we are just using Hi-Speed with
dwc3. I also changed the umtprd.conf fle to disable inotify and that also
did not make any difference. Our device does not enumerate with Windows
after upgrading to 1.6.2 and when exiting umtprd, the kernel WARNING at
dwc3_stop_active_transfer still appears. Any ideas of what to try or what
may be causing both of these issues?
***@***.***:~# [ 64.705435] ------------[ cut here ]------------
[ 64.711082] WARNING: CPU: 0 PID: 1414 at drivers/usb/dwc3/gadget.c:3071
dwc3_stop_active_transfer+0xec/0x100 [dwc3]
[ 64.721503] Modules linked in: usb_f_fs usb_f_acm u_serial usb_f_hid
libcomposite virtio_rpmsg_bus rpmsg_char rpmsg_core sd8xxx(O) mlan(O)
plmled(O) plmbuzzer(O) lis2hh12(O) lis2hh12_core(Oq
[ 64.749058] CPU: 0 PID: 1414 Comm: umtprd Tainted: G O
5.4.0-xilinx-v2020.1 #1
[ 64.757568] Hardware name: xlnx,zynqmp (DT)
[ 64.761736] pstate: 60000085 (nZCv daIf -PAN -UAO)
[ 64.766513] pc : dwc3_stop_active_transfer+0xec/0x100 [dwc3]
[ 64.772163] lr : dwc3_stop_active_transfer+0x6c/0x100 [dwc3]
[ 64.777809] sp : ffffffc01146ba60
[ 64.781108] x29: ffffffc01146ba60 x28: ffffff803b42c4c0
[ 64.786402] x27: 0000007faa1d45ac x26: 0000000000000008
[ 64.791697] x25: 0000000000418004 x24: ffffff803c7e59c0
[ 64.796992] x23: ffffff803cacd0e0 x22: 0000000000000000
[ 64.802287] x21: ffffff803c022080 x20: ffffff803b42c4c0
[ 64.807582] x19: ffffff803d2fc300 x18: 0000000000000010
[ 64.812876] x17: 0000000000000001 x16: 0000000000000019
[ 64.818171] x15: ffffff803b42c8e8 x14: ffffffffffffffff
[ 64.823466] x13: ffffffc09146b807 x12: ffffffc01146b80f
[ 64.828761] x11: 656c626163204253 x10: 0000000000000040
[ 64.834055] x9 : ffffffc01106cbf0 x8 : ffffffc01106cbe8
[ 64.839350] x7 : ffffff80374003e8 x6 : 0000000000000000
[ 64.844645] x5 : ffffffffffff3f0c x4 : 0000000000002710
[ 64.849940] x3 : ffffffffffff3f08 x2 : 0000000000000000
[ 64.855235] x1 : ffffffc011340200 x0 : 00000000ffffffea
[ 64.860530] Call trace:
[ 64.862965] dwc3_stop_active_transfer+0xec/0x100 [dwc3]
[ 64.868268] __dwc3_gadget_ep_disable+0x28/0x160 [dwc3]
[ 64.873484] __dwc3_gadget_stop+0x38/0x68 [dwc3]
[ 64.878094] dwc3_gadget_stop+0x64/0xc8 [dwc3]
[ 64.882531] usb_gadget_remove_driver+0x4c/0x78 [udc_core]
[ 64.888005] usb_gadget_unregister_driver+0x6c/0xe0 [udc_core]
[ 64.893836] unregister_gadget+0x20/0x50 [libcomposite]
[ 64.899047] unregister_gadget_item+0x24/0x38 [libcomposite]
[ 64.904700] ffs_data_clear+0x180/0x198 [usb_f_fs]
[ 64.909479] ffs_data_reset+0x14/0x48 [usb_f_fs]
[ 64.914088] ffs_data_closed+0xd4/0x130 [usb_f_fs]
[ 64.918871] ffs_ep0_release+0x10/0x20 [usb_f_fs]
[ 64.923571] __fput+0x88/0x208
[ 64.926613] ____fput+0xc/0x18
[ 64.929653] task_work_run+0xc8/0xf8
[ 64.933220] do_exit+0x2ac/0x9b8
[ 64.936439] do_group_exit+0x40/0xa8
[ 64.939998] get_signal+0x12c/0x720
[ 64.943481] do_notify_resume+0x18c/0x388
[ 64.947479] work_pending+0x8/0x10
[ 64.950863] ---[ end trace 2455e9cbbcbb3947 ]---
…On Tue, May 17, 2022 at 1:09 AM Jean-François DEL NERO < ***@***.***> wrote:
If this still doesn't work with the CONFIG_USB_SS_SUPPORT enabled, try to
disable the inotify support in the umtp config file.
—
Reply to this email directly, view it on GitHub
<#76 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUWIBOSANDYS76VGUFP2NHTVKNH2PANCNFSM5QJK7FKA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi,
I am using imx8m plus custom board. And I am trying to use Gadgetfs mode to access the the data from imx board using micro B USB. In Evk they used type C connector. It is working for some times only. can you help me here. I am attaching the failure logs for your reference.
root@imx8mp-lpddr4-evk:~# sh umtprd_gfs.sh
[ 558.197701] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
[ 558.223574] gadgetfs: bound to dwc3-gadget driver
[ 558.499145] gadgetfs: connected
[ 558.506630] gadgetfs: disconnected
[ 558.516603] gadgetfs: bound to dwc3-gadget driver
[ 558.651050] gadgetfs: connected
[ 558.658396] gadgetfs: configuration #1
[ 558.741025] gadgetfs: disconnected
[ 558.750731] gadgetfs: bound to dwc3-gadget driver
[ 558.863716] gadgetfs: connected
[ 558.870857] gadgetfs: disconnected
[ 558.880812] gadgetfs: bound to dwc3-gadget driver
[ 559.014984] gadgetfs: connected
[ 559.021254] gadgetfs: configuration #1
[ 626.032060] gadgetfs: disconnected
[ 626.035965] ------------[ cut here ]------------
[ 626.040597] WARNING: CPU: 0 PID: 445 at drivers/usb/dwc3/gadget.c:3240 dwc3_stop_active_transfer.part.0.constprop.0+0xac/0xc0
[ 626.051899] Modules linked in: gadgetfs fsl_jr_uio caam_jr caamkeyblob_desc caamhash_desc caamalg_desc crypto_engine rng_core a
uthenc libdes crct10dif_ce imx8_media_dev(C) secvio flexcan caam error can_dev fuse
[ 626.070662] CPU: 0 PID: 445 Comm: irq/87-dwc3 Tainted: G C 5.10.72-lts-5.10.y+ga68e31b63f86 #1
[ 626.080574] Hardware name: NXP i.MX8MPlus EVK board (DT)
[ 626.085888] pstate: 60000085 (nZCv daIf -PAN -UAO -TCO BTYPE=--)
[ 626.091894] pc : dwc3_stop_active_transfer.part.0.constprop.0+0xac/0xc0
[ 626.098510] lr : dwc3_stop_active_transfer.part.0.constprop.0+0x54/0xc0
[ 626.105123] sp : ffff800012483c60
[ 626.108438] x29: ffff800012483c60 x28: ffff0000c19af080
[ 626.113753] x27: ffff0000c6559d48 x26: ffff0000c1a83080
[ 626.119069] x25: 0000000000000000 x24: 0000000000000001
[ 626.124385] x23: ffff8000116c55b8 x22: 0000000000000000
[ 626.129703] x21: 0000000000000000 x20: ffff0000c735aac0
[ 626.135021] x19: ffff0000c19af700 x18: ffff800011b31788
[ 626.140339] x17: 0000000000000000 x16: 0000000000000000
[ 626.145655] x15: 0000000000000020 x14: 00000000000002b6
[ 626.150971] x13: 0000000000000000 x12: 0000000000000040
[ 626.156287] x11: ffff0000c2000000 x10: ffff0000c2000002
[ 626.161606] x9 : ffff800011b2f228 x8 : ffff0000c2000028
[ 626.166922] x7 : 0000000000000000 x6 : 0000000000030c08
[ 626.172240] x5 : ffffffffffff3f0c x4 : 0000000000000000
[ 626.177558] x3 : ffffffffffff3f08 x2 : 0000000000000000
[ 626.182876] x1 : ffff800013f84200 x0 : 00000000ffffff92
[ 626.188192] Call trace:
[ 626.190644] dwc3_stop_active_transfer.part.0.constprop.0+0xac/0xc0
[ 626.196912] dwc3_remove_requests.constprop.0+0x2c/0xf0
[ 626.202142] dwc3_gadget_reset_interrupt+0x70/0x190
[ 626.207019] dwc3_thread_interrupt+0x354/0xad0
[ 626.211466] irq_thread_fn+0x2c/0xa0
[ 626.215041] irq_thread+0x160/0x280
[ 626.218532] kthread+0x154/0x160
[ 626.221763] ret_from_fork+0x10/0x30
[ 626.225339] ---[ end trace b3e367c1072be79d ]---
[ 626.752027] dwc3 38100000.dwc3: timed out waiting for SETUP phase
[ 626.765109] gadgetfs: bound to dwc3-gadget driver
[ 626.770440] dwc3 38100000.dwc3: failed to enable ep0out
[ 631.296024] dwc3 38100000.dwc3: timed out waiting for SETUP phase
[ 631.307803] gadgetfs: bound to dwc3-gadget driver
[ 631.313133] dwc3 38100000.dwc3: failed to enable ep0out
^C^C[ 635.488024] dwc3 38100000.dwc3: timed out waiting for SETUP phase
The text was updated successfully, but these errors were encountered: