Re: [usb-storage] Re: PATCH: exclude certain commands from emulated SCSI hosts

Matthew Dharm
2003-04-22T18:38:18Z

[-- Attachment #1: Type: text/plain, Size: 2326 bytes --]

On Tue, Apr 22, 2003 at 07:22:11PM +0200, Andries.Brouwer@cwi.nl wrote:
> Then we get the second bugzilla report. Interesting.
> It fails in precisely the same way as the first one:
>
> Apr 9 17:34:55 lemon: SCSI device sda: 126848 512-byte hdwr sectors (65 MB)
> Apr 9 17:34:55 lemon: usb-storage: queuecommand() called
> Apr 9 17:34:55 lemon: usb-storage: *** thread awakened.
> Apr 9 17:34:55 lemon: usb-storage: Command MODE_SENSE (6 bytes)
> Apr 9 17:34:55 lemon: usb-storage: 1a 00 3f 00 04 00
> Apr 9 17:34:55 lemon: usb-storage: Invoking Mode Translation
> Apr 9 17:34:55 lemon: usb-storage: usb_stor_ctrl_transfer(): rq=00 rqtype=21 value=0000 index=00 len=12
> Apr 9 17:34:55 lemon: usb-storage: Status code 0; transferred 12/12
> Apr 9 17:34:55 lemon: usb-storage: -- transfer complete
> Apr 9 17:34:55 lemon: usb-storage: Call to usb_stor_ctrl_transfer() returned 0
> Apr 9 17:34:55 lemon: usb-storage: usb_stor_bulk_transfer_buf(): xfer 4 bytes
> Apr 9 17:34:55 lemon: usb-storage: Status code -75; transferred 4/4
> Apr 9 17:34:55 lemon: usb-storage: -- unknown error
> Apr 9 17:34:55 lemon: usb-storage: CB data stage result is 0x3
> Apr 9 17:34:55 lemon: usb-storage: -- transport indicates error, resetting
> Apr 9 17:34:55 lemon: usb-storage: CB_reset() called
> Apr 9 17:35:11 lemon modprobe: FATAL: Module /dev/tts/64 not found.
> Apr 9 17:35:15 lemon: drivers/usb/core/message.c: usb_control/bulk_msg: timeout
> Apr 9 17:35:25 lemon: usb-storage: command_abort() called
> Apr 9 17:35:25 lemon: usb-storage: usb_stor_abort_transport called
>
> But here the additional information is:
> It was working fine under 2.4.* but under 2.5.66/67 it hangs.
>
> Is there a problem with MODE_SENSE? But 2.4 also does this MODE_SENSE.
> A first step is perhaps finding out what the * is for.

2.4 does a MODE_SENSE, but does it differently.

> Which 2.4 versions are known to work correctly?

That depends on the particular device in question.

> [And is there a verbose usb-storage log on a successful 2.4?]

Yes.

Matt

--
Matthew Dharm Home: mdharm-usb@one-eyed-alien.net
Maintainer, Linux USB Mass Storage Driver

Umm, these aren't the droids you're looking for.
-- Bill Gates
User Friendly, 11/14/1998

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]