From owner-freebsd-stable@FreeBSD.ORG Mon Oct 1 13:00:38 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA0A1106567D; Mon, 1 Oct 2012 13:00:38 +0000 (UTC) (envelope-from randy@psg.com) Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:1::36]) by mx1.freebsd.org (Postfix) with ESMTP id 9A4418FC12; Mon, 1 Oct 2012 13:00:38 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=rair.psg.com.psg.com) by ran.psg.com with esmtp (Exim 4.80 (FreeBSD)) (envelope-from ) id 1TIfbx-000AOV-Uq; Mon, 01 Oct 2012 13:00:38 +0000 Date: Mon, 01 Oct 2012 14:00:36 +0100 Message-ID: From: Randy Bush To: John Baldwin In-Reply-To: <201210010855.02130.jhb@freebsd.org> References: <201210010855.02130.jhb@freebsd.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/22.3 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-stable@freebsd.org Subject: Re: atkbd attach excitement during boot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2012 13:00:38 -0000 >> Fatal trap 12: page fault while in kernel mode >> cpuid = 0; apic id = 00 >> fault virtual address = 0x38 >> fault code = supervisor read data, page not present >> instruction pointer = 0x20:0xffffffff80704740 >> stack pointer = 0x28:0xffffffff815336e0 >> frame pointer = 0x28:0xffffffff81533730 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, long 1, def32 0, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 0 (swapper) >> trap number = 12 >> panic: page fault >> cpuid = 0 >> KDB: stack backtrace: >> #0 0xffffffff809221d6 at kdb_backtrace+0x66 >> #1 0xffffffff808ec40e at panic+0x1ce >> #2 0xffffffff80bd91a0 at trap_fatal+0x290 >> #3 0xffffffff80bd94d8 at trap_pfault+0x1e8 >> #4 0xffffffff80bd9ade at trap+0x3be >> #5 0xffffffff80bc33ff at calltrap+0x8 >> #6 0xffffffff80be95fb at atkbd_intr+0xab > > Can you run 'gdb /boot/kernel/kernel' and do 'l *atkbd_intr+0xab'? > >> #7 0xffffffff80be9dd6 at atkbd_timeout+0x96 >> #8 0xffffffff80be9e94 at atkbd_attach_unit+0xb4 >> #9 0xffffffff80bea0c8 at atkbdattach+0x78 fbsd64.psg.com:/root# gdb /boot/kernel/kernel GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... (gdb) l *atkbd_intr+0xab 0xffffffff80be95fb is in atkbd_intr (/usr/src/sys/dev/atkbdc/atkbd.c:512). 507 do { 508 c = atkbd_read_char(kbd, FALSE); 509 } while (c != NOKEY); 510 } 511 return 0; 512 } 513 514 /* test the interface to the device */ 515 static int 516 atkbd_test_if(keyboard_t *kbd) randy