From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:54143 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753265Ab0FEBsX (ORCPT ); Fri, 4 Jun 2010 21:48:23 -0400 Received: by fxm8 with SMTP id 8so1158446fxm.19 for ; Fri, 04 Jun 2010 18:48:21 -0700 (PDT) Message-ID: <4C09ACE4.6080003@gmail.com> Date: Sat, 05 Jun 2010 03:48:20 +0200 From: Xavier Gnata MIME-Version: 1.0 To: linux-media@vger.kernel.org Subject: dvb-usb/af9015 disconnection crashes Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Hi, I get crashes when I disconnect a dvb-usb-af9015: [54017.407738] usb 2-1.1: USB disconnect, address 9 [54018.685543] usb 2-1.5: USB disconnect, address 8 [54018.685895] af9015: bulk message failed:-22 (8/0) [54018.685901] af9013: I2C read failed reg:d417 [54018.685907] af9015: bulk message failed:-22 (8/0) [54018.685911] af9013: I2C read failed reg:d417 [54018.685915] af9015: bulk message failed:-22 (9/0) [54018.685919] mt2060 I2C write failed [54018.685923] af9015: bulk message failed:-22 (8/-30719) [54018.685927] af9013: I2C read failed reg:d417 [54018.685931] af9015: bulk message failed:-22 (8/-30720) [54018.685934] af9013: I2C read failed reg:d417 [54018.685940] af9015: bulk message failed:-22 (8/-1) [54018.685944] af9013: I2C read failed reg:d730 [54024.625315] sky2 0000:04:00.0: eth0: Link is down [54148.121532] INFO: task khubd:42 blocked for more than 120 seconds. [54148.121537] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [54148.121542] khubd D 00000000ffffffff 0 42 2 0x00000000 [54148.121549] ffff8801270fdb00 0000000000000046 dead000000200200 0000000000015740 [54148.121555] ffff8801270fdfd8 0000000000015740 ffff8801270fdfd8 ffff8801270f5c00 [54148.121561] 0000000000015740 0000000000015740 ffff8801270fdfd8 0000000000015740 [54148.121566] Call Trace: [54148.121578] [] ? prepare_to_wait+0x60/0x90 [54148.121594] [] dvb_unregister_frontend+0xc5/0x110 [dvb_core] [54148.121600] [] ? autoremove_wake_function+0x0/0x40 [54148.121607] [] ? idr_remove+0x187/0x1f0 [54148.121614] [] dvb_usb_adapter_frontend_exit+0x22/0x40 [dvb_usb] [54148.121620] [] dvb_usb_exit+0x53/0xd0 [dvb_usb] [54148.121627] [] dvb_usb_device_exit+0x49/0x60 [dvb_usb] [54148.121633] [] af9015_usb_device_exit+0x41/0x60 [dvb_usb_af9015] [54148.121643] [] usb_unbind_interface+0x61/0x190 [54148.121651] [] __device_release_driver+0x6f/0xe0 [54148.121656] [] device_release_driver+0x2d/0x40 [54148.121662] [] bus_remove_device+0x9a/0xc0 [54148.121667] [] device_del+0x127/0x1d0 [54148.121672] [] usb_disable_device+0xa8/0x130 [54148.121678] [] usb_disconnect+0xd3/0x170 [54148.121683] [] hub_thread+0x50e/0x1260 [54148.121689] [] ? autoremove_wake_function+0x0/0x40 [54148.121694] [] ? hub_thread+0x0/0x1260 [54148.121698] [] kthread+0x96/0xa0 [54148.121705] [] kernel_thread_helper+0x4/0x10 [54148.121710] [] ? kthread+0x0/0xa0 [54148.121714] [] ? kernel_thread_helper+0x0/0x10 [54267.913317] INFO: task khubd:42 blocked for more than 120 seconds. [54267.913322] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [54267.913327] khubd D 00000000ffffffff 0 42 2 0x00000000 [54267.913333] ffff8801270fdb00 0000000000000046 dead000000200200 0000000000015740 [54267.913340] ffff8801270fdfd8 0000000000015740 ffff8801270fdfd8 ffff8801270f5c00 [54267.913346] 0000000000015740 0000000000015740 ffff8801270fdfd8 0000000000015740 [54267.913351] Call Trace: [54267.913363] [] ? prepare_to_wait+0x60/0x90 [54267.913378] [] dvb_unregister_frontend+0xc5/0x110 [dvb_core] [54267.913384] [] ? autoremove_wake_function+0x0/0x40 [54267.913392] [] ? idr_remove+0x187/0x1f0 [54267.913398] [] dvb_usb_adapter_frontend_exit+0x22/0x40 [dvb_usb] [54267.913405] [] dvb_usb_exit+0x53/0xd0 [dvb_usb] [54267.913411] [] dvb_usb_device_exit+0x49/0x60 [dvb_usb] [54267.913418] [] af9015_usb_device_exit+0x41/0x60 [dvb_usb_af9015] [54267.913427] [] usb_unbind_interface+0x61/0x190 [54267.913435] [] __device_release_driver+0x6f/0xe0 [54267.913441] [] device_release_driver+0x2d/0x40 [54267.913446] [] bus_remove_device+0x9a/0xc0 [54267.913451] [] device_del+0x127/0x1d0 [54267.913457] [] usb_disable_device+0xa8/0x130 [54267.913462] [] usb_disconnect+0xd3/0x170 [54267.913467] [] hub_thread+0x50e/0x1260 [54267.913473] [] ? autoremove_wake_function+0x0/0x40 [54267.913478] [] ? hub_thread+0x0/0x1260 [54267.913483] [] kthread+0x96/0xa0 [54267.913490] [] kernel_thread_helper+0x4/0x10 [54267.913494] [] ? kthread+0x0/0xa0 [54267.913499] [] ? kernel_thread_helper+0x0/0x10 [54387.706298] INFO: task khubd:42 blocked for more than 120 seconds. [54387.706304] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [54387.706308] khubd D 00000000ffffffff 0 42 2 0x00000000 [54387.706315] ffff8801270fdb00 0000000000000046 dead000000200200 0000000000015740 [54387.706321] ffff8801270fdfd8 0000000000015740 ffff8801270fdfd8 ffff8801270f5c00 [54387.706327] 0000000000015740 0000000000015740 ffff8801270fdfd8 0000000000015740 [54387.706333] Call Trace: [54387.706344] [] ? prepare_to_wait+0x60/0x90 [54387.706360] [] dvb_unregister_frontend+0xc5/0x110 [dvb_core] [54387.706366] [] ? autoremove_wake_function+0x0/0x40 [54387.706373] [] ? idr_remove+0x187/0x1f0 [54387.706380] [] dvb_usb_adapter_frontend_exit+0x22/0x40 [dvb_usb] [54387.706386] [] dvb_usb_exit+0x53/0xd0 [dvb_usb] [54387.706393] [] dvb_usb_device_exit+0x49/0x60 [dvb_usb] [54387.706399] [] af9015_usb_device_exit+0x41/0x60 [dvb_usb_af9015] [54387.706408] [] usb_unbind_interface+0x61/0x190 [54387.706417] [] __device_release_driver+0x6f/0xe0 [54387.706422] [] device_release_driver+0x2d/0x40 [54387.706428] [] bus_remove_device+0x9a/0xc0 [54387.706433] [] device_del+0x127/0x1d0 [54387.706438] [] usb_disable_device+0xa8/0x130 [54387.706443] [] usb_disconnect+0xd3/0x170 [54387.706448] [] hub_thread+0x50e/0x1260 [54387.706454] [] ? autoremove_wake_function+0x0/0x40 [54387.706459] [] ? hub_thread+0x0/0x1260 [54387.706464] [] kthread+0x96/0xa0 [54387.706470] [] kernel_thread_helper+0x4/0x10 [54387.706475] [] ? kthread+0x0/0xa0 [54387.706480] [] ? kernel_thread_helper+0x0/0x10 [54507.498084] INFO: task khubd:42 blocked for more than 120 seconds. [54507.498089] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [54507.498094] khubd D 00000000ffffffff 0 42 2 0x00000000 [54507.498100] ffff8801270fdb00 0000000000000046 dead000000200200 0000000000015740 [54507.498107] ffff8801270fdfd8 0000000000015740 ffff8801270fdfd8 ffff8801270f5c00 [54507.498113] 0000000000015740 0000000000015740 ffff8801270fdfd8 0000000000015740 and so on. The same trace is repeated sevral time in the dmesg. I'm using a 2.6.34 unpatched on a SPM x86_64 box. It looks like I cannot reproduce the bug if I close VLC before I unplug the device. However, the bug is annoying because the usb is fully screwed up. The only way to get usb back on business is to reboot. Xavier