From neal@web.pernet.net  Mon Aug 11 10:13:06 1997
Received: from web.pernet.net (web.pernet.net [205.229.0.41])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA16940
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Aug 1997 10:13:05 -0700 (PDT)
Received: (from root@localhost)
	by web.pernet.net (8.8.5/8.8.5) id MAA00688;
	Mon, 11 Aug 1997 12:15:29 -0500 (CDT)
Message-Id: <199708111715.MAA00688@web.pernet.net>
Date: Mon, 11 Aug 1997 12:15:29 -0500 (CDT)
From: neal@pernet.net
Reply-To: neal@pernet.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: kernel page faults with heavy disk access with an ahc
X-Send-Pr-Version: 3.2

>Number:         4273
>Category:       kern
>Synopsis:       kernel page faults with heavy disk access with an ahc
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 11 10:20:00 PDT 1997
>Closed-Date:    Thu Dec 10 06:04:25 PST 1998
>Last-Modified:  Thu Dec 10 06:04:46 PST 1998
>Originator:     Neal Rigney
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
PERnet Communications, Inc.
>Environment:

My config file:

machine		"i386"
cpu		"I486_CPU"
ident		WEB
maxusers	64
options		CHILD_MAX=128
options		OPEN_MAX=128
options		"MAXDSIZ=(256*1024*1024)"
options		"DFLDSIZ=(256*1024*1024)"
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
config		kernel	root on sd0 dumps on sd0
options		"COMPAT_43"
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG
options		"MD5"
options		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor
options		INET			#Internet communications protocols
pseudo-device	ether			#Generic Ethernet
pseudo-device	loop			#Network loopback device
pseudo-device	bpfilter	4	#Berkeley packet filter
options		FFS			#Fast filesystem
options		NFS			#Network File System
options		MSDOSFS			#MS DOS File System
options		PROCFS			#Process filesystem
options		NSWAPDEV=20
options		QUOTA			#enable disk quotas
controller	scbus0	#base SCSI code
device		sd0	#SCSI disks
device		st0	#SCSI tapes
options		SCSI_REPORT_GEOMETRY
pseudo-device	pty	16	#Pseudo ttys - can go as high as 256
pseudo-device	gzip		#Exec gzipped a.out's
controller	isa0
options		"AUTO_EOI_1"
#options	"AUTO_EOI_2"
options		BOUNCE_BUFFERS
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
options		MAXCONS=16		# number of virtual consoles
controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
device ed0 at isa? port 0x300 net irq 3 iomem 0xd8000 vector edintr
controller	pci0
controller	ahc1
device		npx0	at isa? port "IO_NPX" iosiz 0x0 flags 0x0 irq 13 vector npxintr

dmesg output:
Copyright (c) 1992-1997 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California.  All rights reserved.

FreeBSD 2.2.2-RELEASE #0: Fri Aug  1 10:56:49 CDT 1997
    root@web.pernet.net:/usr/src/sys/compile/WEB
CPU: AMD Am5x86 Write-Back (486-class CPU)
  Origin = "AuthenticAMD"  Id = 0x4f4  Stepping=4
  Features=0x1<FPU>
real memory  = 33554432 (32768K bytes)
avail memory = 30580736 (29864K bytes)
Probing for devices on PCI bus 0:
ahc0 <Adaptec 2940 SCSI host adapter> rev 0 int a irq 12 on pci0:13
ahc0: aic7870 Single Channel, SCSI Id=7, 16 SCBs
(ahc0:0:0): "QUANTUM FIREBALL_TM2110S 300X" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 2014MB (4124736 512 byte sectors)
sd0(ahc0:0:0): with 6810 cyls, 4 heads, and an average 151 sectors/track
chip0 <generic PCI bridge (vendor=1060 device=8881 subclass=0)> rev 4 on pci0:16
chip1 <generic PCI bridge (vendor=1060 device=886a subclass=1)> rev 13 on pci0:18:0
pci0:18:1: UMC, device=0x673a, class=storage (ide) [no driver assigned]
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: CGA/EGA <16 virtual consoles, flags=0x0>
ed0 at 0x300-0x31f irq 3 on isa
ed0: address 00:80:ad:11:e1:34, type NE2000 (16 bit) 
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 765
fd0: 1.44MB 3.5in
npx0 on motherboard
npx0: INT 16 interface
WARNING: / was not properly dismounted.



>Description:

	With heavy disk access, the kernel dies with a page fault while
	in supervisor mode.  It then gives "scb 0x0 timed out in dataout
	phase".

Unfortunately, I have no way to hold the screen, and these messages scroll
too quickly to copy the entire ddb message.  Here's the info I COULD copy:

   address: 0x1717152d
   supoervisor read

instruction pointer: 0x8:0xf01a2cc4 (the a might be a 9, my handwriting
					was horrid)

I only got part of the stack pointer, not enough to be helpful.

the SCSI message that scrolls is:

SCSISIGI=0x4 SEQADDR=0x124 SEQ=0x12 STAT0=0x0 STAT1=0x3

About half the time, when the reboot finally occurs, the scsi drive doesn't
respond to the ahc's boot probe.

>How-To-Repeat:

	I have a large zip file(110M) that reliably crashes the machine when
  unzipping.  However, it appears that any high amount of traffic will
do it.  It's crashed several times when I wasn't around to help.

>Fix:
	
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Thu Dec 10 06:04:25 PST 1998 
State-Changed-Why:  
Timed out - this is most certainly fixed in later releases. 
>Unformatted:
