[1621] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: SCSI Host ordering...

daemon@ATHENA.MIT.EDU (Richard Waltham)
Wed Mar 26 18:42:45 1997

From: Richard Waltham <dormouse@farsrobt.demon.co.uk>
To: davidg@newton.dialix.com.au (David Gray)
Date: 	Wed, 26 Mar 1997 23:37:07 +0000 (GMT)
Cc: groudier@club-internet.fr, linux-scsi@vger.rutgers.edu
In-Reply-To: <3338E018.3E1AC2FA@newton.dialix.oz.au> from "David Gray" at Mar 26, 97 04:36:40 pm

Hi David,

Here's something I've just tried on my other system which is quite happily
running with the 53c875 as host 0 and the 810a as host 1.

--- ncr53c8xx.c~	Wed Mar 26 21:38:16 1997
+++ ncr53c8xx.c	Wed Mar 26 21:38:16 1997
@@ -8400,7 +8400,8 @@
 #endif
 
      if (pcibios_present()) {
-	  for (i = 0; i < NPCI_CHIP_IDS; ++i) 
+/*	  for (i = 0; i < NPCI_CHIP_IDS; ++i) */
+	  for (i = NPCI_CHIP_IDS-1; i >= 0; i--) 
 	       for (pci_index = 0;
 		    !pcibios_find_device(PCI_VENDOR_ID_NCR, 
 					 pci_chip_ids[i].pci_device_id, pci_index, &pci_bus, 


It reverses the search order for the different Symbios chips so finds the
53c875 first.

I expect the only alternative is to change fstab:(

Gerard, who maintains the driver, did mention some time ago about wanting to
be able to use the information in the nvram so I expect it will be included
in the driver some time but its a bit poke and hope getting it going I
suppose as I don't think there's any details published on the data format, 
never mind sorting the routines to read the data out of it. 

Richard

> 
> Hi,
> 
> I have a system with two Symbios SCSI controllers in it, a 810a and a
> 875 ultra fast wide controller.
> 
> The system disk hangs off the 875 and the 810 has a couple of slower
> external shoeboxes on it.
> 
> The system is configured so that it expects to find the root filesystem
> + swap spaces on /dev/sda.
> 
> The PC's BIOS allows me to specify a 'boot order' for the two SCSI cards
> and I have it set to scan the 875 before the 810 so it boots off the
> fast wide system disk.
> 
> However, as soon as Linux comes up, the ncr53c8xx driver orders the two
> adaptors with the 810 as host-0 and the 875 as host-1. As soon as I
> attach any disks to the 810, they get assigned as /dev/sda, sdb etc, the
> system disk gets /dev/sdc, Linux can't find it's root filesystem and the
> system won't boot.
> 
> Is there anything that I can do to change the ordering of the host
> adaptors? I am using the 1.18c drivers on a 2.0.29 kernel.
> 
> I couldn't see anything in the documentation, but I would happy to be
> corrected if I missed it! :-)
> 
> Thanks,
> David Gray.
> 



home help back first fref pref prev next nref lref last post