Messages in this thread | | | Date | Sun, 19 Apr 1998 03:48:35 -0500 | From | Doug Ledford <> | Subject | Re: 2.0.33 is mixing up my Adaptec controllers |
| |
Kristian Koehntopp wrote:
> I hacked around my particular problem by inverting the sorting > order of aic7xxx_pci_devices[]. But I suspect that the real > solution to the problem is to swap the inner and the outer loop: > The driver should probe the first PCI slot first for a matching > Adaptec controller, then proceed to the next PCI slot in slot > order. This would ensure that controllers are found in the same > order as the Bios finds them.
Strictly speaking, it's *very* hard for the driver to know exactly which order the BIOS will put the cards into since this can vary from BIOS to BIOS. The vast majority simple sort the cards from lowest PCI slot number to highest PCI slot number. But, that doesn't always hold true, and it also depends on the state of the BIOS ENABLED flag in the Adaptec SCSI BIOS. So, the latest driver (in 2.0.34-pre9 and in 2.1.96) has a boot time option to reverse the scan order, and it attmepts to do lowest to highest ordering by default. The algo. still isn't perfect, but with the reverse_sort option you should be able to get things like this to work properly without doing any hacking.
--
Doug Ledford <dledford@dialnet.net> Opinions expressed are my own, but they should be everybody's.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |