Gadget serial driver support addition

GARG Shivam shivam.garg at thalesgroup.com
Tue Aug 25 17:12:37 UTC 2020


Ok, let me report this to Linux-usb at vger.kernel.org.

Getting the below backtrack in Linux.

udhcpc D 00003fff87215f78 0 3285 3245 0x00000000
Call Trace:
[c0000001c42ef710] [c000000000008878] .__switch_to+0x8c/0xc4
[c0000001c42ef790] [c0000000009604cc] .__schedule+0x230/0x53c
[c0000001c42ef840] [c00000000096081c] .schedule+0x44/0xe4
[c0000001c42ef8c0] [c000000000963de4] .schedule_timeout+0x194/0x210
[c0000001c42ef9a0] [c0000000009616c4] .wait_for_common+0x170/0x1d0
[c0000001c42efa60] [c00000000009d4ec] .wait_rcu_gp+0x5c/0x74
[c0000001c42efb10] [c00000000009ee7c] .synchronize_sched+0x4c/0x70
[c0000001c42efb80] [c0000000007df974] .synchronize_net+0x20/0x4c
[c0000001c42efbf0] [c000000000906874] .__unregister_prot_hook+0x124/0x1c8
[c0000001c42efc80] [c000000000907014] .packet_do_bind+0x184/0x1e4
[c0000001c42efd10] [c0000000007c2d8c] .SyS_bind+0xf4/0x110
[c0000001c42efe30] [c000000000000698] system_call+0x38/0xc4

If you know anything, just let me know.

Thanks
Shivam



-----Original Message-----
From: Hans Petter Selasky <hps at selasky.org> 
Sent: Tuesday, August 25, 2020 10:36 PM
To: GARG Shivam <shivam.garg at thalesgroup.com>; freebsd-usb at freebsd.org
Subject: Re: Gadget serial driver support addition

On 2020-08-25 19:02, GARG Shivam wrote:
> My Device side Linux is getting panic as soon as I attached the USB to FreeBSD. Any view on this?
> 
> If I stopped the enumeration at FreeBSD using command (sysctl hw.usb.disable_enumeration=1), so device side Linux is stopped crashing.
> 
> Can you suggest me some area at device side that might be causing the crash.

Yes, you need to report this to "linux-usb at vger.kernel.org".

If Linux side is crashing it is likely a bug in the Linux gadget USB stack that needs to be fixed. Do you have a panic backtrace from Linux?

The crash probably explains why the device is not working!

--HPS


More information about the freebsd-usb mailing list