mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Rusty Lynch <rusty@stinkycat.com>
Cc: groudier@free.fr, linux-kernel@vger.kernel.org,
	linux-scsi@vger.kernel.org
Subject: Re: [BUG][2.5.49 SCSI]Duplicate Proc Entries for SCSI
Date: Tue, 26 Nov 2002 14:24:35 -0800	[thread overview]
Message-ID: <20021126142435.A1402@eng2.beaverton.ibm.com> (raw)
In-Reply-To: <200211250609.gAP69YS09374@stinkycat.com>; from rusty@stinkycat.com on Sun, Nov 24, 2002 at 10:09:34PM -0800

Rusty -

On Sun, Nov 24, 2002 at 10:09:34PM -0800, Rusty Lynch wrote:
> On my 2.5.49 build, I am seeing duplicate entries in /proc/scsi/scsi. 
> On this system both scsi devices are both emulated (one is an Sony 
> IDE ReWritable CD drive and the other is PNY USB flash card reader using 
> the mass-storage driver.) 
> 
> Before plugging in the flash card reader, /proc/scsi/scsi looks like: 
> Attached devices: 
> Host: scsi0 Channel: 00 Id: 00 Lun: 00 
>   Vendor: SONY     Model: CD-RW CRX1611    Rev: TYS3 
>   Type:   CD-ROM                           ANSI SCSI revision: 02 
> Host: scsi0 Channel: 00 Id: 00 Lun: 01 
>   Vendor: SONY     Model: CD-RW CRX1611    Rev: TYS3 
>   Type:   CD-ROM                           ANSI SCSI revision: 02 
> 
> and after plugging in the flash card reader, /proc/scsi/scsi looks like: 
> Attached devices: 
> Host: scsi0 Channel: 00 Id: 00 Lun: 00 
>   Vendor: SONY     Model: CD-RW CRX1611    Rev: TYS3 
>   Type:   CD-ROM                           ANSI SCSI revision: 02 
> Host: scsi0 Channel: 00 Id: 00 Lun: 01 
>   Vendor: SONY     Model: CD-RW CRX1611    Rev: TYS3 
>   Type:   CD-ROM                           ANSI SCSI revision: 02 
> Host: scsi1 Channel: 00 Id: 00 Lun: 00 
>   Vendor: Datafab  Model: USB to CF + SM C Rev: 0017 
>   Type:   Direct-Access                    ANSI SCSI revision: 02 
> Host: scsi1 Channel: 00 Id: 00 Lun: 01 
>   Vendor: Datafab  Model: USB to CF + SM C Rev: 0017 
>   Type:   Direct-Access                    ANSI SCSI revision: 02 

Did you figure out anything? Was there anything of interest in your dmesg?

I tried out 2.5.49, and all scsi devices showed up just once, both for
the aic driver built into the kernel, and for qla driver built as a
module, with SCSI revision 2 and 3 devices attached to the qla.

Maybe it is specific to ide-scsi or the usb-scsi pseudo adapter drivers.

Try turning on scsi scan logging before inserting the flash card via:

echo scsi log scan 4  >/proc/scsi/scsi

And send the output.

My single lun scsi 2 disks display the following, showing that
lun 1 is (correctly) not configured off of id 1 and id 2:

[ junk deleted ]
scsi scan: INQUIRY to host 2 channel 0 id 1 lun 0
scsi scan: 1st INQUIRY successful with code 0x0
scsi scan: 2nd INQUIRY successful with code 0x0
  Vendor: SEAGATE   Model: ST39173F CLAR09   Rev: 351B
  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi scan: host 2 channel 0 id 1 lun 0 name/id: '32000002037109657'
scsi scan: Sequential scan of host 2 channel 0 id 1
scsi scan: INQUIRY to host 2 channel 0 id 1 lun 1
scsi scan: 1st INQUIRY successful with code 0x0
scsi scan: 2nd INQUIRY successful with code 0x0
scsi scan: peripheral qualifier of 3, no device added
scsi scan: INQUIRY to host 2 channel 0 id 2 lun 0
scsi scan: 1st INQUIRY successful with code 0x0
scsi scan: 2nd INQUIRY successful with code 0x0
  Vendor: SEAGATE   Model: ST39173F CLAR09   Rev: 351B
  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi scan: host 2 channel 0 id 2 lun 0 name/id: '32000002037109db0'
scsi scan: Sequential scan of host 2 channel 0 id 2
scsi scan: INQUIRY to host 2 channel 0 id 2 lun 1
scsi scan: 1st INQUIRY successful with code 0x0
scsi scan: 2nd INQUIRY successful with code 0x0
scsi scan: peripheral qualifier of 3, no device added
[ lots of stuff deleted, as this fcp adapter goes up to id 255 ]

-- Patrick Mansfield

  reply	other threads:[~2002-11-26 22:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25  6:09 Rusty Lynch
2002-11-26 22:24 ` Patrick Mansfield [this message]
2002-11-26 22:54   ` Rusty Lynch

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=20021126142435.A1402@eng2.beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=groudier@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rusty@stinkycat.com \
    /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

all inboxes | Powered by JetHome®