Skip to contentSkip to conversation

Linux 2.4.2ac20

DISCUSSION Douglas Gilbert 1 participant 1 message Mar 13, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 16 lines
Quoted 15 lines · David Balazic
Quoted 5 lines · Nathan Walp

Also, sometime between ac7 and ac18 (spring break kept me from testing stuff inbetween), i assume during the new aic7xxx driver merge, the order of detection got changed, and now the ide-scsi virtual host is host0, and my 29160N is host1. Is this on purpose? It messed up a bunch of my stuff as far as /dev and such are concerned.

SCSI adapters are enumerated randomly(*) , relying on certain numbering will get you into trouble, sooner or later.
There is no commonly accepted solution, AFAIK.
The same thing can happent to disk enumeration ( sdb becomes sdc ) or partition enumeration ( hda6 becomes hda5 ).

Quoted 6 lines
Quoted 1 line

* - theoreticaly no, but practicaly yes ( most of the time )

SCSI adapters are given host numbers in a random order? Even with no hardware changes? Does this make less than sense to anyone else? Every kernel EVER up till now has had the real scsi cards (in some particular order) then ide-scsi. Have I just been lucky???

Built in scsi adapter drivers are probed in the order in which they appear in drivers/scsi/Makefile (in the lk 2.4 series). Adapters can be assigned to host numbers using the "scsihosts" kernel boot option (but this will not differentiate between 2 adapters controlled by the same driver (e.g. 2 29160 cards)). Scsi buses are scanned for devices in ascending order.

If you have lots of SCSI devices then devfs is your friend.

Doug Gilbert