Bug 191891
Summary: | dtt200u usb driver no longer loads | ||
---|---|---|---|
Product: | v4l-dvb | Reporter: | Marc Duponcheel (marc) |
Component: | dvb-usb | Assignee: | dvb-usb (v4l-dvb_dvb-usb) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | moritz.haseloff |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugzilla.kernel.org/show_bug.cgi?id=195329 | ||
Kernel Version: | 4.9.0 | Subsystem: | |
Regression: | Yes | Bisected commit-id: |
Description
Marc Duponcheel
2017-01-03 23:24:19 UTC
Note that dvb-usb/dtt200u.c recently changed so these latest commits may have introduced defect [ 1025.958836] dvb-usb: found a 'WideView WT-220U PenType Receiver (based on ZL353)' in cold state, will try to load a firmware [ 1025.958853] dvb-usb: downloading firmware from file 'dvb-usb-wt220u-zl0353-01.fw' [ 1025.958855] dvb-usb: could not stop the USB controller CPU. [ 1025.958856] dvb-usb: error while transferring firmware (transferred size: -11, block size: 3) [ 1025.958856] dvb-usb: firmware download failed at 8 with -22 [ 1025.958867] usbcore: registered new interface driver dvb_usb_dtt200u [ 2.789902] dvb-usb: downloading firmware from file 'dvb-usb-wt220u-zl0353-01.fw' [ 2.789905] ------------[ cut here ]------------ [ 2.789911] WARNING: CPU: 3 PID: 2196 at drivers/usb/core/hcd.c:1584 usb_hcd_map_urb_for_dma+0x430/0x560 [usbcore] [ 2.789912] transfer buffer not dma capable [ 2.789912] Modules linked in: btusb dvb_usb_dtt200u(+) dvb_usb_af9035(+) btrtl btbcm dvb_usb dvb_usb_v2 btintel dvb_core bluetooth rc_core rfkill x86_pkg_temp_thermal intel_powerclamp coretemp crc32_pclmul aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd drm_kms_helper syscopyarea sysfillrect pcspkr i2c_i801 sysimgblt fb_sys_fops drm i2c_smbus i2c_core r8169 lpc_ich mfd_core mii thermal fan rtc_cmos video button acpi_cpufreq processor snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd crc32c_intel ahci libahci libata xhci_pci ehci_pci xhci_hcd ehci_hcd usbcore usb_common dm_mirror dm_region_hash dm_log dm_mod [ 2.789936] CPU: 3 PID: 2196 Comm: systemd-udevd Not tainted 4.9.0-gentoo #1 [ 2.789937] Hardware name: ASUS All Series/H81I-PLUS, BIOS 0401 07/23/2013 [ 2.789938] ffffc9000339b690 ffffffff812bd397 ffffc9000339b6e0 0000000000000000 [ 2.789939] ffffc9000339b6d0 ffffffff81055c86 000006300339b6a0 ffff880116c0c000 [ 2.789941] 0000000000000000 0000000000000000 0000000000000001 ffff880116c08000 [ 2.789942] Call Trace: [ 2.789945] [<ffffffff812bd397>] dump_stack+0x4d/0x66 [ 2.789947] [<ffffffff81055c86>] __warn+0xc6/0xe0 [ 2.789948] [<ffffffff81055cea>] warn_slowpath_fmt+0x4a/0x50 [ 2.789952] [<ffffffffa006d460>] usb_hcd_map_urb_for_dma+0x430/0x560 [usbcore] [ 2.789954] [<ffffffff814ed5a8>] ? io_schedule_timeout+0xd8/0x110 [ 2.789956] [<ffffffffa006e09c>] usb_hcd_submit_urb+0x9c/0x980 [usbcore] [ 2.789958] [<ffffffff812d0ebf>] ? copy_page_to_iter+0x14f/0x2b0 [ 2.789960] [<ffffffff81126818>] ? pagecache_get_page+0x28/0x240 [ 2.789962] [<ffffffff8118c2a0>] ? touch_atime+0x20/0xa0 [ 2.789964] [<ffffffffa006f7c4>] usb_submit_urb+0x2c4/0x520 [usbcore] [ 2.789967] [<ffffffffa006feca>] usb_start_wait_urb+0x5a/0xe0 [usbcore] [ 2.789969] [<ffffffffa007000c>] usb_control_msg+0xbc/0xf0 [usbcore] [ 2.789970] [<ffffffffa067903d>] usb_cypress_writemem+0x3d/0x40 [dvb_usb] [ 2.789972] [<ffffffffa06791cf>] usb_cypress_load_firmware+0x4f/0x130 [dvb_usb] [ 2.789973] [<ffffffff8109dbbe>] ? console_unlock+0x2fe/0x5d0 [ 2.789974] [<ffffffff8109e10c>] ? vprintk_emit+0x27c/0x410 [ 2.789975] [<ffffffff8109e40a>] ? vprintk_default+0x1a/0x20 [ 2.789976] [<ffffffff81124d76>] ? printk+0x43/0x4b [ 2.789977] [<ffffffffa0679310>] dvb_usb_download_firmware+0x60/0xd0 [dvb_usb] [ 2.789979] [<ffffffffa0679898>] dvb_usb_device_init+0x3d8/0x610 [dvb_usb] [ 2.789981] [<ffffffffa069e302>] dtt200u_usb_probe+0x92/0xd0 [dvb_usb_dtt200u] [ 2.789984] [<ffffffffa007420c>] usb_probe_interface+0xfc/0x270 [usbcore] [ 2.789985] [<ffffffff8138bf95>] driver_probe_device+0x215/0x2d0 [ 2.789986] [<ffffffff8138c0e6>] __driver_attach+0x96/0xa0 [ 2.789987] [<ffffffff8138c050>] ? driver_probe_device+0x2d0/0x2d0 [ 2.789988] [<ffffffff81389ffb>] bus_for_each_dev+0x5b/0x90 [ 2.789989] [<ffffffff8138b7b9>] driver_attach+0x19/0x20 [ 2.789990] [<ffffffff8138b33c>] bus_add_driver+0x11c/0x220 [ 2.789991] [<ffffffff8138c91b>] driver_register+0x5b/0xd0 [ 2.789994] [<ffffffffa0072f6c>] usb_register_driver+0x7c/0x130 [usbcore] [ 2.789994] [<ffffffffa06a5000>] ? 0xffffffffa06a5000 [ 2.789996] [<ffffffffa06a501e>] dtt200u_usb_driver_init+0x1e/0x20 [dvb_usb_dtt200u] [ 2.789997] [<ffffffff81000408>] do_one_initcall+0x38/0x140 [ 2.789998] [<ffffffff8116001c>] ? __vunmap+0x7c/0xc0 [ 2.789999] [<ffffffff81124fb0>] ? do_init_module+0x22/0x1d2 [ 2.790000] [<ffffffff81124fe8>] do_init_module+0x5a/0x1d2 [ 2.790002] [<ffffffff810c96b1>] load_module+0x1e11/0x2580 [ 2.790003] [<ffffffff810c68b0>] ? show_taint+0x30/0x30 [ 2.790004] [<ffffffff81177250>] ? kernel_read_file+0x100/0x190 [ 2.790005] [<ffffffff810c9ffa>] SyS_finit_module+0xba/0xc0 [ 2.790007] [<ffffffff814f13e0>] entry_SYSCALL_64_fastpath+0x13/0x94 [ 2.790008] ---[ end trace c78a74e78baec6fc ]--- Same issue on 4.9.1 ... please consider looking into this defect. Let me know how I can help. 4.9.1 dmesg snip -- [ 6823.035031] usb 1-10: new high-speed USB device number 3 using xhci_hcd [ 6823.205188] usb 1-10: New USB device found, idVendor=14aa, idProduct=022a [ 6823.205189] usb 1-10: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 6823.212910] dvb-usb: found a 'WideView WT-220U PenType Receiver (based on ZL353)' in cold state, will try to load a firmware [ 6823.213241] dvb-usb: downloading firmware from file 'dvb-usb-wt220u-zl0353-01.fw' [ 6823.213243] ------------[ cut here ]------------ [ 6823.213249] WARNING: CPU: 1 PID: 4160 at drivers/usb/core/hcd.c:1584 usb_hcd_map_urb_for_dma+0x430/0x560 [usbcore] [ 6823.213249] transfer buffer not dma capable [ 6823.213249] Modules linked in: dvb_usb_dtt200u(+) dvb_usb rfcomm nvidia_modeset(PO) nvidia(PO) cmac snd_hda_intel snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss nfs lockd grace sunrpc bnep autofs4 ipv6 binfmt_misc snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support x86_pkg_temp_thermal rc_it913x_v2 intel_powerclamp coretemp crc32_pclmul aesni_intel it913x regmap_i2c af9033 btusb btrtl btbcm btintel bluetooth dvb_usb_af9035 rfkill dvb_usb_v2 aes_x86_64 glue_helper dvb_core lrw gf128mul ablk_helper snd_hda_codec_realtek rc_core cryptd snd_hda_codec_generic i2c_i801 pcspkr i2c_smbus i2c_core snd_hda_codec snd_hwdep snd_hda_core lpc_ich snd_pcm mfd_core snd_timer snd rtc_cmos video fan thermal button acpi_cpufreq processor r8169 mii ahci crc32c_intel libahci libata ehci_pci [ 6823.213271] xhci_pci ehci_hcd xhci_hcd usbcore usb_common dm_mirror dm_region_hash dm_log dm_mod [last unloaded: snd_hda_intel] [ 6823.213276] CPU: 1 PID: 4160 Comm: systemd-udevd Tainted: P O 4.9.1-gentoo #1 [ 6823.213276] Hardware name: ASUS All Series/H81I-PLUS, BIOS 0401 07/23/2013 [ 6823.213277] ffffc9000e5e7690 ffffffff812bda27 ffffc9000e5e76e0 0000000000000000 [ 6823.213279] ffffc9000e5e76d0 ffffffff81055cd6 000006300e5e76a0 ffff88011963b480 [ 6823.213280] 0000000000000000 0000000000000000 0000000000000001 ffff88011e1d2000 [ 6823.213281] Call Trace: [ 6823.213285] [<ffffffff812bda27>] dump_stack+0x4d/0x66 [ 6823.213287] [<ffffffff81055cd6>] __warn+0xc6/0xe0 [ 6823.213288] [<ffffffff81055d3a>] warn_slowpath_fmt+0x4a/0x50 [ 6823.213290] [<ffffffffa0043430>] usb_hcd_map_urb_for_dma+0x430/0x560 [usbcore] [ 6823.213292] [<ffffffff814ee5d8>] ? io_schedule_timeout+0xd8/0x110 [ 6823.213295] [<ffffffffa004406c>] usb_hcd_submit_urb+0x9c/0x980 [usbcore] [ 6823.213297] [<ffffffff812d158f>] ? copy_page_to_iter+0x14f/0x2b0 [ 6823.213298] [<ffffffff81126988>] ? pagecache_get_page+0x28/0x240 [ 6823.213300] [<ffffffff8118c470>] ? touch_atime+0x20/0xa0 [ 6823.213303] [<ffffffffa0045794>] usb_submit_urb+0x2c4/0x520 [usbcore] [ 6823.213305] [<ffffffffa0045e9a>] usb_start_wait_urb+0x5a/0xe0 [usbcore] [ 6823.213307] [<ffffffffa0045fdc>] usb_control_msg+0xbc/0xf0 [usbcore] [ 6823.213308] [<ffffffffa006403d>] usb_cypress_writemem+0x3d/0x40 [dvb_usb] [ 6823.213310] [<ffffffffa00641cf>] usb_cypress_load_firmware+0x4f/0x130 [dvb_usb] [ 6823.213311] [<ffffffff8109dd81>] ? console_unlock+0x341/0x5d0 [ 6823.213312] [<ffffffff8109e28c>] ? vprintk_emit+0x27c/0x410 [ 6823.213313] [<ffffffff8109e58a>] ? vprintk_default+0x1a/0x20 [ 6823.213314] [<ffffffff81124ee6>] ? printk+0x43/0x4b [ 6823.213315] [<ffffffffa0064310>] dvb_usb_download_firmware+0x60/0xd0 [dvb_usb] [ 6823.213316] [<ffffffffa0064898>] dvb_usb_device_init+0x3d8/0x610 [dvb_usb] [ 6823.213318] [<ffffffffa006c302>] dtt200u_usb_probe+0x92/0xd0 [dvb_usb_dtt200u] [ 6823.213320] [<ffffffffa004a1dc>] usb_probe_interface+0xfc/0x270 [usbcore] [ 6823.213322] [<ffffffff8138c675>] driver_probe_device+0x215/0x2d0 [ 6823.213323] [<ffffffff8138c7c6>] __driver_attach+0x96/0xa0 [ 6823.213324] [<ffffffff8138c730>] ? driver_probe_device+0x2d0/0x2d0 [ 6823.213325] [<ffffffff8138a6db>] bus_for_each_dev+0x5b/0x90 [ 6823.213326] [<ffffffff8138be99>] driver_attach+0x19/0x20 [ 6823.213327] [<ffffffff8138ba1c>] bus_add_driver+0x11c/0x220 [ 6823.213328] [<ffffffff8138cffb>] driver_register+0x5b/0xd0 [ 6823.213330] [<ffffffffa0048f3c>] usb_register_driver+0x7c/0x130 [usbcore] [ 6823.213331] [<ffffffffa0020000>] ? 0xffffffffa0020000 [ 6823.213332] [<ffffffffa002001e>] dtt200u_usb_driver_init+0x1e/0x20 [dvb_usb_dtt200u] [ 6823.213333] [<ffffffff81000408>] do_one_initcall+0x38/0x140 [ 6823.213334] [<ffffffff8116021c>] ? __vunmap+0x7c/0xc0 [ 6823.213335] [<ffffffff81125120>] ? do_init_module+0x22/0x1d2 [ 6823.213336] [<ffffffff81125158>] do_init_module+0x5a/0x1d2 [ 6823.213337] [<ffffffff810c97b2>] load_module+0x1d82/0x25a0 [ 6823.213338] [<ffffffff810c6a40>] ? show_taint+0x30/0x30 [ 6823.213340] [<ffffffff811774c0>] ? kernel_read_file+0x100/0x190 [ 6823.213341] [<ffffffff810ca1aa>] SyS_finit_module+0xba/0xc0 [ 6823.213343] [<ffffffff814f23e0>] entry_SYSCALL_64_fastpath+0x13/0x94 [ 6823.213343] ---[ end trace f9ffe5d2ae499be7 ]--- [ 6823.213344] dvb-usb: could not stop the USB controller CPU. [ 6823.213345] dvb-usb: error while transferring firmware (transferred size: -11, block size: 3) [ 6823.213346] dvb-usb: firmware download failed at 8 with -22 [ 6823.213360] usbcore: registered new interface driver dvb_usb_dtt200u -- I reverted commit 7724325a19fb0a51d2a69bd2915b33f0ff197f5a in 4.9.1 but bug 191891 is still present. Last working kernel was 4.8.15 Thanks. Same issue on 4.9.2 ... please consider looking into this defect. Let me know how I can help. Same issue on 4.9.3 and 4.9.4 ... please consider looking into this defect. Let me know how I can help. Same issue on 4.9.5 ... please consider looking into this defect. Let me know how I can help. PS: these 'old' Freecom DVB-T sticks are rather popular. It's a pity they stopped working. Same issue on 4.9.5 ... thanks for kind attention. Let me know how I can help. sorry meant 4.9.6 fwiw still present in 4.9.7 and 4.9.8 jumping to 4.10.0 ... still present I guess. Please have a look. If below stack dump reveals any misuse from my part, I apologise [ 5369.401778] usb 1-10: new high-speed USB device number 3 using xhci_hcd [ 5369.571913] usb 1-10: New USB device found, idVendor=14aa, idProduct=022a [ 5369.571914] usb 1-10: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 5369.584975] dvb-usb: found a 'WideView WT-220U PenType Receiver (based on ZL353)' in cold state, will try to load a firmware [ 5369.585342] dvb-usb: downloading firmware from file 'dvb-usb-wt220u-zl0353-01.fw' [ 5369.585345] ------------[ cut here ]------------ [ 5369.585353] WARNING: CPU: 2 PID: 6730 at drivers/usb/core/hcd.c:1584 usb_hcd_map_urb_for_dma+0x430/0x560 [usbcore] [ 5369.585353] transfer buffer not dma capable [ 5369.585354] Modules linked in: dvb_usb_dtt200u(+) dvb_usb rfcomm nvidia_modeset(PO) nvidia(PO) cmac snd_hda_intel snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss nfs lockd grace sunrpc bnep autofs4 ipv6 binfmt_misc snd_hda_codec_hdmi rc_it913x_v2 iTCO_wdt iTCO_vendor_support it913x regmap_i2c af9033 x86_pkg_temp_thermal intel_powerclamp coretemp crc32_pclmul pcbc btusb btrtl btbcm btintel dvb_usb_af9035 dvb_usb_v2 bluetooth dvb_core rfkill rc_core aesni_intel aes_x86_64 crypto_simd i2c_i801 cryptd snd_hda_codec_realtek glue_helper i2c_core pcspkr snd_hda_codec_generic lpc_ich mfd_core snd_hda_codec snd_hwdep snd_hda_core snd_pcm rtc_cmos snd_timer snd video thermal fan button r8169 mii ahci libahci crc32c_intel libata ehci_pci ehci_hcd xhci_pci xhci_hcd usbcore usb_common [ 5369.585385] dm_mirror dm_region_hash dm_log dm_mod [last unloaded: snd_hda_intel] [ 5369.585389] CPU: 2 PID: 6730 Comm: systemd-udevd Tainted: P O 4.10.0-gentoo #1 [ 5369.585390] Hardware name: ASUS All Series/H81I-PLUS, BIOS 0401 07/23/2013 [ 5369.585391] Call Trace: [ 5369.585395] dump_stack+0x4d/0x66 [ 5369.585397] __warn+0xc6/0xe0 [ 5369.585398] warn_slowpath_fmt+0x4a/0x50 [ 5369.585403] usb_hcd_map_urb_for_dma+0x430/0x560 [usbcore] [ 5369.585405] ? __delayacct_blkio_end+0x2b/0x40 [ 5369.585408] usb_hcd_submit_urb+0x9c/0x980 [usbcore] [ 5369.585410] ? copy_page_to_iter+0x14f/0x2b0 [ 5369.585413] ? pagecache_get_page+0x28/0x240 [ 5369.585415] ? touch_atime+0x20/0xa0 [ 5369.585418] usb_submit_urb+0x2c6/0x520 [usbcore] [ 5369.585422] usb_start_wait_urb+0x5a/0xe0 [usbcore] [ 5369.585424] usb_control_msg+0xbc/0xf0 [usbcore] [ 5369.585426] usb_cypress_writemem+0x3d/0x40 [dvb_usb] [ 5369.585428] usb_cypress_load_firmware+0x4f/0x130 [dvb_usb] [ 5369.585430] ? console_unlock+0x2ab/0x4a0 [ 5369.585431] ? vprintk_emit+0x274/0x3f0 [ 5369.585432] ? vprintk_default+0x1a/0x20 [ 5369.585435] ? printk+0x43/0x4b [ 5369.585436] dvb_usb_download_firmware+0x60/0xd0 [dvb_usb] [ 5369.585438] dvb_usb_device_init+0x3d8/0x610 [dvb_usb] [ 5369.585440] dtt200u_usb_probe+0x92/0xd0 [dvb_usb_dtt200u] [ 5369.585444] usb_probe_interface+0xfc/0x270 [usbcore] [ 5369.585447] driver_probe_device+0x1f8/0x2e0 [ 5369.585449] __driver_attach+0x96/0xa0 [ 5369.585451] ? driver_probe_device+0x2e0/0x2e0 [ 5369.585452] bus_for_each_dev+0x5b/0x90 [ 5369.585454] driver_attach+0x19/0x20 [ 5369.585456] bus_add_driver+0x11c/0x220 [ 5369.585457] driver_register+0x5b/0xd0 [ 5369.585460] usb_register_driver+0x7c/0x130 [usbcore] [ 5369.585461] ? 0xffffffffa0024000 [ 5369.585462] dtt200u_usb_driver_init+0x1e/0x20 [dvb_usb_dtt200u] [ 5369.585463] do_one_initcall+0x3e/0x160 [ 5369.585465] ? __vunmap+0x7c/0xc0 [ 5369.585467] ? do_init_module+0x22/0x1d2 [ 5369.585468] do_init_module+0x5a/0x1d2 [ 5369.585469] load_module+0x1d83/0x25a0 [ 5369.585470] ? find_symbol+0x70/0x70 [ 5369.585472] ? kernel_read_file+0x100/0x190 [ 5369.585473] SyS_finit_module+0xba/0xc0 [ 5369.585475] entry_SYSCALL_64_fastpath+0x13/0x94 [ 5369.585476] RIP: 0033:0x7f1c3c06ac99 [ 5369.585477] RSP: 002b:00007ffe4074ef98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 5369.585478] RAX: ffffffffffffffda RBX: 00007ffe4074ef50 RCX: 00007f1c3c06ac99 [ 5369.585478] RDX: 0000000000000000 RSI: 00005561c1b78480 RDI: 000000000000000d [ 5369.585479] RBP: 00007ffe4074ef90 R08: 0000000000000000 R09: 000000000000000c [ 5369.585479] R10: 000000000000000d R11: 0000000000000246 R12: 00005561c1b782f0 [ 5369.585479] R13: 00007f1c3c964d00 R14: 00005561c1b5f410 R15: 00005561c1b71190 [ 5369.585480] ---[ end trace 60be7cc99d0df5a6 ]--- [ 5369.585482] dvb-usb: could not stop the USB controller CPU. [ 5369.585483] dvb-usb: error while transferring firmware (transferred size: -11, block size: 3) [ 5369.585483] dvb-usb: firmware download failed at 8 with -22 [ 5369.585500] usbcore: registered new interface driver dvb_usb_dtt200u Hello Marc, I am experiencing this problem also. Did you try the patch Mauro send to you? I found this via google: https://patchwork.kernel.org/patch/9534751/ There is also a slightly different version here: https://lkml.org/lkml/headers/2017/2/18/192 strange: I must have missed this patch Mauro sent me! let me try it Hi all, The patch https://lkml.org/lkml/headers/2017/2/18/192 did fix my issue Sorry I had not spotted it to try sooner. Thanks! Sorry to ask. Is there a fix ready for future linux versions? I am happy to test/ Have a nice day 4.10.8 has fix ! thanks a lot! please close defect |