Subject: iop0: unable to retrieve HRT
To: None <current-users@netbsd.org>
From: Kosaki Kotaro <kosaki@math.sci.shizuoka.ac.jp>
List: current-users
Date: 02/01/2006 17:01:36
 I apologize  if this mail is illegal.

 I also have a a Dell Poweredge 1400 with Dell PERC 2/DC 
 It is a Linux box.
 I have tried to install NetBSD-current on it whithout success.

 So  tested  a strange trick . ( whith success? )



 iop_pci.c

 --------------------------
 static int
 iop_pci_match(struct device *parent, struct cfdata *match, void *aux)
 {  
	 struct pci_attach_args *pa;
	 u_int product, vendor;
	 pcireg_t reg;

	 pa = aux;

 return (0); /* add this line */
	 /*
	  * Look for an "intelligent I/O processor" that adheres to the I2O
	  * specification.  Ignore the device if it doesn't support interrupt
	  * driven operation.
	  */
	 if (PCI_CLASS(pa->pa_class) == PCI_CLASS_I2O &&
	     PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_I2O_STANDARD &&
	     PCI_INTERFACE(pa->pa_class) == PCI_INTERFACE_I2O_INTRDRIVEN)
		 return (1);
 /*  return (0);   fails */
  ------------------------------------------------

   amr.c
 -----------------------------------------------------
  static int
  amr_match(struct device *parent, struct cfdata *match, void *aux)
  {
	  struct pci_attach_args *pa;
	  pcireg_t s;
	  int i;

	  pa = (struct pci_attach_args *)aux;

	  /*
	   * Don't match the device if it's operating in I2O mode.  In this
	   * case it should be handled by the `iop' driver.
	   */
  #if 0  /* add this line */
	  if (PCI_CLASS(pa->pa_class) == PCI_CLASS_I2O)
		  return (0);
  #endif  /* add this line */

  -----------------------------------------

  dmesg  
 ---------------------------------------------------------------
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
     The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

 NetBSD 3.99.15 (INSTALL) #5: Wed Feb  1 14:20:02 JST 2006
	 kosaki@smile.sci.shizuoka.ac.jp:/udd2/i386/obj/sys/arch/i386/compile/INSTALL
 total memory = 127 MB
 avail memory = 116 MB
 BIOS32 rev. 0 found at 0xffe90
 mainbus0 (root)
 cpu0 at mainbus0: (uniprocessor)
 cpu0: Intel Pentium III (686-class), 797.53 MHz, id 0x686
 cpu0: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
 cpu0: features 383fbff<FXSR,SSE>
 cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
 cpu0: L2 cache 256 KB 32B/line 8-way
 cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
 cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
 cpu0: 8 page colors
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 pchb0 at pci0 dev 0 function 0
 pchb0: vendor 0x1166 product 0x0009 (rev. 0x06)
 pchb1 at pci0 dev 0 function 1
 pchb1: vendor 0x1166 product 0x0009 (rev. 0x06)
 pci1 at pchb1 bus 1
 pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 ahc1 at pci1 dev 2 function 0: Adaptec aic7899 Ultra160 SCSI adapter
 ahc1: interrupting at irq 5
 ahc1: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
 scsibus0 at ahc1: 16 targets, 8 luns per target
 ahc2 at pci1 dev 2 function 1: Adaptec aic7899 Ultra160 SCSI adapter
 ahc2: interrupting at irq 11
 ahc2: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
 scsibus1 at ahc2: 16 targets, 8 luns per target
 ahc3 at pci1 dev 4 function 0: Adaptec 2940 Ultra2 SCSI adapter
 ahc3: interrupting at irq 10
 ahc3: aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
 scsibus2 at ahc3: 16 targets, 8 luns per target
 fxp0 at pci1 dev 6 function 0: i82559 Ethernet, rev 8
 fxp0: interrupting at irq 5
 fxp0: Ethernet address 00:02:b3:0c:d6:9a
 inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 ppb0 at pci1 dev 10 function 0: vendor 0x8086 product 0x0964 (rev. 0x02)
 pci2 at ppb0 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 amr0 at pci1 dev 10 function 1: AMI RAID <Series 467>
 amr0: interrupting at irq 11
 amr0: firmware <1.06>, BIOS <1p00>, 128MB RAM
 ld0 at amr0 unit 0: RAID 5, optimal
 ld0: 17136 MB, 8704 cyl, 64 head, 63 sec, 512 bytes/sect x 35094528 sectors
 fxp1 at pci0 dev 2 function 0: i82559 Ethernet, rev 8
 fxp1: interrupting at irq 11
 fxp1: May need receiver lock-up workaround
 fxp1: Ethernet address 00:b0:d0:78:a7:f1
 inphy1 at fxp1 phy 1: i82555 10/100 media interface, rev. 4
 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 vga1 at pci0 dev 14 function 0: vendor 0x1002 product 0x4752 (rev. 0x27)
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
 wsmux1: connecting to wsdisplay0
 pcib0 at pci0 dev 15 function 0
 pcib0: vendor 0x1166 product 0x0200 (rev. 0x50)
 rccide0 at pci0 dev 15 function 1
 rccide0: ServerWorks OSB4 IDE Controller (rev. 0x00)
 rccide0: bus-master DMA support present
 rccide0: primary channel configured to compatibility mode
 rccide0: primary channel interrupting at irq 14
 atabus0 at rccide0 channel 0
 rccide0: secondary channel configured to compatibility mode
 rccide0: secondary channel interrupting at irq 15
 atabus1 at rccide0 channel 1
 ohci0 at pci0 dev 15 function 2: vendor 0x1166 product 0x0220 (rev. 0x04)
 ohci0: interrupting at irq 10
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: vendor 0x1166 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 isa0 at pcib0
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
 pckbc0 at isa0 port 0x60-0x64
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 npx0 at isa0 port 0xf0-0xff: using exception 16
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 isapnp0: no ISA Plug 'n Play devices found
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 Kernelized RAIDframe activated
 md0: internal 5000 KB image area
 scsibus0: waiting 2 seconds for devices to settle...
 scsibus1: waiting 2 seconds for devices to settle...
 scsibus2: waiting 2 seconds for devices to settle...
 atapibus0 at atabus0: 2 targets
 cd0 at atapibus0 drive 0: <TEAC CD-W552G, , Q4S2> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(rccide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 boot device: fd0
 root on md0a dumps on md0b
 root file system type: ffs
 warning: no /dev/console
 -------------------------------------------------------------------------

 fdisk ld0

---------------------------------------------------------------------------
Disk: /dev/rld0d
NetBSD disklabel disk geometry:
cylinders: 8704, heads: 64, sectors/track: 63 (4032 sectors/cylinder)
total sectors: 35094528

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 35094528

Partition table:
0: Dell PowerEdge Server utilities (sysid 222)
    start 63, size 32067 (16 MB, Cyls 0-2)
1: Linux native (sysid 131)
    start 32130, size 8401995 (4103 MB, Cyls 2-525)
2: Linux native (sysid 131)
    start 8434125, size 48195 (24 MB, Cyls 525-528), Active
3: Extended partition (sysid 5)
    start 8482320, size 26603640 (12990 MB, Cyls 528-2184)
Extended partition table:
E0: Linux native (sysid 131)
    start 8482383, size 4208967 (2055 MB, Cyls 528-790)
E1: Linux native (sysid 131)
    start 12691413, size 2104452 (1028 MB, Cyls 790-921)
E2: Linux swap or Prime or Solaris (sysid 130)
    start 14795928, size 1060227 (518 MB, Cyls 921-987)
E3: Linux native (sysid 131)
    start 15856218, size 1060227 (518 MB, Cyls 987-1053)
E4: Linux native (sysid 131)
    start 16916508, size 530082 (259 MB, Cyls 1053-1086)
E5: Linux native (sysid 131)
    start 17446653, size 17639307 (8613 MB, Cyls 1086-2184)
----------------------------------------------------------------------

kosaki