linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Chris Friesen <chris_friesen@sympatico.ca>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: problems with scsi disk, scsi generic, and compact flash reader
Date: Fri, 10 Oct 2003 15:35:33 +1000	[thread overview]
Message-ID: <3F864525.3040009@torque.net> (raw)
In-Reply-To: <3F860227.3040909@sympatico.ca>

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




      reply	other threads:[~2003-10-10  5:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F864525.3040009@torque.net \
    --to=dougg@torque.net \
    --cc=chris_friesen@sympatico.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).