All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: scsi bus numbering
@ 2001-04-01 16:10 Douglas Gilbert
  2001-04-01 19:00 ` Peter Daum
  0 siblings, 1 reply; 8+ messages in thread
From: Douglas Gilbert @ 2001-04-01 16:10 UTC (permalink / raw)
  To: linux-kernel; +Cc: Peter Daum, linux-scsi

Peter Daum <gator@cs.tu-berlin.de> wrote:
> For some reason, the order of initializing the scsi drivers
> changed between 2.4.2 and 2.4.3: If both, ncr53c8xx and aic7xxx
> drivers are included in the kernel, up to version 2.4.2, the
> adaptec driver always came first (so the first disk on an adaptec
> controller ended up as /dev/sda) while in 2.4.3, the ncr driver
> initializes first and all the device names change - with
> potentially disastrous effects for unsuspecting users.
> 
> AFAIK, the numbering of scsi busses depends only on the order the
> low-level drivers are loaded. Not that I can think of any better
> way to do this, but it would be good if things were a little bit
> more predictable - in absence of any better idea, maybe by
> loading the drivers in alphabetical order or something like that ...

Looking at the drivers/scsi/Makefile file in lk 2.4.3
you can see that aic7xxx_old.o is about half way down
the list with ncr53c8xx.o towards the end. So this
dictates the old behaviour (in the lk 2.4 series).
However the new aic7xxx driver isn't in that list,
it has its own entry:
    subdir-$(CONFIG_SCSI_AIC7XXX)   += aic7xxx
which seems to invoke drivers/scsi/aic7xxx/Makefile
_after_ all other built in adapters drivers are built.
Maybe another "make" mechanism needs to be found to
restore the previous ordering information. In any case
building the aic7xxx driver last has already surprised
a lot of people.
 
> How is it possible, to influence that order at the moment (for
> example, to revert to the old order)? I personally couldn't
> figure out, where to change this.

>>>>>>>>>  scsihosts  <<<<<<<<<<<<<

As a boot time option try:
  scsihosts=aic7xxx:ncr53c8xxx
or if you are using lilo, in /etc/lilo.conf add:
  append="scsihosts=aic7xxx:ncr53c8xxx"

Actually just doing:
  scsihosts=aic7xxx
should do the trick for most people.

In the unlikely case that the SCSI mid level is a module,
then you can pass the scsihosts argument to the
module load (or add an option line to /etc/modules.conf):
  modprobe scsi_mod scsihosts=aic7xxx:ncr53c8xxx

You could also read the SCSI-2.4-HOWTO at:
http://www.linuxdoc.org/HOWTO/SCSI-2.4-HOWTO/

BTW You can thank Richard Gooch and devfs for scsihosts.
Lucky he spotted the requirement some time back.

Doug Gilbert

^ permalink raw reply	[flat|nested] 8+ messages in thread
* scsi bus numbering
@ 2001-04-01 16:22 Peter Daum
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Daum @ 2001-04-01 16:22 UTC (permalink / raw)
  To: linux-kernel


For some reason, the order of initializing the scsi drivers
changed between 2.4.2 and 2.4.3: If both, ncr53c8xx and aic7xxx
drivers are included in the kernel, up to version 2.4.2, the
adaptec driver always came first (so the first disk on an adaptec
controller ended up as /dev/sda) while in 2.4.3, the ncr driver
initializes first and all the device names change - with
potentially disastrous effects for unsuspecting users.

AFAIK, the numbering of scsi busses depends only on the order the
low-level drivers are loaded. Not that I can think of any better
way to do this, but it would be good if things were a little bit
more predictable - in absence of any better idea, maybe by
loading the drivers in alphabetical order or something like that ...

How is it possible, to influence that order at the moment (for
example, to revert to the old order)? I personally couldn't
figure out, where to change this.

Regards,
              Peter Daum


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

end of thread, other threads:[~2001-04-03  3:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-01 16:10 scsi bus numbering Douglas Gilbert
2001-04-01 19:00 ` Peter Daum
2001-04-01 21:03   ` Douglas Gilbert
2001-04-02 20:50     ` Justin T. Gibbs
2001-04-02 23:59       ` Jeff Garzik
2001-04-03  3:03         ` Justin T. Gibbs
2001-04-02  0:57   ` Justin T. Gibbs
  -- strict thread matches above, loose matches on Subject: below --
2001-04-01 16:22 Peter Daum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.