From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 5 01:50:05 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C7DA16A41F for ; Fri, 5 Aug 2005 01:50:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC34543D49 for ; Fri, 5 Aug 2005 01:50:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j751o4Dc071097 for ; Fri, 5 Aug 2005 01:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j751o4ZA071096; Fri, 5 Aug 2005 01:50:04 GMT (envelope-from gnats) Resent-Date: Fri, 5 Aug 2005 01:50:04 GMT Resent-Message-Id: <200508050150.j751o4ZA071096@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Jones Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FC5E16A41F for ; Fri, 5 Aug 2005 01:48:20 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEB4243D48 for ; Fri, 5 Aug 2005 01:48:19 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j751mJc8074439 for ; Fri, 5 Aug 2005 01:48:19 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j751mJjq074438; Fri, 5 Aug 2005 01:48:19 GMT (envelope-from nobody) Message-Id: <200508050148.j751mJjq074438@www.freebsd.org> Date: Fri, 5 Aug 2005 01:48:19 GMT From: Chris Jones To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/84567: atapicam prevents boot with RELENG_5_4 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2005 01:50:05 -0000 >Number: 84567 >Category: kern >Synopsis: atapicam prevents boot with RELENG_5_4 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 05 01:50:04 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Chris Jones >Release: RELENG_5_4 >Organization: >Environment: FreeBSD ishtar 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #9: Thu Aug 4 12:35:11 MDT 2005 root@:/usr/obj/usr/src/sys/ISHTAR i386 >Description: Machine refuses to boot when 'atapicam' is defined in kernel, except when booted in safe mode. The 'ISHTAR' kernel has DDB, KDB, and atapicam defined in addition to the 'GENERIC' kernel. This may be a duplicate of PR i386/78929. Console log: > Timecounter "TSC" frequency 1199432644 Hz quality 800 > Timecounters tick every 10.000 msec > ata0-slave: FAILURE - ATAPI_IDENTIFY timed out > ata0-slave: FAILURE - ATAPI_IDENTIFY timed out > kernel trap 12 with interrupts disabled > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x6c > fault code = supervisor read, page not present > instruction pointer = 0x8:0xc0638091 > stack pointer = 0x10:0xcff84c40 > frame pointer = 0x10:0xcff84c44 > code segment = base 0x0, limit 0xfffff, type 0x1b > DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 5 (thread taskq) > [thread pid 5 tid 100012 ] > Stopped at turnstile_setowner+0xd: movl 0x6c(%ecx),%eax > db> where > Tracing pid 5 tid 100012 td 0xc1741300 > turnstile_setowner(c1733a40,0) at turnstile_setowner+0xd > turnstile_wait(c1733a40,c08d2bc0,0) at turnstile_wait+0xb7 > _mtx_lock_sleep(c08d2bc0,c1741300,0,0,0) at _mtx_lock_sleep+0xad > get_softc(c1738c00,0,cff84cd4,c04b89b6,c1738c0) at get_softc+0x36 > atapi_cam_reinit_bus(c1738c00) at atapi_cam_reinit_bus+0xc > ata_reinit(c1738c00) at ata_reinit+0x326 > ata_completed(c192c000,1) at ata_completed+0x18 > taskqueue_run(c181ce40,c177154c,c06373a0,cff84d34,c06056a0) at taskqueue_run+0xb3 > taskqueue_thread_loop(c08f1ce8,cff84d48) at taskqueue_thread_loop+0x42 > fork_exit(c06373a0,c08f1ce8,cff84d48) at fork_exit+0x74 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0x1, eip = 0, esp = 0xcff84d7c, ebp = 0 --- Dmesg from successful boot in safe mode: Copyright (c) 1992-2005 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 5.4-RELEASE-p6 #9: Thu Aug 4 12:35:11 MDT 2005 root@:/usr/obj/usr/src/sys/ISHTAR Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Duron(tm) processor (1199.43-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x671 Stepping = 1 Features=0x383fbff AMD Features=0xc0480000 real memory = 402587648 (383 MB) avail memory = 384270336 (366 MB) npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard $PIR: BIOS IRQ 11 for 0.7.INTC does not match link 0x3 irq 5 $PIR: BIOS IRQ 9 for 0.7.INTD does not match link 0x5 irq 11 pci0: on pcib0 agp0: mem 0xdf000000-0xdf7fffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 $PIR: ROUTE_INTERRUPT failed. pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xa000-0xa00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0 atapci0: Correcting VIA config for southbridge data corruption bug ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 uhci0: port 0xa400-0xa41f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xa800-0xa81f irq 11 at device 7.3 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: at device 7.5 (no driver attached) atapci1: port 0xcc00-0xcc0f,0xc800-0xc803,0xc400-0xc407,0xc000-0xc003,0xbc00-0xbc07 mem 0xdf800000-0xdf8001ff irq 10 at device 8.0 on pci0 ata2: channel #0 on atapci1 ata3: channel #1 on atapci1 pci0: at device 9.0 (no driver attached) atapci2: port 0xe000-0xe00f,0xdc00-0xdc03,0xd800-0xd807,0xd400-0xd403,0xd000-0xd007 mem 0xdf801000-0xdf8011ff irq 11 at device 10.0 on pci0 ata4: channel #0 on atapci2 ata5: channel #1 on atapci2 vr0: port 0xe400-0xe47f mem 0xdf802000-0xdf80207f irq 10 at device 12.0 on pci0 miibus0: on vr0 amphy0: on miibus0 amphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:80:c8:e1:84:e2 dc0: port 0xe800-0xe8ff mem 0xdf803000-0xdf8033ff irq 5 at device 13.0 on pci0 miibus1: on dc0 ukphy0: on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: Ethernet address: 00:50:bf:af:8f:ef dc0: if_start running deferred for Giant orm0: at iomem 0xd1000-0xd57ff,0xcc000-0xd07ff,0xc0000-0xcbfff on isa0 pmtimer0 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) Timecounter "TSC" frequency 1199433292 Hz quality 800 Timecounters tick every 10.000 msec acd0: DVDR at ata0-master PIO4 ad4: 38146MB [77504/16/63] at ata2-master SATA150 ad6: 114473MB [232581/16/63] at ata3-master SATA150 ad8: 114473MB [232581/16/63] at ata4-master SATA150 cd0 at ata0 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 16.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present Mounting root from ufs:/dev/ad4s1a Accounting enabled Kernel config diff: -bash-3.00$ diff -c GENERIC ISHTAR *** GENERIC Tue May 3 18:56:41 2005 --- ISHTAR Thu Aug 4 19:41:45 2005 *************** *** 274,276 **** --- 274,284 ---- device firewire # FireWire bus code device sbp # SCSI over FireWire (Requires scbus and da) device fwe # Ethernet over FireWire (non-standard!) + + # Local + device atapicam # ATAPI/CAM + options DDB + options KDB + options BREAK_TO_DEBUGGER + #options INVARIANTS + makeoptions DEBUG=-g >How-To-Repeat: Occurs every time I try booting with atapicam defined as a device in the kernel; does not occur without atapicam defined or when using safe mode (option 3 at the boot screen). >Fix: >Release-Note: >Audit-Trail: >Unformatted: