linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problems with scsi disk, scsi generic, and compact flash reader
@ 2003-10-10  0:49 Chris Friesen
  2003-10-10  5:35 ` Douglas Gilbert
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Friesen @ 2003-10-10  0:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-scsi, dgilbert


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.  I have the following
options set in my .config.

#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=m
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
CONFIG_CHR_DEV_SG=y

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_REPORT_LUNS is not set
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y


Any ideas what's going on?

Thanks,
Chris



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: problems with scsi disk, scsi generic, and compact flash reader
  2003-10-10  0:49 problems with scsi disk, scsi generic, and compact flash reader Chris Friesen
@ 2003-10-10  5:35 ` Douglas Gilbert
  0 siblings, 0 replies; 2+ messages in thread
From: Douglas Gilbert @ 2003-10-10  5:35 UTC (permalink / raw)
  To: Chris Friesen; +Cc: linux-kernel, linux-scsi

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-10  5:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-10  0:49 problems with scsi disk, scsi generic, and compact flash reader Chris Friesen
2003-10-10  5:35 ` Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).