Re: [linux-usb-devel] usb storage problems on 2.6.13-rc3-git9

2005-07-29 Thread Vedran Rodic

Alan Stern wrote:



An interrupt count of 10 is what you get when some device is issuing 
interrupt requests on that IRQ line and the kernel doesn't realize it.  
Apparently one of your devices other than the EHCI controller is using IRQ 
18.  Sometimes upgrading the computer's BIOS will fix such problems.


 



Thanks. I've tried with noacpi and noapic options on both kernels I've 
mentioned with much better results. There is no 10 IRQ count in 
/proc/interrupts, which now of course looks different because other code 
is taking care of the interrupt arrangement.



Vedran




---
SF.Net email is Sponsored by the Better Software Conference  EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] usb storage problems on 2.6.13-rc3-git9

2005-07-28 Thread Vedran Rodic

Hello

I'm using the latest available kernel.org version 2.6.13-git9, on a 
nforce2 IGP chipset.


There is a Flash card reader attached.

As soon as I've booted the kernel, I got some kernel messages about USB 
errors.


In kernel 2.6.10-ac12 I can at least without errors, and sometimes the 
reader device works normally, usually just after the reboot. Then I can 
insert a couple of flash cards, but at some point that stops working 
also, and I can't even insert a separate USB flash reader.


What is strange is that every time the usb fails /proc/interrupts says 
that the interrupt count is 10. On any kernel I've tried. See the 
attached interrupts.out.


I'll try with various kernel options tomorrow (noacpi, irqpoll, noapic 
etc) and report back with results.


Thanks

Vedran

6ACPI: PCI Root Bridge [PCI0] (:00)
PCI: Probing PCI hardware (bus 00)
ACPI: Assume root bridge [\_SB_.PCI0] segment is 0
Boot video device is :01:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.HUB0._PRT]
ACPI: Power Resource [ISAV] (on)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGPB._PRT]
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK2] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
ACPI: PCI Interrupt Link [LNK3] (IRQs 3 4 5 6 7 9 10 11 *12 14 15)
ACPI: PCI Interrupt Link [LNK4] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK5] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LUBA] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LUBB] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LMAC] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LAPU] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LACI] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LMCI] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LSMB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LUB2] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LFIR] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [L3CM] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LIDE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LSID] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [APC1] (IRQs *16), disabled.
ACPI: PCI Interrupt Link [APC2] (IRQs *17), disabled.
ACPI: PCI Interrupt Link [APC3] (IRQs *18), disabled.
ACPI: PCI Interrupt Link [APC4] (IRQs *19), disabled.
ACPI: PCI Interrupt Link [APC5] (IRQs *16), disabled.
ACPI: PCI Interrupt Link [APCF] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCG] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCH] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCI] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCJ] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCK] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCS] (IRQs *23), disabled.
ACPI: PCI Interrupt Link [APCL] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCM] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [AP3C] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APCZ] (IRQs 20 21) *0, disabled.
ACPI: PCI Interrupt Link [APSI] (IRQs 22) *0, disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 11 devices
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try pci=routeirq.  If it helps, post a report
PCI: Bridge: :00:08.0
  IO window: 9000-9fff
  MEM window: e200-e2ff
  PREFETCH window: d800-dbff
PCI: Bridge: :00:1e.0
  IO window: disabled.
  MEM window: e000-e1ff
  PREFETCH window: d000-d7ff
PCI: Setting latency timer of device :00:08.0 to 64
pnp: 00:00: ioport range 0x4000-0x407f could not be reserved
pnp: 00:00: ioport range 0x4080-0x40ff has been reserved
pnp: 00:00: ioport range 0x4400-0x447f has been reserved
pnp: 00:00: ioport range 0x4480-0x44ff could not be reserved
pnp: 00:00: ioport range 0x4200-0x427f has been reserved
pnp: 00:00: ioport range 0x4280-0x42ff has been reserved
pnp: 00:01: ioport range 0x5000-0x503f has been reserved
pnp: 00:01: ioport range 0x5100-0x513f has been reserved
Machine check exception polling timer started.
Initializing Cryptographic API
vesafb: framebuffer at 0xd000, mapped to 0xce88, using 1875k, total 
32768k
vesafb: mode is 800x600x16, linelength=1600, pages=2
vesafb: protected mode interface info at 00ff:44f0
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
Console: switching to colour frame buffer device 100x37
fb0: VESA VGA frame buffer device
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ACPI: CPU0 (power states: C1[C1])
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 AUX port at 

Re: [linux-usb-devel] [2.6.0 current bk] hangs at usb storage mount

2003-10-25 Thread Vedran Rodic
On Sat, Oct 25, 2003 at 11:03:21AM -0400, Alan Stern wrote:
 
 Try applying this patch and see if it helps.

It really helps. It survived my basic testing. 

BTW, the transfer rate (measured with hdparm) is up to 10 MB/s 
from 7 MB/s in 2.4 kernels. 

Now I just need to test it heavily in day to day use. 


