2003-06-06 07:37:29

by Bob Tracy

[permalink] [raw]
Subject: 2.5.70: AXIS usb flash disk problem

Well... *That* was exciting :-(. I plugged a 64 MB AXIS usb flash
disk into my Linux machine, and the following syslog messages were
recorded before the machine locked up solid:

Jun 6 02:20:32 gherkin kernel: Initializing USB Mass Storage driver...
Jun 6 02:20:33 gherkin kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Jun 6 02:20:33 gherkin kernel: Vendor: STORIX Model: AXIS Rev: 1.00
Jun 6 02:20:33 gherkin kernel: Type: Direct-Access ANSI SCSI revision: 02
Jun 6 02:20:33 gherkin kernel: SCSI device sdb: 128000 512-byte hdwr sectors (66 MB)
Jun 6 02:20:33 gherkin kernel: usb-storage: Buffer length smaller than header!!<4>usb-storage: Had to truncate MODE_SENSE_10 buffer into MODE_SENSE.
Jun 6 02:20:33 gherkin kernel: usb-storage: outputBufferSize is 10 and length is 4.
Jun 6 02:20:33 gherkin kernel: usb-storage: Command will be truncated to fit in SENSE6 buffer.
Jun 6 02:20:33 gherkin kernel: sdb: Write Protect is off
Jun 6 02:20:33 gherkin kernel: sdb: Mode Sense: 00 00 00 00
Jun 6 02:20:33 gherkin kernel: usb-storage: Buffer length smaller than header!!<4>usb-storage: Command will be truncated to fit in SENSE6 buffer.
Jun 6 02:20:33 gherkin kernel: usb-storage: Buffer length smaller than header!!<4>usb-storage: Had to truncate MODE_SENSE_10 buffer into MODE_SENSE.
Jun 6 02:20:33 gherkin kernel: usb-storage: outputBufferSize is 4 and length is 1.
Jun 6 02:20:33 gherkin kernel: usb-storage: Command will be truncated to fit in SENSE6 buffer.

Any reason why SCSI emulation and the real thing might not get along?
The scsi0 device is an Adaptec 2930U2 (aic7xxx driver). Haven't tried
using the usb flash disk on a Linux IDE machine yet.

--
-----------------------------------------------------------------------
Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org
[email protected]
-----------------------------------------------------------------------


2003-06-10 20:02:36

by Bob Tracy

[permalink] [raw]
Subject: Re: 2.5.70: AXIS usb flash disk problem

Original problem summary: plug in USB flash disk on 2.5.70 SCSI system,
and watch machine lock up solid.

Followup test results:
Also broken on 2.5.70 IDE system, although lockup doesn't
occur until you attempt to access (mount) the disk.

Works fine with 2.4.20 on both SCSI and IDE systems to which
I have access.

Matthew (and other usb-storage folks): any idea what's going on here?
Problem seems to point to something in the SCSI emulation layer, which
makes a little sense considering the ide-scsi folks went through
similar pain not long ago. Thanks!

--
-----------------------------------------------------------------------
Bob Tracy WTO + WIPO = DMCA? http://www.anti-dmca.org
[email protected]
-----------------------------------------------------------------------