public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: linux-kernel@vger.kernel.org
Subject: Wrong SCSI bus scanning
Date: Tue, 25 Sep 2001 02:32:41 +0200	[thread overview]
Message-ID: <20010925023241.F14771@lug-owl.de> (raw)

Hi!

For me, SCSI bus # 2 gets double-assigned. Physical layout
is currently:

	Bus 0:	AIC7xxx (U160 onboard)
		- ID0:	IBM DDYS-T18350N
		
	Bus 1:	AIC7xxx (2nd U160 onboard bus)
		- unused
	
	Bus 2:	sym53c8xx ('875)
		- ID1:	PLEXTOR CD-R PX-W1210S
		- ID2:	PLEXTOR CD-ROM PX-40TS
		- ID3:	PIONEER DVD-ROM DVD-305

	Bus 3:	ncr53c8xx ('810)
		- ID0:	HP CD-Writer 6020
		- ID1:	PLASMON CDR4220

The U160 controller attaches to my boot disk, so it is compiled-in.
Both other drivers are modules.

When I insert modules for busses #2 and #3, *both* of them get
bus #2 assigned:

==> before additional modules:
weiss-ich-doch-nicht:~# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) 'IBM     ' 'DDYS-T18350N    ' 'S96H' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *

==> after sym53c8xx:
weiss-ich-doch-nicht:~# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) 'IBM     ' 'DDYS-T18350N    ' 'S96H' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus2:
        2,0,0   200) *
        2,1,0   201) 'PLEXTOR ' 'CD-R   PX-W1210S' '1.02' Removable CD-ROM
        2,2,0   202) 'PLEXTOR ' 'CD-ROM PX-40TS  ' '1.12' Removable CD-ROM
        2,3,0   203) 'PIONEER ' 'DVD-ROM DVD-305 ' '1.03' Removable CD-ROM
        2,4,0   204) *
        2,5,0   205) *
        2,6,0   206) *
        2,7,0   207) *

==> after additional insertion of ncr53c8xx:
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.20
Using libscg version 'schily-0.5'
scsibus0:
        0,0,0     0) 'IBM     ' 'DDYS-T18350N    ' 'S96H' Disk
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus2:
        2,0,0   200) 'HP      ' 'CD-Writer 6020  ' '1.07' Removable CD-ROM
        2,1,0   201) 'PLEXTOR ' 'CD-R   PX-W1210S' '1.02' Removable CD-ROM
        2,2,0   202) 'PLEXTOR ' 'CD-ROM PX-40TS  ' '1.12' Removable CD-ROM
        2,3,0   203) 'PIONEER ' 'DVD-ROM DVD-305 ' '1.03' Removable CD-ROM
        2,4,0   204) *
        2,5,0   205) *
        2,6,0   206) *
        2,7,0   207) *

==> Now, /proc/scsi/scsi contains:

weiss-ich-doch-nicht:/proc/scsi# cat scsi 
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: IBM      Model: DDYS-T18350N     Rev: S96H
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi2 Channel: 00 Id: 01 Lun: 00 <---------------------------
  Vendor: PLEXTOR  Model: CD-R   PX-W1210S Rev: 1.02
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 02 Lun: 00
  Vendor: PLEXTOR  Model: CD-ROM PX-40TS   Rev: 1.12
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 03 Lun: 00
  Vendor: PIONEER  Model: DVD-ROM DVD-305  Rev: 1.03
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: HP       Model: CD-Writer 6020   Rev: 1.07
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 01 Lun: 00 <---------------------------
  Vendor: PLASMON  Model: CDR4220          Rev: 1.20
  Type:   CD-ROM                           ANSI SCSI revision: 02


...which is obviously wrong. Any suggestion on where to start
to search the bug?

MfG, JBG

-- 
Jan-Benedict Glaw . jbglaw@lug-owl.de . +49-172-7608481

             reply	other threads:[~2001-09-25  0:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-25  0:32 Jan-Benedict Glaw [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-25 19:10 Wrong SCSI bus scanning Cress, Andrew R

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=20010925023241.F14771@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=linux-kernel@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