Many thanks,
Vedran


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] [2.6.0 current bk] hangs at usb storage mount

2003-10-24 Thread Vedran Rodic
Hi

I have problems with linux 2.6.0-test8 (bk from today) and usb-storage

Mount hangs when mounting usb-storage device.

kern.log with usb verbose debug and usb-storage verbose debug at
http://quark.fsb.hr/vedran/usb_klog (I also did a reload of usb modules in this
session).


USB controller is VIA Technologies, Inc. USB 2.0 (rev 51).

Thanks
Vedran


---
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] an ehci-q.c fix that should be in 2.4 too

2003-09-07 Thread Vedran Rodic
Hi.

This patch went into 2.6 kernel but not in 2.4. It applies to
2.4.23-pre3 cleanly.

This sounds like it should fix my last remaining 
usb_control/bulk_msg: timeout problems. David?

Vedran---BeginMessage---
ChangeSet 1.1595.7.18, 2003/07/30 13:33:37-07:00, [EMAIL PROTECTED]

[PATCH] USB: ehci-hcd, TT fixup

I noticed that some cases where USB produced lots of TT messages
were clearly wrong, since the transactions completed cleanly
(with a stall) and the TT buffer cleanup is only supposed to
be needed when a CSPLIT transaction fails (for control or bulk).

This patch makes the TT buffer cleanup happen only in the rarer
cases where there was an error that might really need it.


 drivers/usb/host/ehci-q.c |   18 ++
 1 files changed, 10 insertions(+), 8 deletions(-)


diff -Nru a/drivers/usb/host/ehci-q.c b/drivers/usb/host/ehci-q.c
--- a/drivers/usb/host/ehci-q.c Fri Aug  1 10:54:55 2003
+++ b/drivers/usb/host/ehci-q.c Fri Aug  1 10:54:55 2003
@@ -161,16 +161,18 @@
usb_endpoint_halt (urb-dev,
usb_pipeendpoint (pipe),
usb_pipeout (pipe));
-   if (urb-dev-tt  !usb_pipeint (pipe)) {
+
+   /* if async CSPLIT failed, try cleaning out the TT buffer */
+   } else if (urb-dev-tt  !usb_pipeint (urb-pipe)
+QTD_CERR(token) == 0) {
 #ifdef DEBUG
-   struct usb_device *tt = urb-dev-tt-hub;
-   dbg (clear tt %s-%s p%d buffer, a%d ep%d,
-   tt-bus-bus_name, tt-devpath,
-   urb-dev-ttport, urb-dev-devnum,
-   usb_pipeendpoint (pipe));
+   struct usb_device *tt = urb-dev-tt-hub;
+   dev_dbg (tt-dev,
+   clear tt buffer port %d, a%d ep%d t%08x\n,
+   urb-dev-ttport, urb-dev-devnum,
+   usb_pipeendpoint (urb-pipe), token);
 #endif /* DEBUG */
-   usb_hub_tt_clear_buffer (urb-dev, pipe);
-   }
+   usb_hub_tt_clear_buffer (urb-dev, urb-pipe);
}
}
 }



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
---End Message---


Re: [linux-usb-devel] USB device not accepting new address=* (error=-71)

2003-07-24 Thread Vedran Rodic
On Wed, Jul 16, 2003 at 08:13:32PM +0200, Vedran Rodic wrote:
 Hi
 
 When connecting the usb storage device to USB 2 VIA host controller
 I get these messages repeated (with address incremented by one)
 indefinitely:
 
 hub.c: new USB device 00:12.2-1, assigned address 2
 usb.c: USB device not accepting new address=2 (error=-71)
 hub.c: new USB device 00:12.2-1, assigned address 3
 usb.c: USB device not accepting new address=3 (error=-71)

It turns out this is a hardware problem. We tested this USB 2 VIA PCI card 
(from Manli) in other computers drivern by different operating systems and
we got similiar results. Windows XP repeatedly redraws the whole device
list in the control panel as long the usb drive is plugged in :-)  

It's interesting that the USB 1 support works on the same card on the same
chip. Not exactlly top quality, but it's important
that it has a black PCB :) 

Sorry guys for the lost time. I guess this is how bad USB 2 hardware
can look to the linux kernel. 

Vedran


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] USB device not accepting new address=* (error=-71)

2003-07-16 Thread Vedran Rodic
Hi

When connecting the usb storage device to USB 2 VIA host controller
I get these messages repeated (with address incremented by one)
indefinitely:

hub.c: new USB device 00:12.2-1, assigned address 2
usb.c: USB device not accepting new address=2 (error=-71)
hub.c: new USB device 00:12.2-1, assigned address 3
usb.c: USB device not accepting new address=3 (error=-71)

This is a 440BX box with Celeron 333 CPU. I've used pretty much the same
USB hardware (the only difference is the USB 2 PCI board manufacturer - same
chip  and the platform - it works on my via KT266 Athlon) without these problems.  

Kernel is 2.4.22-pre6. I've tested 2.4.21 too and got the same results.

I've seen the faq and checked that interrupt counts for ehci are
incremented.


