Re: PROBLEM: EHCI disconnects DVB HDD

2011-11-26 Thread Johann Klammer

Alan Stern wrote:

Can you put the usbmon trace on a web server like pastebin.com?


Pastebin chickens out with: `413 Request Entity Too Large`
The dump is around 2.5 Mib. Most of it probably the dvb stream.
Have now recompiled the kernel with more debug output and will try to
reproduce the problem. From what I see by now, the HDD behaves flaky too.
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PROBLEM: EHCI disconnects DVB HDD

2011-11-26 Thread Johann Klammer

Alan Stern wrote:

This is probably a low-level hardware error.  Interference between the
two ports of some kind.


This is quite possible. Have been able to produce a more verbose logfile 
snippet.


[25045.734288] af9013_update_ber_unc: err bits:1286 total bits:1632 abort 
count:0
[25045.734355]  21 65 38 d3 85 03 03 01 10 
[25045.750125]  65 00 
[25045.750197]  21 66 38 d3 86 03 03 01 27 
[25045.766121]  66 00 
[25045.766195]  20 67 38 d3 91 00 03 01 
[25045.782147]  67 00 11 
[25045.782218]  21 68 38 d3 91 03 03 01 11 
[25045.798202]  68 00 
[25047.489434]  20 69 38 d5 07 00 03 01 
[25047.502162]  69 00 72 
[25047.502235] af9013_update_signal_strength
[25047.502271]  20 6a 38 d0 7c 00 03 01 
[25047.518083]  6a 00 a8 
[25047.518154]  20 6b 38 d0 7d 00 03 01 
[25047.534080]  6b 00 47 
[25047.534151]  20 6c 38 d2 e1 00 03 01 
[25047.550076]  6c 00 08 
[25047.550146]  20 6d 38 d2 e3 00 03 01 
[25047.566079]  6d 00 0e 
[25047.566146]  20 6e 38 d2 e4 00 03 01 
[25047.582140]  6e 00 93 
[25047.582207]  20 6f 38 d2 e5 00 03 01 
[25047.598075]  6f 00 0b 
[25047.598146]  20 70 38 d3 c1 00 03 01 
[25047.614080]  70 00 58 
[25047.614153]  21 71 38 d2 e2 03 03 01 01 
[25047.630138]  71 00 
[25047.645438]  20 72 38 d2 e6 00 03 01 
[25047.654097]  72 00 f0 
[25047.654169]  20 73 38 d2 e1 00 03 01 
[25047.670158]  73 00 08 
[25047.670230]  21 74 38 d2 e1 03 03 01 08 
[25047.686083]  74 00 
[25047.686153]  20 75 38 d3 91 00 03 01 
[25047.702087]  75 00 11 
[25047.702163]  20 76 38 d3 8a 00 03 01 
[25047.718158]  76 00 00 
[25047.718232]  20 77 38 d3 8b 00 03 01 
[25047.734083]  77 00 00 
[25047.734162]  20 78 38 d3 87 00 03 01 
[25047.750080]  78 00 53 
[25047.750150]  20 79 38 d3 88 00 03 01 
[25047.766142]  79 00 03 
[25047.766214]  20 7a 38 d3 89 00 03 01 
[25047.782061]  7a 00 00 
[25047.782148]  20 7b 38 d3 85 00 03 01 
[25047.798063]  7b 00 10 
[25047.798143]  20 7c 38 d3 86 00 03 01 
[25047.814130]  7c 00 27 
[25047.814216] af9013_update_ber_unc: err bits:851 total bits:1632 abort 
count:0
[25047.814279]  21 7d 38 d3 85 03 03 01 10 
[25047.830052]  7d 00 
[25047.830125]  21 7e 38 d3 86 03 03 01 27 
[25047.846069]  7e 00 
[25047.846130]  20 7f 38 d3 91 00 03 01 
[25047.862066]  7f 00 11 
[25047.862136]  21 80 38 d3 91 03 03 01 11 
[25047.878084]  80 00 
[25049.527925] hub 1-0:1.0: state 7 ports 6 chg  evt 000a
[25049.527990] ehci_hcd :00:10.3: GetStatus port:1 status 00100a 0  ACK 
POWER sig=se0 PEC CSC
[25049.528039] hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
[25049.528062] usb 1-1: USB disconnect, device number 2
[25049.528111] usb 1-1: unregistering device
[25049.528130] usb 1-1: unregistering interface 1-1:1.0
[25049.528374] usb-storage: storage_disconnect() called
[25049.541186] usb-storage: -- usb_stor_release_resources
[25049.541204] usb-storage: -- sending exit command to thread
[25049.541232] usb-storage: *** thread awakened.
[25049.541246] usb-storage: -- exiting
[25049.541299] usb-storage: -- dissociate_dev
[25049.541424] usb 1-1: usb_disable_device nuking all URBs
[25049.543935] ehci_hcd :00:10.3: GetStatus port:1 status 001803 0  ACK 
POWER sig=j CSC CONNECT
[25049.569580]  20 81 38 d5 07 00 03 01 
[25049.669642] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 
0x501
[25049.725674] ehci_hcd :00:10.3: port 1 high speed
[25049.725718] ehci_hcd :00:10.3: GetStatus port:1 status 001005 0  ACK 
POWER sig=se0 PE CONNECT
[25049.781694] usb 1-1: new high speed USB device number 4 using ehci_hcd
[25051.581718] usb 1-3: kdvb-ad-1-fe-0 timed out on ep2out len=0/8
[25051.581748] af9015: bulk message failed:-110 (8/0)
[25051.581802] af9013: I2C read failed reg:d507
[25052.565761]  20 82 38 d5 07 00 03 01 
[25054.577928] usb 1-3: kdvb-ad-1-fe-0 timed out on ep2out len=0/8
[25054.577956] af9015: bulk message failed:-110 (8/0)
[25054.578012] af9013: I2C read failed reg:d507
[25054.794039] usb 1-1: khubd timed out on ep0in len=0/64
[25055.425927]  20 83 38 d5 07 00 03 01 
[25057.438083] usb 1-3: kdvb-ad-1-fe-0 timed out on ep2out len=0/8
[25057.438110] af9015: bulk message failed:-110 (8/0)
[25057.438163] af9013: I2C read failed reg:d507
[25058.238115]  20 84 38 d5 07 00 03 01 
[25059.806230] usb 1-1: khubd timed out on ep0in len=0/64
[25060.250263] usb 1-3: kdvb-ad-1-fe-0 timed out on ep2out len=0/8
[25060.250289] af9015: bulk message failed:-110 (8/0)
[25060.250342] af9013: I2C read failed reg:d507
[25061.058269]  20 85 38 d5 07 00 03 01 
[25063.070487] usb 1-3: kdvb-ad-1-fe-0 timed out on ep2out len=0/8
[25063.070512] af9015: bulk message failed:-110 (8/0)
[25063.070565] af9013: I2C read failed reg:d507
[25063.922457]  20 86 38 d5 07 00 03 01 
[25064.818955] usb 1-1: khubd timed out on ep0in len=0/64
[25064.874603] ehci_hcd :00:10.3: port 1 high speed
[25064.874648] ehci_hcd :00:10.3: GetStatus port:1 status 00100f 0  ACK 
POWER sig=se0 PEC PE CSC CONNECT
[25064.874761] hub 1-0:1.0: unable to enumerate USB device on port 1
[25064.874849] ehci_hcd 

Re: PROBLEM: EHCI disconnects DVB HDD

2011-11-26 Thread Alan Stern
On Sat, 26 Nov 2011, Johann Klammer wrote:

 Alan Stern wrote:
  This is probably a low-level hardware error.  Interference between the
  two ports of some kind.
 
 This is quite possible. Have been able to produce a more verbose logfile 
 snippet.

The log shows that your EHCI controller reports disconnects on both
ports, after which it is unable to re-enumerate the disk drive.  
Following that, a bug in the DVB driver prevents it from unbinding
properly, causing a hang.

This could be the result of an electrical glitch or power fluctuation.  
Are these devices bus-powered?

Or it could simply be something wrong with your EHCI controller.

Alan Stern

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PROBLEM: EHCI disconnects DVB HDD

2011-11-26 Thread Malcolm Priestley
On Fri, 2011-11-25 at 03:21 +0100, Johann Klammer wrote:
 When using a DVB-T Dongle and an external HDD simultaneously, EHCI 
 almost always disconnects.
 

Ideally HDD, and DVB devices shouldn't share the the same controller. 

Most systems have two.

However, it is difficult for users know how these are assigned as
sockets on a motherboard, or whether just one is available externally.

With respect to af9015 devices it is are not alone, were messages are
lost by operations of other devices.

On the patchwork server is a patch for bus repeating on af9015 usb
bridge TIMEOUT or BUSY errors.

http://patchwork.linuxtv.org/patch/8406/


--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PROBLEM: EHCI disconnects DVB HDD

2011-11-26 Thread Johann Klammer

Alan Stern wrote:

This could be the result of an electrical glitch or power fluctuation.
Are these devices bus-powered?

The DVB Stick is. The HDD is not.


Or it could simply be something wrong with your EHCI controller.
Possible. The power supply is old, too and there's a telephone in the 
same room.

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: PROBLEM: EHCI disconnects DVB HDD

2011-11-25 Thread Alan Stern
On Fri, 25 Nov 2011, Johann Klammer wrote:

 When using a DVB-T Dongle and an external HDD simultaneously, EHCI 
 almost always disconnects.
 
 When tuning, it works for some time, but after a while, probably 
 triggered by disk activity
 the dmesg log fills up with disk errors and failed i2c writes. The 
 devices disconnect and the mountpoint gets lost.
 Attempting a simple 'ls /mnt/rec' fails with 'input/ouput error'. The 
 kernel log sometimes reports
 the khubd task hanging. As soon as the dvb software gets shut down(at 
 that point DVB doesn't work either),
 the devices get rediscovered as low speed devices and work again after 
 umount/mount and restart of software.
 But it's rather slow from there on.

This is probably a low-level hardware error.  Interference between the 
two ports of some kind.

 usbdump.mon: On request. usbmon output for the whole host controller 
 during the event. I can mail this, but it's rather large and the mailing 
 list won't accept the message.

Can you put the usbmon trace on a web server like pastebin.com?

Alan Stern

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html