Ok, I'll try to get kernel 4.8.6 compiled for my openwrt device. Thanks Lars On Mon, 7 Nov 2016 01:08:05 +0000 fx IWATA NOBUO <Nobuo.Iwata@xxxxxxxxxxxxxxx> wrote: > Sorry. I missed the mail archive URL. > Merged patch is : > http://www.mail-archive.com/linux-usb@xxxxxxxxxxxxxxx/msg73658.html > > nobuo.iwata > // > > -----Original Message----- > > From: fx IWATA NOBUO > > Sent: Monday, November 07, 2016 10:02 AM > > To: 'lars.taeuber@xxxxxx'; linux-usb@xxxxxxxxxxxxxxx > > Subject: RE: usbip device reset > > > > Hello, > > > > I'm not clear but my patch is related to the server (stub) side situation. > > http://www.mail-archive.com/linux-usb@xxxxxxxxxxxxxxx/msg58989.html > > > > It was merged at 4.7-rc1. > > > > nobuo.iwata > > // > > > -----Original Message----- > > > From: linux-usb-owner@xxxxxxxxxxxxxxx > > > [mailto:linux-usb-owner@xxxxxxxxxxxxxxx] On Behalf Of Lars Tauber > > > Sent: Monday, October 31, 2016 3:48 AM > > > To: linux-usb@xxxxxxxxxxxxxxx > > > Subject: usbip device reset > > > > > > Hi there, > > > > > > I struggle with a problem of broken usbip connections. > > > The situation is the following: > > > > > > usbip server: Openwrt (LEDE - kernel 4.4.12) device powered by a > > > battery in the woods connected via wifi to a local network. > > > usbip client: ubuntu 16.04 64bit with self compiled kernel 4.6.2. > > > > > > The usbip server serves a "C-Media Electronics Inc. USB PnP Sound Device". > > > The usbip client uses this device via ALSA for a ffmpeg service. > > > The ffmpeg service gets (re)started by systemd service unit. > > > The ffmpeg writes one vorbis file each day and additionally serves the > > > stream to ffserver. > > > > > > Every now and then (I couldn't find a reason yet) the usbip connection > > > gets lost. > > > Last time the connection was running for nearly 23 days. > > > > > > uptime usbip server: 105 days > > > uptime usbip client: 30 days > > > > > > dmesg on client when the connection gets lost: > > > > > > [2051897.472372] usb usb5: Not yet implemented [2051897.473483] usb usb5: > > > Not yet implemented [2051897.474407] usb usb5: Not yet implemented > > > [2051897.475386] usb usb5: Not yet implemented [2059111.396128] vhci_hcd: > > > connection reset by peer [2059111.396233] vhci_hcd: stop threads > > > [2059111.396242] vhci_hcd: release socket [2059111.396249] vhci_hcd: > > > disconnect device [2059111.396294] usb 5-1: USB disconnect, device > > > number > > > 2 [2059111.396638] vhci_hcd: dequeue a urb ffff8800b74e4500 > > > [2059111.396644] vhci_hcd: device ffff8800d6e6a290 seems to be > > > disconnected [2059111.396646] vhci_hcd: gives back urb > > > ffff8800b74e4500 [2059111.396650] vhci_hcd: dequeue a urb > > > ffff8800b74e4600 [2059111.396652] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396654] vhci_hcd: gives back urb > > > ffff8800b74e4600 [2059111.396657] vhci_hcd: dequeue a urb > > > ffff8800b74e4700 [2059111.396659] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396661] vhci_hcd: gives back urb > > > ffff8800b74e4700 [2059111.396664] vhci_hcd: dequeue a urb > > > ffff8800b74e4800 [2059111.396666] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396668] vhci_hcd: gives back urb > > > ffff8800b74e4800 [2059111.396671] vhci_hcd: dequeue a urb > > > ffff8800b74e4900 [2059111.396673] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396675] vhci_hcd: gives back urb > > > ffff8800b74e4900 [2059111.396678] vhci_hcd: dequeue a urb > > > ffff8800b74e4c00 [2059111.396680] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396682] vhci_hcd: gives back urb > > > ffff8800b74e4c00 [2059111.396685] vhci_hcd: dequeue a urb > > > ffff8800b74e4d00 [2059111.396687] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396689] vhci_hcd: gives back urb > > > ffff8800b74e4d00 [2059111.396692] vhci_hcd: dequeue a urb > > > ffff8800b74e4e00 [2059111.396694] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396696] vhci_hcd: gives back urb > > > ffff8800b74e4e00 [2059111.396699] vhci_hcd: dequeue a urb > > > ffff8800b74e4f00 [2059111.396701] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396703] vhci_hcd: gives back urb > > > ffff8800b74e4f00 [2059111.396706] vhci_hcd: dequeue a urb > > > ffff8800b74e4a00 [2059111.396708] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396710] vhci_hcd: gives back urb > > > ffff8800b74e4a00 [2059111.396713] vhci_hcd: dequeue a urb > > > ffff8800b74e4b00 [2059111.396715] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396717] vhci_hcd: gives back urb > > > ffff8800b74e4b00 [2059111.396720] vhci_hcd: dequeue a urb > > > ffff880024029b00 [2059111.396722] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396724] vhci_hcd: gives back urb > > > ffff880024029b00 [2059111.396871] vhci_hcd: dequeue a urb > > > ffff88009e1a4a80 [2059111.396873] vhci_hcd: device ffff8800d6e6a290 > > > seems to be disconnected [2059111.396876] vhci_hcd: gives back urb > > > ffff88009e1a4a80 > > > > > > > > > > > > > > > usbip server: > > > > > > [5242788.550105] wlan0: authenticate with 70:62:b8:2f:4f:9e > > > [5242788.565693] wlan0: send auth to 70:62:b8:2f:4f:9e (try 1/3) > > > [5242788.572561] wlan0: authenticated [5242788.577715] wlan0: > > > associate with 70:62:b8:2f:4f:9e (try 1/3) [5242788.586829] wlan0: RX > > > AssocResp from 70:62:b8:2f:4f:9e (capab=0x431 status=0 aid=1) > > [5242788.593625] wlan0: > > > associated [5382075.114791] usbip-host 1-1: unlink urb 81a37f00 > > > [5382075.118279] usbip-host 1-1: failed to unlink a urb 81a37f00, ret > > > -36 [5560060.290463] usbip-host 1-1: recv a header, 0 [5560060.296580] > > > usbip-host 1-1: stopped by a call to usb_kill_urb() because of > > > cleaning up a virtual connection [5560060.417659] usbip-host 1-1: > > > reset full-speed USB device number 2 using ehci-platform [5560060.572063] > > usbip-host 1-1: > > > device reset [5560060.578758] usbip-host 1-1: stub up [5560060.807346] > > > usbip-host 1-1: recv a header, 0 [5560060.937658] usbip-host 1-1: > > > reset full-speed USB device number 2 using ehci-platform > > > [5560061.092057] usbip-host 1-1: device reset [5560061.098889] > > > usbip-host 1-1: stub up [6418039.358832] usbip-host 1-1: recv a > > > header, 0 [6418040.377649] usbip-host 1-1: lock for reset > > [6418096.387835] usbip-host 1-1: usbip-host: > > > register new device (bus 1 dev 2) [6424701.643151] usbip-host 1-1: > > > stub up [6424702.022262] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 1 [6424702.042317] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 0 [6424702.058089] usbip-host 1-1: endpoint 0 is stalled > > > [6424702.064106] usbip-host 1-1: endpoint 0 is stalled [6424702.070109] > > usbip-host 1-1: > > > endpoint 0 is stalled [6424702.076102] usbip-host 1-1: endpoint 0 is > > > stalled [6424702.082108] usbip-host 1-1: endpoint 0 is stalled > > > [6424702.088087] usbip-host 1-1: endpoint 0 is stalled [6424702.094095] > > usbip-host 1-1: > > > endpoint 0 is stalled [6424702.100101] usbip-host 1-1: endpoint 0 is > > > stalled [6424702.106098] usbip-host 1-1: endpoint 0 is stalled > > > [6424702.112105] usbip-host 1-1: endpoint 0 is stalled > > > [6424823.811018] usbip-host 1-1: recv a header, 0 [6424823.816966] > > > usbip-host 1-1: stopped by a call to > > > usb_kill_urb() because of cleaning up a virtual connection > > > [6424824.837648] usbip-host 1-1: lock for reset [6424833.487805] > > usbip-host 1-1: usbip-host: > > > register new device (bus 1 dev 2) [6424855.177427] usbip-host 1-1: > > > stub up [6424855.555309] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 1 [6424855.573183] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 0 [6424855.593089] usbip-host 1-1: endpoint 0 is stalled > > > [6424855.599077] usbip-host 1-1: endpoint 0 is stalled [6424855.605105] > > usbip-host 1-1: > > > endpoint 0 is stalled [6424855.611102] usbip-host 1-1: endpoint 0 is > > > stalled [6424855.617098] usbip-host 1-1: endpoint 0 is stalled > > > [6424855.623108] usbip-host 1-1: endpoint 0 is stalled [6424855.629113] > > usbip-host 1-1: > > > endpoint 0 is stalled [6424855.635105] usbip-host 1-1: endpoint 0 is > > > stalled [6424855.641109] usbip-host 1-1: endpoint 0 is stalled > > > [6424855.647099] usbip-host 1-1: endpoint 0 is stalled > > > [6597094.182861] usbip-host 1-1: recv a header, 0 [6597094.187704] > > > usbip-host 1-1: stopped by a call to > > > usb_kill_urb() because of cleaning up a virtual connection > > > [6597095.207643] usbip-host 1-1: lock for reset [6597143.917852] > > usbip-host 1-1: usbip-host: > > > register new device (bus 1 dev 2) [6597147.751672] usbip-host 1-1: > > > stub up [6597148.187265] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 1 [6597148.203192] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 0 [6597148.218081] usbip-host 1-1: endpoint 0 is stalled > > > [6597148.224108] usbip-host 1-1: endpoint 0 is stalled [6597148.230114] > > usbip-host 1-1: > > > endpoint 0 is stalled [6597148.236101] usbip-host 1-1: endpoint 0 is > > > stalled [6597148.242108] usbip-host 1-1: endpoint 0 is stalled > > > [6597148.247096] usbip-host 1-1: endpoint 0 is stalled [6597148.254102] > > usbip-host 1-1: > > > endpoint 0 is stalled [6597148.260103] usbip-host 1-1: endpoint 0 is > > > stalled [6597148.266100] usbip-host 1-1: endpoint 0 is stalled > > > [6597148.272105] usbip-host 1-1: endpoint 0 is stalled [6597255.151257] > > usbip-host 1-1: > > > usb_set_interface done: inf 1 alt 1 [8478792.807684] usbip-host 1-1: > > > recv a header, -145 [8478792.813425] usbip-host 1-1: stopped by a call > > > to > > > usb_kill_urb() because of cleaning up a virtual connection > > > [8478792.937649] usbip-host 1-1: reset full-speed USB device number 2 > > > using ehci-platform [8478793.092067] usbip-host 1-1: device reset > > > [9097476.237164] usbip-host > > > 1-1: stub up [9097476.627481] usbip-host 1-1: usb_set_interface done: > > > inf > > > 1 alt 1 [9097476.643181] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt > > > 0 [9097476.665092] usbip-host 1-1: endpoint 0 is stalled > > > [9097476.671105] usbip-host 1-1: endpoint 0 is stalled [9097476.677096] > > usbip-host 1-1: > > > endpoint 0 is stalled [9097476.683101] usbip-host 1-1: endpoint 0 is > > > stalled [9097476.689107] usbip-host 1-1: endpoint 0 is stalled > > > [9097476.695109] usbip-host 1-1: endpoint 0 is stalled [9097476.701104] > > usbip-host 1-1: > > > endpoint 0 is stalled [9097476.707104] usbip-host 1-1: endpoint 0 is > > > stalled [9097476.713102] usbip-host 1-1: endpoint 0 is stalled > > > [9097476.719107] usbip-host 1-1: endpoint 0 is stalled [9097580.181969] > > usbip-host 1-1: > > > unlink urb 80da6500 [9097580.187551] usbip-host 1-1: unlinked by a > > > call to usb_unlink_urb() [9097580.214303] usbip-host 1-1: recv a > > > header, 0 [9097580.337650] usbip-host 1-1: reset full-speed USB device > > > number 2 using ehci-platform [9097580.491060] usbip-host 1-1: device > > > reset [9097587.341393] usbip-host 1-1: stub up [9097587.725483] > > usbip-host 1-1: > > > usb_set_interface done: inf 1 alt 1 [9097587.743196] usbip-host 1-1: > > > usb_set_interface done: inf 1 alt 0 [9097587.765097] usbip-host 1-1: > > > endpoint 0 is stalled [9097587.771103] usbip-host 1-1: endpoint 0 is > > > stalled [9097587.777103] usbip-host 1-1: endpoint 0 is stalled > > > [9097587.783102] usbip-host 1-1: endpoint 0 is stalled [9097587.789102] > > usbip-host 1-1: > > > endpoint 0 is stalled [9097587.795105] usbip-host 1-1: endpoint 0 is > > > stalled [9097587.801114] usbip-host 1-1: endpoint 0 is stalled > > > [9097587.807098] usbip-host 1-1: endpoint 0 is stalled [9097587.813103] > > usbip-host 1-1: > > > endpoint 0 is stalled [9097587.819110] usbip-host 1-1: endpoint 0 is > > > stalled [9097593.923073] usbip-host 1-1: unlink urb 80da0480 > > > [9097593.927674] usbip-host 1-1: unlinked by a call to > > > usb_unlink_urb() [9097593.966448] usbip-host 1-1: recv a header, 0 > > > [9097594.087659] usbip-host 1-1: reset full-speed USB device number 2 > > > using ehci-platform [9097594.241063] usbip-host 1-1: device reset > > > [9097606.093985] usbip-host 1-1: stub up [9097606.481525] usbip-host > > > 1-1: usb_set_interface done: inf 1 alt 1 [9097606.503185] usbip-host > > > 1-1: usb_set_interface done: inf 1 alt 0 [9097606.524091] usbip-host > > > 1-1: endpoint 0 is stalled [9097606.529118] usbip-host 1-1: endpoint 0 > > is stalled [9097606.535096] usbip-host 1-1: > > > endpoint 0 is stalled [9097606.541111] usbip-host 1-1: endpoint 0 is > > > stalled [9097606.547108] usbip-host 1-1: endpoint 0 is stalled > > > [9097606.554101] usbip-host 1-1: endpoint 0 is stalled [9097606.560109] > > usbip-host 1-1: > > > endpoint 0 is stalled [9097606.566101] usbip-host 1-1: endpoint 0 is > > > stalled [9097606.572102] usbip-host 1-1: endpoint 0 is stalled > > > [9097606.578086] usbip-host 1-1: endpoint 0 is stalled > > > [9097649.994564] usbip-host 1-1: recv a header, 0 [9097650.000623] > > > usbip-host 1-1: stopped by a call to > > > usb_kill_urb() because of cleaning up a virtual connection > > > [9097651.027646] usbip-host 1-1: lock for reset [9097653.927767] > > usbip-host 1-1: usbip-host: > > > register new device (bus 1 dev 2) [9097660.346695] usbip-host 1-1: > > > stub up [9097660.733248] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 1 [9097660.754203] usbip-host 1-1: usb_set_interface done: inf 1 > > > alt 0 [9097660.772088] usbip-host 1-1: endpoint 0 is stalled > > > [9097660.778094] usbip-host 1-1: endpoint 0 is stalled [9097660.784103] > > usbip-host 1-1: > > > endpoint 0 is stalled [9097660.790104] usbip-host 1-1: endpoint 0 is > > > stalled [9097660.796100] usbip-host 1-1: endpoint 0 is stalled > > > [9097660.802113] usbip-host 1-1: endpoint 0 is stalled [9097660.808088] > > usbip-host 1-1: > > > endpoint 0 is stalled [9097660.814105] usbip-host 1-1: endpoint 0 is > > > stalled [9097660.820111] usbip-host 1-1: endpoint 0 is stalled > > > [9097660.826100] usbip-host 1-1: endpoint 0 is stalled [9097760.180267] > > usbip-host 1-1: > > > usb_set_interface done: inf 1 alt 1 > > > > > > > > > usbip client: > > > # modinfo usbip_core > > > filename: > > > /lib/modules/4.6.2/kernel/drivers/usb/usbip/usbip-core.ko > > > version: 1.0.0 > > > license: GPL > > > description: USB/IP Core > > > author: Takahiro Hirofuchi <hirofuchi@xxxxxxxxxxxxxxxxxxxxx> > > > srcversion: 27B24593000D02C1DA3356D > > > depends: > > > intree: Y > > > vermagic: 4.6.2 SMP mod_unload modversions > > > parm: usbip_debug_flag:debug flags (defined in > > usbip_common.h) > > > (ulong) > > > > > > # modinfo vhci_hcd > > > filename: > > > /lib/modules/4.6.2/kernel/drivers/usb/usbip/vhci-hcd.ko > > > version: 1.0.0 > > > license: GPL > > > description: USB/IP 'Virtual' Host Controller (VHCI) Driver > > > author: Takahiro Hirofuchi > > > srcversion: 16BCC80D45D9DB03873C2A2 > > > depends: usbip-core > > > intree: Y > > > vermagic: 4.6.2 SMP mod_unload modversions > > > > > > > > > > > > > > > > > > How can I help to track down this? > > > > > > The system was build to monitor a distant beehive with a microphone > > > for a complete year. > > > > > > Thanks and best regards > > > Lars > > > > > > -- > > > 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 -- Schöne Grüße Lars Täuber -- 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