Bug 134346

Summary: usb-storage device stopped working with recent kernel
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jon Nelson <jnelson-suse>
Component: KernelAssignee: Greg Kroah-Hartman <gregkh>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jon Nelson 2005-11-18 01:34:12 UTC
I've included it below.
The problem is that it detects it as 34494MB which is crazy.
It's a 16MB flash device.
I have a similar problem with my 256MB unit as well.
Both of these worked with 9.3

kernel: usb 1-1: new full speed USB device using uhci_hcd and address 6
kernel: scsi6 : SCSI emulation for USB Mass Storage devices
kernel: usb-storage: device found at 6
kernel: usb-storage: waiting for device to settle before scanning
kernel:   Vendor: SanDisk   Model: ImageMate II      Rev: 1.30
kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
kernel: SCSI device sda: 67372037 512-byte hdwr sectors (34494 MB)
kernel: sda: Write Protect is off
kernel: sda: Mode Sense: 0b 00 00 08
kernel: sda: assuming drive cache: write through
kernel: SCSI device sda: 67372037 512-byte hdwr sectors (34494 MB)
kernel: sda: Write Protect is off
kernel: sda: Mode Sense: 0b 00 00 08
kernel: sda: assuming drive cache: write through
kernel:  sda:<6>SCSI error : <6 0 0 0> return code = 0x10070000
kernel: end_request: I/O error, dev sda, sector 1
kernel: Buffer I/O error on device sda, logical block 1
kernel: SCSI error : <6 0 0 0> return code = 0x10070000
kernel: end_request: I/O error, dev sda, sector 2
kernel: Buffer I/O error on device sda, logical block 2
kernel: SCSI error : <6 0 0 0> return code = 0x10070000
kernel: end_request: I/O error, dev sda, sector 3
kernel: Buffer I/O error on device sda, logical block 3
kernel:  unable to read partition table
kernel: Attached scsi removable disk sda at scsi6, channel 0, id 0, lun 0
kernel: Attached scsi generic sg0 at scsi6, channel 0, id 0, lun 0,  type 0
kernel: usb-storage: device scan complete
Comment 1 Jon Nelson 2005-11-20 22:56:32 UTC
I tried one of the Kernel-of-the-day kernels: 2.6.14.2-20051118230009-default
Still the same problem.
Comment 2 Jon Nelson 2005-11-20 23:10:31 UTC
Also tried upgrading the hal* packages from 10.1 (whatever the current alpha/beta is):

hal-resmgr-0.1_SVNr64-2
hal-0.5.5_CVS_20051113-2
hal-gnome-0.5.5_CVS_20051113-2

Comment 3 Kay Sievers 2005-11-21 15:56:05 UTC
Are you sure, that this device still works on a different box, or with a different operation system? If yes, it looks like a kernel problem.
Comment 4 Jon Nelson 2005-11-21 21:10:57 UTC
I am absolutely sure this devices works on the exact same hardware using SuSE 9.3.  I ran it like that from the day the 9.3 CDs arrived at my doorstep.

I have another machine also with 10.0 on it and it shows the exact same problem with this USB device. I can wipe and reinstall that machine with 9.3 and try that if it will help.

You'll note that I tried a /newer/ kernel without luck. I can't be sure but I seem to recall this working during the 10.0 beta period (I ran the betas as well).
Comment 5 Jon Nelson 2005-11-23 01:01:18 UTC
I have some exciting information:

I went through my logs and found that the last time this worked properly was Oct 17.

kernel: SCSI device sda: 31489 512-byte hdwr sectors (16 MB)

The same exact device a few days later:

kernel: SCSI device sda: 67372037 512-byte hdwr sectors (34494 MB)

Lastly, I tried an alternative compactflash reader borrowed from a friend. The one I've been using is a "SanDisk ImageMate (SDDR-31)".  I borrowed a Kingston  FCR-U2CF.  The Kingston works perfectly.  Trying the Sandisk again and it still doesn't work.

I also notice that they each show a different "Mode Sense":
The Kingston (the one that works):
kernel: sda: Mode Sense: 3f 00 00 08

The SanDisk (the one that used to but no longer works):
kernel: sda: Mode Sense: 0b 00 00 08

What does it all mean?





Comment 6 Kay Sievers 2005-11-23 01:29:11 UTC
Looks like a usb-storage problem. Reassign to kernel.
Comment 7 Greg Kroah-Hartman 2005-11-23 21:55:45 UTC
Can you attach /proc/bus/usb/devices with your device attached to the system?
Comment 8 Jon Nelson 2005-11-23 22:07:40 UTC
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.13-15-default uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  9 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0781 ProdID=0002 Rev= 0.09
S:  Manufacturer=SanDisk Corporation
S:  Product=ImageMate CompactFlash USB
S:  SerialNumber=000000000009
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 93/900 us (10%), #Int=  1, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.13-15-default uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046d ProdID=c00e Rev=11.10
S:  Manufacturer=Logitech
S:  Product=USB-PS/2 Optical Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 98mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms
Comment 9 Jon Nelson 2005-11-24 13:28:06 UTC
I have also disabled ACPI at various times when testing these different kernels to no benefit.
Comment 10 Jon Nelson 2005-11-25 05:45:01 UTC
After extensive work, I have discovered that the device itself become damaged, which I repaired. The device is now operational again and this bug can now be closed. I apologize for sending anyone on a wild goose chase.