From owner-freebsd-stable@FreeBSD.ORG Wed Feb 18 21:23:42 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6EC0B16A4CE for ; Wed, 18 Feb 2004 21:23:42 -0800 (PST) Received: from mail003.syd.optusnet.com.au (mail003.syd.optusnet.com.au [211.29.132.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D99643D2F for ; Wed, 18 Feb 2004 21:23:41 -0800 (PST) (envelope-from tfrank@optushome.com.au) Received: from marvin.home.local (c211-28-241-189.eburwd5.vic.optusnet.com.au [211.28.241.189])i1J5NbE10349 for ; Thu, 19 Feb 2004 16:23:38 +1100 Received: by marvin.home.local (Postfix, from userid 1001) id 2E2733DE; Thu, 19 Feb 2004 16:23:36 +1100 (EST) Date: Thu, 19 Feb 2004 16:23:36 +1100 From: Tony Frank To: freebsd-stable@freebsd.org Message-ID: <20040219052336.GA28162@marvin.home.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i Subject: Kernel panics in ahc during load with stable built 18th Feb X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 05:23:42 -0000 Hi all, As per the subject I seem to be getting kernel panics in ahc driver since upgrading my kernel & world to -stable. This occurs specifically when writing high volume of files to vinum raid5 volume spanning 4 scsi drives connected to Adaptec 2940 PCI controller. The fault appears to be reproducable - every time I try to extract a tar file containing a copy of /usr/obj from another system. vinum init and a lot of benchmarking (rawio and bonnie) work fine on the volume. dmesg lines: ahc0: port 0xb400-0xb4ff mem 0xe0800000-0xe080 0fff irq 10 at device 11.0 on pci0 Custom kernel is configured with: options AHC_ALLOW_MEMIO I setup a serial console and rebuilt kernel to include debugging bits. Fatal trap 12: page fault while in kernel mode fault virtual address = 0x5c fault code = supervisor read, page not present instruction pointer = 0x8:0xc015cab2 stack pointer = 0x10:0xc02e2b58 frame pointer = 0x10:0xc02e2b68 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = Idle interrupt mask = cam kernel: type 12 trap, code=0 Stopped at ahc_done+0xc2: pushl 0x5c(%ebx) db> trace ahc_done(c0f9a200,c0fb53c0) at ahc_done+0xc2 ahc_run_qoutfifo(c0f9a200) at ahc_run_qoutfifo+0xf1 ahc_platform_intr(c0f9a200,0,c02e2bf8,c027ab82,c0322458) at ahc_platform_intr+0x 174 add_interrupt_randomness(c0322458,0,400010,c0300010,c0300010) at add_interrupt_r andomness+0xe Xresume10() at Xresume10+0x2b --- interrupt, eip = 0xc027fa46, esp = 0xc02e2bf0, ebp = 0xc02e2bf8 --- cpu_idle(e,633,2,80f9ff,0) at cpu_idle+0xe idle_loop() at idle_loop+0x1d Follows is the full log of boot and panic and my feeble attempts to do get some further info. (ps an trace) Any suggestions/pointers? Thanks, Tony Console: serial port BIOS drive A: is disk0 BIOS drive C: is disk1 BIOS drive D: is disk2 BIOS drive E: is disk3 BIOS drive F: is disk4 BIOS drive G: is disk5 BIOS drive H: is disk6 BIOS 639kB/130036kB available memory FreeBSD/i386 bootstrap loader, Revision 0.8 (tony@raider.home.local, Thu Feb 19 13:52:39 EST 2004) Loading /boot/defaults/loader.conf /kernel text=0x1dfc00 data=0x27ea0+0x22994 syms=[0x4+0x2c6f0+0x4+0x345f2] /modules/vinum.ko text=0x14e20 data=0x3d0+0xace88 syms=[0x4+0x1250+0x4+0xc37] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [kernel]... Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.9-STABLE #2: Thu Feb 19 14:24:16 EST 2004 tony@marvin.home.local:/data/ad3/obj/usr/src/sys/RAIDER Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (200.46-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x633 Stepping = 3 Features=0x80f9ff real memory = 134205440 (131060K bytes) config> en apm0 avail memory = 126218240 (123260K bytes) Preloaded elf kernel "kernel" at 0xc0453000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc045309c. Preloaded elf module "vinum.ko" at 0xc04530ec. VESA: v2.0, 2048k memory, flags:0x0, mode table:0xc0322ac2 (1000022) VESA: ATI MACH64 Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 6 entries at 0xc00f0b60 apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe4000000-0xe7ffffff at device 0.0 on pci0 pcib2: at device 1.0 on pci0 pci1: on pcib2 isab0: at device 4.0 on pci0 isa0: on isab0 atapci0: port 0xd800-0xd80f at device 4.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 4.2 pci0: (vendor=0x1106, dev=0x3050) at 4.3 pci0: at 9.0 fxp0: port 0xb800-0xb83f mem 0xe1000000-0xe10ffff f,0xe1800000-0xe1800fff irq 3 at device 10.0 on pci0 fxp0: Ethernet address 00:04:ac:e5:d3:59 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xb400-0xb4ff mem 0xe0800000-0xe080 0fff irq 10 at device 11.0 on pci0 aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs fxp1: port 0xb000-0xb03f mem 0xdf800000-0xdf8ffff f,0xe0000000-0xe0000fff irq 11 at device 12.0 on pci0 fxp1: Ethernet address 00:03:47:3a:43:63 inphy1: on miibus1 inphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcib1: on motherboard pci2: on pcib1 orm0: