<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On 27 Jul 2007, at 15:18, Soeren Moch wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Respect the patch, it works for me. I have not any disconnect in some</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">days, althought it is dificult to say that the problem is 100% solved,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">because disconnects are random.</div> </blockquote></blockquote></blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Some days ago I wrote a patch for the Nova-T-Stick (see thread</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">"dib0700 problems (nova-T usb stick)" ). As I could see there,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">disconnects are not random, they can only occur directly after a</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">streamon firmware call. The dib0700 bridge seems to write unintentionally</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">to the usb bus (or at least driving current into D+/D- or switching</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">pull-up/down resistors on/off or doing similar strange things) after a</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">streamon firmware call, usually causing<span class="Apple-converted-space">  </span>protocol errors (not a real</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">problem, maybe only for running isochronous transfers to other devices</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">on the bus), but causing a usb disconnect when accidentally hitting a SOF</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">packet. So avoiding streamon firmware calls will decrease the disconnect</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rate. This is the same idea as in your patches.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Relying on device name seems somewhat hackish, however, and doesn't fix</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">anything for nova-t stick ;)</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">There are other form to do the same, more easily, for all the dibcom<span class="Apple-converted-space"> </span></div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">devices,<span class="Apple-converted-space"> </span></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">but there is a problem: streaming state don't go off when closing the<span class="Apple-converted-space"> </span></div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">device,<span class="Apple-converted-space"> </span></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">althought perphaps that is not important.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">See the atached patch.</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This new patch will not help for a Nova-T stick due to the "i2c gating</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">problem" I have seen there (see thread mentioned above). When simply</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">starting usb streaming and leaving it on all the time, you are not able</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">set new tuning parameters, which of course makes this stick useless.</div></blockquote><br></div><div>The patch doesn't completely fix my usb disconnects. Do you think the kernel stack trace below indicates a i2c gating problem?</div><div><br class="webkit-block-placeholder"></div><div><div>Jul 28 11:36:17 htpc2 vdr: [10480] switching to channel 5</div><div>Jul 28 11:36:17 htpc2 vdr: [14204] transfer thread ended (pid=10480, tid=14204)</div><div>Jul 28 11:36:17 htpc2 vdr: [10480] cTS2PES got 6 TS errors, 3 TS continuity errors</div><div>Jul 28 11:36:17 htpc2 vdr: [10480] cTS2PES got 0 TS errors, 3 TS continuity errors</div><div>Jul 28 11:36:17 htpc2 vdr: [10480] buffer stats: 193452 (9%) used</div><div>Jul 28 11:36:17 htpc2 vdr: [14214] transfer thread started (pid=10480, tid=14214)</div><div>Jul 28 11:36:17 htpc2 kernel: usb 6-1: USB disconnect, address 2</div><div>Jul 28 11:36:17 htpc2 kernel: mt2060 I2C write failed (len=2)</div><div>Jul 28 11:36:17 htpc2 kernel: MT2060: IF1: 1220MHz</div><div>Jul 28 11:36:17 htpc2 kernel: MT2060: PLL freq=562000kHz  f_lo1=1782000kHz  f_lo2=1183850kHz</div><div>Jul 28 11:36:17 htpc2 kernel: MT2060: PLL div1=111  num1=24  div2=73  num2=8115</div><div>Jul 28 11:36:17 htpc2 kernel: MT2060: PLL [1..5]: 56 6f  3 fb 93</div><div>Jul 28 11:36:17 htpc2 kernel: mt2060 I2C write failed (len=6)</div><div>Jul 28 11:36:17 htpc2 kernel: mt2060 I2C read failed</div><div>Jul 28 11:36:17 htpc2 last message repeated 9 times</div><div>Jul 28 11:36:17 htpc2 vdr: [14206] TS buffer on device 2 thread ended (pid=10480, tid=14206)</div><div>Jul 28 11:36:17 htpc2 vdr: [14205] buffer stats: 107536 (5%) used</div><div>Jul 28 11:36:17 htpc2 vdr: [14205] receiver on device 2 thread ended (pid=10480, tid=14205)</div><div>Jul 28 11:36:17 htpc2 vdr: [14219] receiver on device 2 thread started (pid=10480, tid=14219)</div><div>Jul 28 11:36:17 htpc2 vdr: [14220] TS buffer on device 2 thread started (pid=10480, tid=14220)</div><div>Jul 28 11:36:18 htpc2 kernel: mt2060 I2C write failed</div><div>Jul 28 11:36:18 htpc2 kernel: list_del corruption. prev-&gt;next should be c9fb8dbc, but was c152e1a0</div><div>Jul 28 11:36:18 htpc2 kernel: ------------[ cut here ]------------</div><div>Jul 28 11:36:18 htpc2 kernel: kernel BUG at lib/list_debug.c:67!</div><div>Jul 28 11:36:18 htpc2 kernel: invalid opcode: 0000 [#1]</div><div>Jul 28 11:36:18 htpc2 kernel: SMP </div><div>Jul 28 11:36:18 htpc2 kernel: last sysfs file: /module/libata/version</div><div>Jul 28 11:36:18 htpc2 kernel: Modules linked in: autofs4 hidp rfcomm l2cap bluetooth sunrpc ipv6 nf_conntrack_netbios_ns nf_conntrack_ipv4 xt_state nf_connt</div><div>rack nfnetlink xt_tcpudp ipt_REJECT iptable_filter ip_tables x_tables ext2 dm_multipath video sbs button dock battery ac parport_pc lp parport loop snd_via8</div><div>2xx gameport snd_ac97_codec ac97_bus snd_seq_dummy cx22702 cx88_dvb cx88_vp3054_i2c video_buf_dvb snd_seq_oss snd_seq_midi_event mt2060 snd_seq snd_pcm_oss </div><div>snd_mixer_oss dvb_usb_dib0700 dib7000m snd_pcm dib7000p cx8802 cx8800 dvb_usb stv0299 cx88xx dib3000mc snd_timer pegasus ir_common snd_page_alloc dibx000_co</div><div>mmon i2c_viapro i2c_algo_bit mii snd_mpu401_uart b2c2_flexcop_pci tveeprom b2c2_flexcop snd_rawmidi videodev via_ircc viafb(U) rtc_cmos compat_ioctl32 dvb_c</div><div>ore snd_seq_device serio_raw firewire_ohci v4l1_compat irda firewire_core v4l2_common snd dvb_pll video_buf i2c_core btcx_risc crc_itu_t crc_ccitt soundcore</div><div> sr_mod cdrom sg dm_snapshot dm_zero dm_mirror dm_mod sata_via ata_generic pata_via libat</div><div>Jul 28 11:36:18 htpc2 kernel:  sd_mod scsi_mod ext3 jbd mbcache ehci_hcd ohci_hcd uhci_hcd</div><div><div>Jul 28 11:36:18 htpc2 kernel: CPU:    0</div><div>Jul 28 11:36:18 htpc2 kernel: EIP:    0060:[&lt;c04ef31d&gt;]    Not tainted VLI</div><div>Jul 28 11:36:18 htpc2 kernel: EFLAGS: 00210086   (2.6.22.1-27.fc7 #1)</div><div>Jul 28 11:36:18 htpc2 kernel: EIP is at list_del+0x21/0x5d</div><div>Jul 28 11:36:18 htpc2 kernel: eax: 00000048   ebx: c152e19c   ecx: 00200046   edx: 00200000</div><div>Jul 28 11:36:18 htpc2 kernel: esi: c152e194   edi: 00200282   ebp: d77a2600   esp: c9fb8d98</div><div>Jul 28 11:36:18 htpc2 kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0033  ss: 0068</div><div>Jul 28 11:36:18 htpc2 kernel: Process vdr (pid: 10485, ti=c9fb8000 task=d77a2600 task.ti=c9fb8000)</div><div>Jul 28 11:36:18 htpc2 kernel: Stack: c06b1bb6 c9fb8dbc c152e1a0 c152e19c c060c7f8 00000000 00000001 d77a2600 </div><div>Jul 28 11:36:18 htpc2 kernel:        c042310d c152e1a0 c152e1a0 80286f4e ffffffed d4af8820 c1742800 c060c6bf </div><div>Jul 28 11:36:18 htpc2 kernel:        c152e000 c9fb8000 dc9d2daf 00000001 c9fb8e3c c13896b8 00000000 c9fb8e90 </div><div>Jul 28 11:36:18 htpc2 kernel: Call Trace:</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c060c7f8&gt;] __down_interruptible+0xc6/0xf0</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c042310d&gt;] default_wake_function+0x0/0xc</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c060c6bf&gt;] __down_failed_interruptible+0x7/0xc</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;dc9d2daf&gt;] dvb_frontend_ioctl+0xab/0x8d0 [dvb_core]</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0440127&gt;] unqueue_me+0x7f/0x87</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0440e7b&gt;] futex_wait+0x23f/0x2c2</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c046a6a4&gt;] find_extend_vma+0x12/0x49</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;dc9cd15c&gt;] dvb_generic_ioctl+0x0/0x3b [dvb_core]</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;dc9cd105&gt;] dvb_usercopy+0xa9/0x100 [dvb_core]</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0420ada&gt;] update_curr+0x23b/0x25c</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0420838&gt;] update_stats_wait_end+0x84/0xad</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;dc9cd15c&gt;] dvb_generic_ioctl+0x0/0x3b [dvb_core]</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;dc9cd18e&gt;] dvb_generic_ioctl+0x32/0x3b [dvb_core]</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;dc9d2d04&gt;] dvb_frontend_ioctl+0x0/0x8d0 [dvb_core]</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;dc9cd15c&gt;] dvb_generic_ioctl+0x0/0x3b [dvb_core]</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0484934&gt;] do_ioctl+0x88/0xa0</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0453fd3&gt;] audit_syscall_exit+0x2f2/0x30e</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0484b83&gt;] vfs_ioctl+0x237/0x249</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0484be1&gt;] sys_ioctl+0x4c/0x67</div><div>Jul 28 11:36:18 htpc2 kernel:  [&lt;c0404f8e&gt;] syscall_call+0x7/0xb</div><div>Jul 28 11:36:18 htpc2 kernel:  =======================</div><div>Jul 28 11:36:18 htpc2 kernel: Code: 63 00 00 00 89 c3 eb e8 90 90 53 83 ec 0c 8b 48 04 8b 11 39 c2 74 18 89 54 24 08 89 44 24 04 c7 04 24 b6 1b 6b c0 e8 96 </div><div>a2 f3 ff &lt;0f&gt; 0b eb fe 8b 10 8b 5a 04 39 c3 74 18 89 5c 24 08 89 44 24 04 </div><div>Jul 28 11:36:18 htpc2 kernel: EIP: [&lt;c04ef31d&gt;] list_del+0x21/0x5d SS:ESP 0068:c9fb8d98</div><div>Jul 28 11:36:18 htpc2 kernel: cx88_wakeup: 8 buffers handled (should be 1)</div><div>Jul 28 11:36:20 htpc2 kernel: dvb-usb: could not submit URB no. 0 - get them all back</div><div>Jul 28 11:36:20 htpc2 kernel: dvb-usb: error while enabling fifo.</div><div>Jul 28 11:36:20 htpc2 vdr: [10490] ERROR: can't set filter (pid=18, tid=4E, mask=FE): No such device</div><div>Jul 28 11:36:21 htpc2 vdr: [10489] frontend 3 lost lock on channel 15, tp 578</div><div>Jul 28 11:36:23 htpc2 vdr: [10489] frontend 3 regained lock on channel 15, tp 578</div><div><div>Jul 28 11:36:24 htpc2 vdr: [10489] frontend 3 lost lock on channel 15, tp 578</div><div>Jul 28 11:36:26 htpc2 vdr: [10489] frontend 3 timed out while tuning to channel 15, tp 578</div><div>Jul 28 11:36:26 htpc2 kernel: mt2060 I2C write failed (len=2)</div><div>Jul 28 11:36:26 htpc2 kernel: MT2060: IF1: 1220MHz</div><div>Jul 28 11:36:26 htpc2 kernel: MT2060: PLL freq=578166kHz  f_lo1=1798000kHz  f_lo2=1183700kHz</div><div>Jul 28 11:36:26 htpc2 kernel: MT2060: PLL div1=112  num1=24  div2=73  num2=8038</div><div>Jul 28 11:36:26 htpc2 kernel: MT2060: PLL [1..5]: 46 70  6 f6 93</div><div>Jul 28 11:36:26 htpc2 kernel: mt2060 I2C write failed (len=6)</div><div>Jul 28 11:36:26 htpc2 kernel: mt2060 I2C read failed</div><div>Jul 28 11:36:26 htpc2 last message repeated 9 times</div><div>Jul 28 11:36:32 htpc2 vdr: [10480] switching to channel 7</div><div>Jul 28 11:36:32 htpc2 vdr: [14214] transfer thread ended (pid=10480, tid=14214)</div><div>Jul 28 11:36:32 htpc2 kernel: dvb-usb: error while stopping stream.</div><div>Jul 28 11:36:32 htpc2 vdr: [10480] buffer stats: 0 (0%) used</div><div>Jul 28 11:36:32 htpc2 kernel: dvb-usb: could not submit URB no. 0 - get them all back</div><div>Jul 28 11:36:32 htpc2 kernel: dvb-usb: error while enabling fifo.</div><div>Jul 28 11:36:32 htpc2 vdr: [10480] ERROR (dvbdevice.c,667): No such device</div><div>Jul 28 11:36:32 htpc2 vdr: [10480] ERROR: can't set PID 540 on device 2</div><div>Jul 28 11:36:32 htpc2 vdr: [14264] transfer thread started (pid=10480, tid=14264)</div><div>Jul 28 11:36:32 htpc2 vdr: [14220] TS buffer on device 2 thread ended (pid=10480, tid=14220)</div><div>Jul 28 11:36:32 htpc2 vdr: [14219] buffer stats: 0 (0%) used</div><div>Jul 28 11:36:32 htpc2 vdr: [14219] receiver on device 2 thread ended (pid=10480, tid=14219)</div><div>Jul 28 11:36:35 htpc2 kernel: mt2060 I2C write failed (len=2)</div><div>Jul 28 11:36:35 htpc2 kernel: MT2060: IF1: 1220MHz</div><div>Jul 28 11:36:35 htpc2 kernel: MT2060: PLL freq=578166kHz  f_lo1=1798000kHz  f_lo2=1183700kHz</div><div>Jul 28 11:36:35 htpc2 kernel: MT2060: PLL div1=112  num1=24  div2=73  num2=8038</div><div>Jul 28 11:36:35 htpc2 kernel: MT2060: PLL [1..5]: 46 70  6 f6 93</div><div>Jul 28 11:36:35 htpc2 kernel: mt2060 I2C write failed (len=6)</div><div>Jul 28 11:36:35 htpc2 kernel: mt2060 I2C read failed</div><div>Jul 28 11:36:35 htpc2 last message repeated 9 times</div><div>Jul 28 11:36:39 htpc2 vdr: [10480] switching to channel 8</div><div>Jul 28 11:36:39 htpc2 vdr: [14264] transfer thread ended (pid=10480, tid=14264)</div><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div></div><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>-- </div><div>Torgeir Veimo</div><div><a href="mailto:torgeir@pobox.com">torgeir@pobox.com</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span> </div><br></body></html>