lkml.org 
[lkml]   [2003]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: problems with scsi disk, scsi generic, and compact flash reader
Chris Friesen wrote:
>
> I have a 2.6.0-test6 kernel with the jumpshot card reader. I can
> compile the generic scsi driver no problem, and when I insert the flash
> card I get the following log entry:
>
> Oct 9 20:33:30 doug kernel: hub 2-1:1.0: new USB device on port 2,
> assigned address 4
> Oct 9 20:33:30 doug kernel: scsi1 : SCSI emulation for USB Mass Storage
> devices
> Oct 9 20:33:30 doug kernel: Vendor: Lexar Model: Jumpshot USB CF
> Rev: 0001
> Oct 9 20:33:30 doug kernel: Type: Direct-Access
> ANSI SCSI revision: 02
> Oct 9 20:33:30 doug kernel: Attached scsi generic sg1 at scsi1, channel
> 0, id 0, lun 0, type 0
>
>
> When I try and load the sd_mod module, that terminal just simply freezes
> and I can't break out. Similarly, if I compile scsi disk support right
> into the kernel, it sits forever at boot time.

Chris,
The compact flash probably doesn't like a MODE SENSE
command it is being sent by the sd driver. When sd is
a module then if your other (pseudo) terminals are alive
after 'modprobe sd_mod' locks up then perhaps you could
try 'ps -eo cmd,wchan' on another terminal and report
the result for that modprobe.

Some patches went into sd recently (and more are being discussed)
to lower the MODE SENSE traffic during sd initialization. There
is a very wide range of devices that use the scsi command set
and there is no easy way to know during scan/initialization
how well a device will handle some commands (scsi_level ??).

Another thing you could do is fetch sg3_utils from
http://www.torque.net/sg and report the result of
'sg_modes -a /dev/sg1'. That will report the MODE SENSE
commands the device claims to support. [BTW Run 'sg_modes'
before you try to 'modprobe sd_mod'.]

Doug Gilbert



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.034 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site