Re: [linux-usb-devel] Re: USB EHCI VIA disconnect problem

2006-02-04 Thread Helmut Toplitzer
> You said above that there's no evidence that a device reset would help. > You need to find a way to get that evidence, either positive or negative. > Ok. Tried one other thing. Read about gcc-incompatibilities/fixes in the the sourcecode (kernel Makefile). So I tried to use another gcc-version (

[linux-usb-devel] Re: USB EHCI VIA disconnect problem

2006-02-04 Thread Helmut Toplitzer
On Saturday 04 February 2006 05:57, Mike Isely wrote: > On Sat, 4 Feb 2006, Helmut Toplitzer wrote: > > On Saturday 04 February 2006 02:08, Helmut Toplitzer wrote: > >> Hi! > >> > >> > >> Just in case > >> > >> Maybe Ingo Fl

[linux-usb-devel] Re: [pvrusb2] [Linux-usb-users] USB EHCI VIA disconnect problem

2006-02-03 Thread Helmut Toplitzer
HI! As you suggested I bought a new USB controller (ALi, ohci/ehci) and disabled the old one. OK. It now works great. Well, until it stops. (Without hang this time but it stops. I need too restart mythtv.) Feb 3 18:13:45 kernel: pvrusb2 /*---TRACE_CTL*/ pvr2_encoder_start Feb 3 18:13

Re: [linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-22 Thread Helmut Toplitzer
Hi again! Ok. Maybe this is of interest too: lsusb shows the following changes when disconnecting the usb-storage and keeping the pvrusb2 device connected: @@ -300,11 +162,11 @@ bPwrOn2PwrGood 10 * 2 milli seconds bHubContrCurrent 0 milli Ampere DeviceRemovable0x08 - Por

Re: [linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-22 Thread Helmut Toplitzer
Hi! Alan, I used your patch for the following tests: I solved my problem (at least a part of it). Plugging in another USB device on another port does NOT make my PVR hang anymore. Unplugging it will result in hangs after a few minutes. Logs of lspci -xxx are attached: 1 initial state with pvrus

Re: [linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-20 Thread Helmut Toplitzer
> experiencing the same problem after all. I feel so alone again... However, at least temperatur goes slightly up (2K) wenn i load ehci-hcd and I can confirm the ASYNC problem: bus pci, device :00:10.3 (driver 10 Dec 2004) EHCI Host Controller EHCI 1.00, hcd state 1 ownership 0101 linux S

Re: [linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-20 Thread Helmut Toplitzer
> > Some stylistic suggestions. The new routines should be surrounded by > > #if defined(CONFIG_BLK_DEV_VIA82CXXX) and defined(HAVE_VIA_HALT) > > In the #else part, make ide_disable_hlt and ide_enable_hlt inline. > > You don't need the #ifdef protecting the calls to to ide_disable_hlt and > ide_en

[linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-19 Thread Helmut Toplitzer
Is this adequate? You need a VIA82xxx board, HLT and pass disableviahlt on boot. Tested on my system with success. Please check for errors. Helmut -- My GNUpg fingerprint http://www.gnupg.org 4563 F4FB 0B7E 8698 53CD 00E9 E319 35BD 6A91 1656 --- linux-2.6.15/drivers/ide/ide-dma.c 2006-01-19

[linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-19 Thread Helmut Toplitzer
> > Yes, this mail explains it more: > http://www.uwsg.iu.edu/hypermail/linux/kernel/0207.0/0004.html > > If "HALT Command Detect is enabled" is enabled > STPGNT is issued on detection of HALT command. > > If "Disconnect Enable When STPGNT Detect" is enabled > bus disconnect is done on detection of

[linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-18 Thread Helmut Toplitzer
Ok. I found another possible reason, did I? I read in several forums that HLT in KT333 chipsets of VIA is not enough to get the processor in powersafe and to disconnect from the FSB. You need to issuse the STPGNT command which also needs first to set some registers (because it degrades overall pe

[linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-18 Thread Helmut Toplitzer
> > Did disabling ACPI change something? > No, it didn't > > When CPU is idle HLT instruction is used by default (for power saving). > Probably chipset detects when CPU is entering low power mode and > also enters low power mode. Switching between low and normal power > modes is slow and results

[linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-18 Thread Helmut Toplitzer
> Just wild guesses but please try: > * booting with "cpu=poll" parameter > * kernel with ACPI and Power Management disabled > Ok. Here it goes. Did your tests which doesn't change anything. But I couldn't find the cpu= parameter in kernel-parameters.txt so I tried something else too: both kerne

[linux-usb-devel] Re: BUG?: VIA IDE transfer-rate problem

2006-01-17 Thread Helmut Toplitzer
Hi! > > > > 37MB/s with CPU not utilized > > 55MB/s with CPU 100% utilized > > I can't reproduce this locally, please send me your kernel > config. Although I have Intel chipset it is still worth a try > if it is generic kernel bug. I don't remember seeing anything > like that on my old VIA syst

Re: [linux-usb-devel] USB EHCI VIA disconnect problem

2006-01-17 Thread Helmut Toplitzer
So. After a looong time I decided to drop you a note whats going on with my "small but funny" usb/ide problem: (Maybe others are interested into this too) First: I didn't bought a new USB controller. Alan, your patch went quite well and it looks like the device isn't disconnecting any longer. So

Re: [linux-usb-devel] Re: [pvrusb2] [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-09 Thread Helmut Toplitzer
> > Any chance you can attach a separate USB controller to your system and > > test with that? > Yes, that would be the best way to test. Helmut, it's up to you... Oh. That's funny. *Big pause, calm down* So isn't there a way to tune the debug output to get a point where things are going wron

[linux-usb-devel] [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-07 Thread Helmut Toplitzer
> > I know nothing at all about this pvrusb driver. Your stack trace seems to > indicate that it might the problem (as opposed to any other part of the > USB stack). OK. Maybe it's a pvrusb2 problem then. I'll cc to the pvrusb2-list. The problem is that playing video stops sometimes. (Normaly af

[linux-usb-devel] [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-07 Thread Helmut Toplitzer
> > Try doing this test in single-user mode. When you plug in the storage > device and it doesn't initialize, get a stack trace (Alt-SysRq-T). That > may help show where things are hanging up. > Sorry for the late answer. It was realy hard to reproduce today. Sometimes it worked for more than 60

Re: Fwd: Re: [linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-06 Thread Helmut Toplitzer
hi again! Did what you said, but card hangs again after a few seconds. This time without a debug message. it's not possible to recover without reboot. Unplugging/Replugging doesn't reinit device nor produces any debug-info. Killing process wakes up the driver of the device: 23:12:35 kernel: pvrus

Re: [linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-05 Thread Helmut Toplitzer
> > This may be related to the PCI configuration values, as initialized by > your chipset. What do you get from "lspci -xxx -s 10.3"? > :00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 00: 06 11 04 31 17 00 10 02 82 20 03 0c 10 f8 00 00 10: 00 ff ff df 00 00 00 00 00 00 00 00

Re: [linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-05 Thread Helmut Toplitzer
Ok because of the long thread a short summary: My transferrate tests were running on a normal IDE device. VIA IDE, USB and so on ... systems are intefering. USB-system affects IDE system, sometimes in a dramatic way (diff. 20MB/s on IDE transferrate). Beside this sometimes the ehci-driver disc

[linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-05 Thread Helmut Toplitzer
Ok. Sorry for spamming. I should have known the next question before: # modprobe ehci-hcd # hdparm -t /dev/hda /dev/hda: Timing buffered disk reads: 66 MB in 3.06 seconds = 21.57 MB/sec == Starting cpuburn == # hdparm -t /dev/hda /dev/hda: Timing buffered

[linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-05 Thread Helmut Toplitzer
> And lird ist starting to consume all the processor-power. This is where > the PCI BusMastering takes place when CPU has no time to do so? This is Ok. verified this using cpuburn: # hdparm -t /dev/hda /dev/hda: Timing buffered disk reads: 102 MB in 3.03 seconds = 33.68 MB/sec === Start

[linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-05 Thread Helmut Toplitzer
Alan, thanks for your response. > > === REBOOT = > Which HCD modules are loaded when you reboot? Only uhci-hcd? Yes. Only uhci-hcd. > > # hdparm -t /dev/hda > > > > /dev/hda: > > Timing buffered disk reads: 44 MB in 3.13 seconds =

[linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2006-01-04 Thread Helmut Toplitzer
This is not funny anymore: -- My GNUpg fingerprint http://www.gnupg.org 4563 F4FB 0B7E 8698 53CD 00E9 E319 35BD 6A91 1656 === REBOOT = # hdparm -t /dev/hda /dev/hda: Timing buffered disk reads: 44 MB in 3.13 seconds = 14.05 MB/s

[linux-usb-devel] Re: [Linux-usb-users] USB EHCI VIA disconnect problem

2005-12-21 Thread Helmut Toplitzer
Ok. :-) finaly we found at least one channel to communicate. So I only use linux-usb-devel for further communication. Hardware industries are not always as honest as we are used to be. So we've got to develop our test methods ourselves. So I suggest: a drop in IDE communicatio