Further details (lspci -vvv, dmesg etc) at http://quark.fsb.hr/vedran/quark/

Thanks
Vedran


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


Re: [linux-usb-devel] ehci / usb-storage problems

2003-06-21 Thread Vedran Rodic
On Fri, Jun 20, 2003 at 09:47:48AM -0400, Alan Stern wrote:
 That's a definite weakness of the old scheme and part of the reason it was 
 changed for 2.5.  In the meantime, you can try doing this.  After you've 
 switched the drives, do echo scsi remove-single-device 0 1 2 3 
 /proc/scsi/scsi with 0 1 2 3 replaced by your Host Channel Id Lun.  
 Then do echo scsi add-single-device 0 1 2 3 /proc/scsi/scsi again with 
 0 1 2 3 replaced by your Host Channel Id Lun.

Alan, Matt, thank you

Vedran


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] ehci / usb-storage problems

2003-06-19 Thread Vedran Rodic
Hi

Unfortunaltely, I had a couple of problems with ehci on usb-storage since 
my last report. I've applied ehci-hcd micro-patch from David. I use 
2.4.21-rc8-ac1 (basicaly equivalent to 2.4.21-ac1 + ehci-hcd micro patch USB
wise).

Also there was a patch from David with the subject line:
[patch 2.5.70] ehci, fix qh re-activation problem
Does this problem exist in some form in 2.4?

The problems:

1.
usb_control/bulk_msg: timeout

You probably know what happens when you get this on usb-storage, but anyway:

I was running cdrecord/mkisofs to record some files from vfat disk on USB
2.0 to ide cd-r device. I was playing some mp3s from that disk too.
cdrecord stopped, xmms stopped, and kernel panicked in vfat kernel module
with a lot of I/O errors.  

I had to umount the disk, rmmod/insmod usb-storage to make it work again. 

2.
One time, it happened immediately after powering the disk on, without
me even mounting it:

hub.c: new USB device 00:09.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x5e3/0x702) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
usb_control/bulk_msg: timeout
last message repeated 2 times
scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0

After I reconnected the disk and rmmod/insmod usb-storage, it worked fine. 

3.
I've noticed that usb-storage doesn't remove the disk from /proc/scsi/scsi
(the representation of kernel scsi device list)
when the device is disconnected. Because of that, I cannot connect a
different hard disk to usb, without rmmod/insmod usb-storage first, and that can
be impossible when I have another device on usb-storage that I don't want to
stop using. Can this be fixed for 2.4?

4.

About possible performance improvement on 2.5 ehci/usb-storage: 
I've tested with 2.5.71, and I don't see a significant improvement over 2.4. 
(Both are arround 7.7 MB/s for read, 10 MB/s for write). Disk can do arround
40 MB/s reads on IDE.


Thanks
Vedran


---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


Re: [linux-usb-devel] ehci / usb-storage problems

2003-06-19 Thread Vedran Rodic
---BeginMessage---
On Thu, Jun 19, 2003 at 05:10:21PM +0100, Major A wrote:
 
 What's the host controller you're using? I used to see the same
 problem here, but it went away altogether with a couple of patches
 (which you seem to have applied) and a different EHCI controller.
 

VT6202, seems to be problematic still...

   About possible performance improvement on 2.5 ehci/usb-storage: 
   I've tested with 2.5.71, and I don't see a significant improvement over 2.4. 
   (Both are arround 7.7 MB/s for read, 10 MB/s for write). Disk can do arround
   40 MB/s reads on IDE.
  
  I don't know what's going on there.
 
 I'm seeing the same speed here as well, and the disk can certainly do
 more than 10MB/s sustained. I'm using the same USB-IDE bridge
 (Genesys).

I have Genesys GL811USB too. I guess it sucks. 

 As to write speed, I wouldn't expect much more than 10MB/s, since that
 is what modern laptop drives can handle (I'm assuming you're using a
 laptop drive?). 40MB/s seems more like a maximum for short bursts,
 probably using the cache as well.

Mine is a standard 3.5 inch IDE drive, QUANTUM FIREBALLP AS60.0 60GB, at 
7200 rpm.


Vedran
---End Message---


[linux-usb-devel] Re: [patch 2.4.21-rc8] ehci-hcd updates

2003-06-13 Thread Vedran Rodic

Thanks. This patch seems to fix all my problems 
(usb_control/bulk_msg: timeout) with usb-storage (external
IDE drive case) and ehci on VIA USB 2.0 PCI addon card. I just bought this
usb 2 stuff yesterday, so this is a really quick fix ;)

I'm not sure if this is usb 2.0 chip issue, but I get arround 7.7 mb/sec
transfer rate with this chip and i get 10 mb/s with intel usb 2.0 from 865p
chipset from my friend. Is it possible that transfer rate will be much higher 
on 2.5 (as described on Linux and USB 2.0 document at linux-usb.org, using
usb_sg_submit())? Could this bit of functionality be backported to 2.4
easily?

Thanks
Vedran


---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel