Date: Sat, 7 Oct 2000 22:56:20 -0500 (CDT) From: Steven Farmer <steve@megahack.com> To: freebsd-stable@FreeBSD.org Subject: ahc driver problem Message-ID: <14815.61540.655647.106686@catbert.megahack.com>
next in thread | raw e-mail | index | archive | help
My 4.1.1-STABLE box died in the ahc driver today while running dump. After some poking around, I discovered that I can kill it reliably by running "ls -lR /". The kernel was built after cvsuping today. A kernel a week older does not have the problem. My hand transcription of the first half of the console messages are shown below (sorry, I got writers cramp - if more is needed I'll try again), along with my dmesg and kernel config file. ahc0:A:1 ahc_intr - referenced scb not valid during seqint 0x71 scb(70) ahc0: WARNING no command for scb 70 (cmdcmplt) QOUTPOS = 64 Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc013a730 stack pointer = 0x10:0xc7dd6cfc frame pointer = 0x10:0xc7dd6d0c 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 = 5 (syncer) interrupt mask = bio cam kernel i type 12 trap, code = 0 Stopped at ahc_match_scb+0x18: movl 0(%esi),%eax db> trace ahc_match_scb(c0a28800,0,1,41,0,ff,0) at ahc_match_scb+0x18 ahc_search_quinfifo(c0a28800,1,41,0,ff) at ahc_search_quinfifo+0xf7 ahc_freeze_devq(c0a28800,c0a2e5e4) at ahc_freeze_devq+0x5d ahc_handle_seqint(c0a28800,71) at ahc_handle_seqint+0x135 ahc_freebsd_intr(c0a28800,6c0400,c0313b80,ce008000,c7dd6e5c) at ahc_freebsd_intr+0x97 Copyright (c) 1992-2000 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.1.1-STABLE #1: Thu Oct 5 17:45:53 CDT 2000 steve@catbert.megahack.com:/usr/src/sys/compile/CATBERT Timecounter "i8254" frequency 1193182 Hz CPU: Pentium Pro (199.43-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping = 9 Features=0xf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV> real memory = 134217728 (131072K bytes) avail memory = 127238144 (124256K bytes) Pentium Pro MTRR support enabled md0: Malloc disk npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 isab0: <Intel 82371SB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 pci0: <Intel PIIX3 ATA controller> at 7.1 pci0: <Matrox MGA Millennium 2064W graphics accelerator> at 11.0 irq 11 ahc0: <Adaptec 2940 Ultra SCSI adapter> port 0xf800-0xf8ff mem 0xffbe9000-0xffbe9fff irq 10 at device 15.0 on pci0 aic7880: Wide Channel A, SCSI Id=7, 16/255 SCBs sym0: <810a> port 0xfc00-0xfcff mem 0xffbebc00-0xffbebcff irq 10 at device 17.0 on pci0 sym0: No NVRAM, ID 7, Fast-10, SE, parity checking isa0: too many dependant configs (8) isa0: unexpected small tag 14 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=0x200> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio3 at port 0x2e8-0x2ef irq 3 on isa0 sio3: type 16550A ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ed0 at port 0x280-0x29f iomem 0xd8000-0xd9fff irq 5 on isa0 ed0: address 00:00:c0:25:72:e2, type SMC8416C/SMC8416BT (16 bit) sbc0: <Creative SB AWE64> at port 0x220-0x22f,0x300-0x301,0x388-0x38b irq 9 drq 0,5 on isa0 sbc0: setting card to irq 9, drq 0, 5 pcm0: <SB DSP 4.16> on sbc0 joy0: <Generic PnP Joystick> at port 0x200-0x207 on isa0 IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default Waiting 5 seconds for SCSI devices to settle sa0 at ahc0 bus 0 target 4 lun 0 sa0: <CONNER CTT8000-S 1.17> Removable Sequential Access SCSI-2 device sa0: 5.000MB/s transfers (5.000MHz, offset 15) sa1 at sym0 bus 0 target 5 lun 0 sa1: <EXABYTE EXB-850085QANXRC 06X0> Removable Sequential Access SCSI-2 device sa1: 4.032MB/s transfers (4.032MHz, offset 8) da1 at ahc0 bus 0 target 1 lun 0 da1: <QUANTUM VIKING II 9.1WSE 4110> Fixed Direct Access SCSI-2 device da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) da1: 8709MB (17836668 512 byte sectors: 255H 63S/T 1110C) Mounting root from ufs:da1s1a cd0 at ahc0 bus 0 target 5 lun 0 cd0: <NEC CD-ROM DRIVE:462 1.14> Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present WARNING: / was not properly dismounted da0 at ahc0 bus 0 target 0 lun 0 da0: <WDIGTL WDE2170-1807A1 1.44> Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit) da0: 2047MB (4194057 512 byte sectors: 255H 63S/T 261C) cd1 at sym0 bus 0 target 6 lun 0 cd1: <YAMAHA CRW6416S 1.0b> Removable CD-ROM SCSI-2 device cd1: 10.000MB/s transfers (10.000MHz, offset 8) cd1: cd present [4294911071 x 2048 byte records] machine i386 cpu I686_CPU ident CATBERT maxusers 32 makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols makeoptions KERNEL=kernel options DDB #Enable kernel debugger #options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=5000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extentions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM #Rate limit bad replies options SOFTUPDATES # device isa device eisa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 # ATA and ATAPI devices #device ata0 at isa? port IO_WD1 irq 14 #device ata1 at isa? port IO_WD2 irq 15 #device ata #device atadisk # ATA disk drives #device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives #device atapist # ATAPI tape drives #options ATA_STATIC_ID #Static device numbering ##options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices # SCSI Controllers device ahc0 # AHA2940 and onboard AIC7xxx devices device sym0 # NCR/Symbios Logic (newer chipsets) # SCSI peripherals device scbus # SCSI bus (required) device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) # My actual SCSI devices device scbus0 at ahc0 device da0 at scbus0 target 0 device da1 at scbus0 target 1 device sa0 at scbus0 target 4 device cd0 at scbus0 target 5 device scbus1 at sym0 device sa1 at scbus1 target 5 device cd1 at scbus1 target 6 # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 device psm0 at atkbdc? irq 12 # SOUND device pcm device sbc device joy # VGA controller device vga0 at isa? # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Advanced Power Management #device apm0 at nexus? # disable flags 0x20 # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? disable port IO_COM2 irq 3 device sio2 at isa? disable port IO_COM3 irq 5 device sio3 at isa? port IO_COM4 irq 3 # Parallel port device ppc0 at isa? irq 7 device ppbus # Parallel port bus (required) device lpt # Printer # ISA Ethernet NICs. device ed0 at isa? port 0x280 irq 5 iomem 0xd8000 # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device ppp 1 # Kernel PPP pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) pseudo-device md # Memory "disks" pseudo-device gif 4 # IPv6 and IPv4 tunneling pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-device bpf #Berkeley packet filter # Firewall stuff... options IPFIREWALL # firewall options IPFIREWALL_VERBOSE # print information about # dropped packets options IPFIREWALL_FORWARD # enable transparent proxy support options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity options IPDIVERT # divert sockets options TCP_DROP_SYNFIN # drop TCP packets with SYN+FIN options TCP_RESTRICT_RST # restrict emission of TCP RST To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14815.61540.655647.106686>