Subject: Re: AIC7899-related problems in 1.5.2 & -current
To: Frank van der Linden <fvdl@wasabisystems.com>
From: Lista de NetBSD current <list11@sepc.edu.mx>
List: current-users
Date: 01/23/2002 18:08:59
I am sorry for the late of this response.

Thanks, Frank... the patch was the solution for my problem
and the server Dell 4400 is working now.

NetBSD 1.5.2 is installed now in sd0 and sd1 under ahc1
(aic7899) and works very very very fine.

The enumeration of the pci buses is wrong yet, but it seems
like is not a problem. If you wish to do more testing with
this server, please tell me... This server will be out of
production for two weeks.

At the end of this message is the "dmesg listing" of Dell 4400

Thanks again, Frank.

Atentamente

Heron Gallegos
Saltillo, Coahuila, Mexico

On Wed, 12 Dec 2001, Frank van der Linden wrote:

> Date: Wed, 12 Dec 2001 14:29:03 +0100
> From: Frank van der Linden <fvdl@wasabisystems.com>
> To: Lista de NetBSD current <list11@sepc.edu.mx>
> Cc: current-users@netbsd.org, netbsd-help@netbsd.org
> Subject: Re: AIC7899-related problems in 1.5.2 & -current
>
> On Tue, Dec 11, 2001 at 06:52:34PM -0600, Lista de NetBSD current wrote:
> > Thanks, Johnny... I have patched my sys/arch/i386/pci/pchb.c and
> > I compiled a new kernel but the result at boot time is not good
> > for me and the Dell4400. The machine starts from sd0a attached
> > to a SCSI adapter in a PCI slot, but it can't see the SCSI chips
> > built in mainboard.
> >
> > If you have another idea about the solution, I will be happy
> > to test it... thanks again.
>
> I made the code explicitly switch on IO space for the CNB20HE, but not
> the CNB20LE (mainly because noone had tested that so far). It seems
> that it is needed for the CNB20LE as well. Could you try the following,
> additional patch:
>
>
> Index: pchb.c
> ===================================================================
> RCS file: /cvsroot/syssrc/sys/arch/i386/pci/pchb.c,v
> retrieving revision 1.29
> diff -c -r1.29 pchb.c
> *** pchb.c	2001/11/15 07:03:34	1.29
> --- pchb.c	2001/12/12 13:30:03
> ***************
> *** 144,149 ****
> --- 144,150 ----
>   		switch (PCI_PRODUCT(pa->pa_id)) {
>   		case PCI_PRODUCT_SERVERWORKS_XX5:
>   		case PCI_PRODUCT_SERVERWORKS_CNB20HE:
> + 		case PCI_PRODUCT_SERVERWORKS_CNB20LE:
>   		case PCI_PRODUCT_SERVERWORKS_CIOB20:
>   			if ((attachflags &
>   			    (PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED)) ==
>
> --
> Frank van der Linden                           fvdl@wasabisystems.com
> ======================================================================
> Quality NetBSD CDs, Support & Service.   http://www.wasabisystems.com/
>


This is the dmesg listing of the Dell 4400 with the patches of Frank.

NetBSD 1.5.2 (GENERIC) #1: Wed Dec 12 07:09:25 CST 2001
    gallegos@dell4400:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Coppermine) Xeon (686-class), 930.45 MHz
total memory = 511 MB
avail memory = 468 MB
using 6574 buffers containing 26296 KB of memory
BIOS32 rev. 0 found at 0xffe90
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Pequr Technology CNB20LE Host (rev. 0x06)
pchb1 at pci0 dev 0 function 1
pchb1: Pequr Technology CNB20LE Host (rev. 0x06)
pci1 at pchb1 bus 1
pci1: i/o space, memory space enabled
fxp0 at pci0 dev 4 function 0: Intel i82557 Ethernet, rev 8
fxp0: interrupting at irq 14
fxp0: Ethernet address 00:b0:d0:78:ad:51, 10/100 Mb/s
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vga1 at pci0 dev 6 function 0: ATI Technologies product 0x4759 (rev. 0x7a)
wsdisplay0 at vga1: console (80x25, vt100 emulation)
pcib0 at pci0 dev 15 function 0
pcib0: Pequr Technology ROSB4 SouthBridge (rev. 0x50)
pchb2 at pci0 dev 17 function 0
pchb2: Pequr Technology CNB20LE Host (rev. 0x06)
pci2 at pchb2 bus 6
pci2: i/o space, memory space enabled
ppb0 at pci2 dev 4 function 0: Intel product 0x0962 (rev. 0x02)
pci3 at ppb0 bus 7
pci3: i/o space, memory space enabled
ahc1 at pci3 dev 4 function 0
OptionMode = 3
ahc1: interrupting at irq 12
ahc1: aic7899 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc1 channel 0: 16 targets, 8 luns per target
ahc2 at pci3 dev 4 function 1
OptionMode = 3
ahc2: interrupting at irq 11
ahc2: aic7899 Wide Channel B, SCSI Id=7, 16/255 SCBs
scsibus1 at ahc2 channel 0: 16 targets, 8 luns per target
ahc3 at pci3 dev 6 function 0
ahc3: interrupting at irq 10
ahc3: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs
scsibus2 at ahc3 channel 0: 8 targets, 8 luns per target
pchb3 at pci0 dev 17 function 1
pchb3: Pequr Technology CNB20LE Host (rev. 0x06)
pci4 at pchb3 bus 8
pci4: i/o space, memory space enabled
ahc4 at pci4 dev 4 function 0
ahc4: interrupting at irq 5
ahc4: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus3 at ahc4 channel 0: 16 targets, 8 luns per target
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
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
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
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
biomask bf65 netmask ff65 ttymask ffe7
scsibus0: waiting 2 seconds for devices to settle...
ahc1: target 0 using 16bit transfers
ahc1: target 0 synchronous at 40.0MHz, offset = 0x7f
ahc1: target 0 using tagged queuing
sd0 at scsibus0 target 0 lun 0: <FUJITSU, MAJ3364MC, 5509> SCSI3 0/direct fixed
sd0: 34732 MB, 14723 cyl, 10 head, 483 sec, 512 bytes/sect x 71132959 sectors
ahc1: target 1 using 16bit transfers
ahc1: target 1 synchronous at 40.0MHz, offset = 0x7f
ahc1: target 1 using tagged queuing
sd1 at scsibus0 target 1 lun 0: <FUJITSU, MAJ3364MC, 5509> SCSI3 0/direct fixed
sd1: 34732 MB, 14723 cyl, 10 head, 483 sec, 512 bytes/sect x 71132959 sectors
ahc1: target 6 using 8bit transfers
ahc1: target 6 using asynchronous transfers
ses0 at scsibus0 target 6 lun 0: <DELL, 1x6 U2W SCSI BP, 5.32> SCSI2 3/processor fixed
ses0: SAF-TE Compliant Device
scsibus1: waiting 2 seconds for devices to settle...
scsibus2: waiting 2 seconds for devices to settle...
ahc3: target 5 synchronous at 20.0MHz, offset = 0xf
cd0 at scsibus2 target 5 lun 0: <NEC, CD-ROM DRIVE:466, 1.07> SCSI2 5/cdrom removable
scsibus3: waiting 2 seconds for devices to settle...
ahc4: target 1 using 16bit transfers
ahc4: target 1 synchronous at 20.0MHz, offset = 0x8
ahc4: target 1 using tagged queuing
sd2 at scsibus3 target 1 lun 0: <IBM, DDRS-39130D, DC1B> SCSI2 0/direct fixed
sd2: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors
warning: double match for boot device (sd0, sd1)
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0