Subject: NOTE: changes to root device detection
To: None <port-alpha@netbsd.org>
From: Charles M. Hannum <abuse@spamalicious.com>
List: port-alpha
Date: 06/28/2004 04:04:24
I've just committed a bunch of changes to root device detection on all 
PCI-based platforms.  (I have not touched the TurboChannel code at all.)  
This is intended to fix a few long-standing problems which usually result in 
either the wrong device being used, or a "can't figure device" message.  
Please test this on any Alpha systems you have and let me know if there are 
any new problems or old problems fixed.  (Complete dmesg output is helpful in 
either case.)


Module Name:    src
Committed By:   mycroft
Date:           Mon Jun 28 03:53:40 UTC 2004

Modified Files:
        src/sys/arch/alpha/alpha: api_up1000.c avalon_a12.c dec_1000a.c
            dec_2100_a50.c dec_2100_a500.c dec_550.c dec_6600.c
            dec_alphabook1.c dec_axppci_33.c dec_eb164.c dec_eb64plus.c
            dec_eb66.c dec_kn20aa.c dec_kn300.c dec_kn8ae.c

Log Message:
Significant cleanup and bug fix of root device detection:
* On systems where it's relevant (6600, kn300, kn8ae), check which PCI bus
  hierarchy we're looking at.
* Consistently check PCI function numbers (important for quad-channel ATA
  controllers).
* Check the channel number (important for ATA and multi-channel SCSI
  controllers).
* Check logical unit numbers.
* Use strcasecmp() to check b->protocol; the case is different depending on
  the firmware revision.
* Remove b->boot_dev_type check; it's unneeded.
* Remove extraneous unneeded variables.

Not only does this fix a few PRs and multiple long-standing bugs, but the
code is smaller too.

PR 9432
PR 12225
PR 25830