Subject: kern/7587: AHC_TAGENABLE & AHC_SCBPAGING_ENABLE don't work anymore in 1.4
To: None <gnats-bugs@gnats.netbsd.org>
From: Thilo Manske <thilo@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 05/15/1999 08:22:56
>Number:         7587
>Category:       kern
>Synopsis:       AHC_TAGENABLE AHC_SCBPAGING_ENABLE don't work anymore in 1.4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 15 08:05:00 1999
>Last-Modified:
>Originator:     Thilo Manske
>Organization:
	
>Release:        current, ~1-3 days old (had much problems with the 1.4 syssrc tarball, but that's another story)
>Environment:
	
System: NetBSD Server 1.4 NetBSD 1.4 (HEHOL) #0: Sat May 15 06:43:58 MEST 1999 thilo@WintelKiller:/usr/src/sys/arch/i386/compile/HEHOL i386

Adaptec 2940UW SCSI host adapter

>Description:
Our dorm's one-for-everything server had those options enabled with 1.3.[1-3]
and this has worked flawlessly for about one year.
But with 1.4 and those options the adaptec seems to "hang" during boot,
something like ahc0 timeouts during sd* detections.

Without those options it works, here's the dmesg output:

NetBSD 1.4 (HEHOL) #0: Sat May 15 06:43:58 MEST 1999
    thilo@WintelKiller:/usr/src/sys/arch/i386/compile/HEHOL
cpu0: family 5 model 6 step 2
cpu0: AMD K6 (586-class)
real mem  = 66715648
avail mem = 60346368
using 840 buffers containing 3440640 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439TX System Controller (MTXC) (rev. 0x01)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x01)
Intel 82371AB IDE controller (PIIX4) (IDE mass storage, interface 0x80, revision 0x01) at pci0 dev 7 function 1 not configured
Intel 82371AB USB Host Controller (PIIX4) (USB serial bus, revision 0x01) at pci0 dev 7 function 2 not configured
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x01) at pci0 dev 7 function 3 not configured
vga0 at pci0 dev 8 function 0: S3 Trio64V2/DX (rev. 0x16)
wsdisplay0 at vga0: console (80x25, vt100 emulation)
ex0 at pci0 dev 9 function 0: 3Com 3c905-TX 10/100 Ethernet
ex0: interrupting at irq 9
ex0: MAC address 00:60:08:4d:47:9e
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc0 at pci0 dev 10 function 0
ahc0: interrupting at irq 5
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
ahc0: target 0 using 16Bit transfers
ahc0: target 0 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <IBM OEM, DCHS04U, 6363> SCSI2 0/direct fixed
sd0: 4340MB, 6077 cyl, 9 head, 162 sec, 512 bytes/sect x 8888543 sectors
ahc0: target 1 using 16Bit transfers
ahc0: target 1 synchronous at 20.0MHz, offset = 0x8
sd1 at scsibus0 targ 1 lun 0: <IBM, DCAS-32160W, S65A> SCSI2 0/direct fixed
sd1: 2063MB, 8188 cyl, 3 head, 172 sec, 512 bytes/sect x 4226725 sectors
ex1 at pci0 dev 11 function 0: 3Com 3c900-COMBO Ethernet
ex1: interrupting at irq 11
ex1: MAC address 00:60:08:64:94:14
ex1: 10baseT, 10baseT-FDX, 10base5, 10base2, default 10baseT
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
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
biomask 60 netmask a60 ttymask a62
wscons: wskbd0 glued to wsdisplay0 (console)
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
IP Filter: initialized.  Default = pass all, Logging = enabled

I can't do much tests with this machine (my users will get very angry :-) ),
and I don't have and adaptec in my personal test machine, so I wasn't able to
try those options independently yet.

>How-To-Repeat:
Add those options to my kernelconfig file
rm compile dir (just to be sure), config 
make depend && make
install kernel and reboot
>Fix:
>Audit-Trail:
>Unformatted: