From: Massimo Dal Zotto <dz@cs.unitn.it>
To: root@chaos.analogic.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: wrong /dev/sd... order with multiple adapters in kernel 2.4.4
Date: Wed, 16 May 2001 20:55:43 +0200 (MEST) [thread overview]
Message-ID: <200105161856.UAA18123@fandango.cs.unitn.it> (raw)
In-Reply-To: <Pine.LNX.3.95.1010516141437.2686A-100000@chaos.analogic.com> from "Richard B. Johnson" at "May 16, 2001 02:25:45 pm"
> On Wed, 16 May 2001, Massimo Dal Zotto wrote:
>
> > Hi,
> >
> > I have recently upgraded the kernel from 2.2.19 to 2.4.4 and discovered
> > that it assigns the /dev/sd... devices in the wrong order with respect both
> > to the behavior of kernel 2.2.19 and to the `scsihosts' boot option which I
> > specified at the boot prompt.
> [SNIPPED]
>
> As a work-around, you can use modules and boot through 'initrd' where
> you load the modules in the order you want.
I wanted to use a simpler method, a plain kernel with two static drivers
which can simply be copied to /boot or to a floppy. Of course any more
sophisticated method would work but I wanted a simple thing.
> When you have two SCSI disk controllers, the order at which the drives
> are seen will "always be wrong" --Murphys Law. You can control the
> order in which the controllers are detected and installed by using
> modules.
Yes, I understand that any particular order will be wrong for some users.
I'm not complaining about the current scan order. What I'm complaining about
is that we do *have* a specific method of forcing the desired order (the
scsihosts boot option) but this is ignored by some parts of the scsi code.
I suggest that the scsihosts order is taken into account also when detecting
the /dev/sd devices and not only when creating the /dev/scsi/ devices.
> Basically you cannot ever expect that multiple controllers will
> be detected in any particular order. They usually end up being detected
> in the device-order for which they exist on the PCI bus. This changes!
This is not the case with kernel 2.4.4. They are detected in `ld' order.
Changing the makefiles will change the scan order.
> If both of your controllers are "pluggable", you can swap them
> on the physical bus to change the order in which they are detected.
This is impossible given the density of cables and cards in the cabinet, and
useless anyway given the fact that devices are detected in `ld' order.
> If only one is pluggable, you might try another PCI slot. It may
> have a number above/below the one embedded on the board.
>
> Cheers,
> Dick Johnson
>
> Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).
>
> "Memory is like gasoline. You use it up when you are running. Of
> course you get it all back when you reboot..."; Actual explanation
> obtained from the Micro$oft help desk.
>
>
--
Massimo Dal Zotto
+----------------------------------------------------------------------+
| Massimo Dal Zotto email: dz@cs.unitn.it |
| Via Marconi, 141 phone: ++39-0461534251 |
| 38057 Pergine Valsugana (TN) www: http://www.cs.unitn.it/~dz/ |
| Italy pgp: see my www home page |
+----------------------------------------------------------------------+
prev parent reply other threads:[~2001-05-16 18:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-16 11:38 Massimo Dal Zotto
2001-05-16 18:02 ` Michael Meissner
2001-05-16 18:25 ` Richard B. Johnson
2001-05-16 18:55 ` Massimo Dal Zotto [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=200105161856.UAA18123@fandango.cs.unitn.it \
--to=dz@cs.unitn.it \
--cc=linux-kernel@vger.kernel.org \
--cc=root@chaos.analogic.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®