From owner-freebsd-bugs@FreeBSD.ORG Sun May 18 12:20:16 2003 Return-Path: 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 DC65B37B40B for ; Sun, 18 May 2003 12:20:16 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EA0243FB1 for ; Sun, 18 May 2003 12:20:13 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4IJKDUp008556 for ; Sun, 18 May 2003 12:20:13 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4IJKDWP008555; Sun, 18 May 2003 12:20:13 -0700 (PDT) Resent-Date: Sun, 18 May 2003 12:20:13 -0700 (PDT) Resent-Message-Id: <200305181920.h4IJKDWP008555@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, Lukas Ertl Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF0F537B401 for ; Sun, 18 May 2003 12:12:40 -0700 (PDT) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BCA043F85 for ; Sun, 18 May 2003 12:12:39 -0700 (PDT) (envelope-from le@univie.ac.at) Received: from korben.in.tern (adslle.cc.univie.ac.at [131.130.102.11]) by mailbox.univie.ac.at (8.12.2/8.12.2) with ESMTP id h4IJCM9D217014 for ; Sun, 18 May 2003 21:12:26 +0200 Received: from korben.in.tern (korben.in.tern [127.0.0.1]) by korben.in.tern (8.12.9/8.12.9) with ESMTP id h4IJCJfF000903 for ; Sun, 18 May 2003 21:12:19 +0200 (CEST) (envelope-from le@korben.in.tern) Received: (from root@localhost) by korben.in.tern (8.12.9/8.12.9/Submit) id h4IJCJAr000902; Sun, 18 May 2003 21:12:19 +0200 (CEST) (envelope-from le) Message-Id: <200305181912.h4IJCJAr000902@korben.in.tern> Date: Sun, 18 May 2003 21:12:19 +0200 (CEST) From: Lukas Ertl To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/52404: kernel panic on laptop resume (related to device csa) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Lukas Ertl List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 May 2003 19:20:17 -0000 >Number: 52404 >Category: kern >Synopsis: kernel panic on laptop resume (related to device csa) >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 18 12:20:12 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Lukas Ertl >Release: FreeBSD 5.1-BETA i386 >Organization: Vienna University Computer Center >Environment: System: FreeBSD korben 5.1-BETA FreeBSD 5.1-BETA #0: Sun May 18 19:30:12 CEST 2003 le@korben:/usr/src/sys/i386/compile/KORBEN i386 Hardware: IBM ThinkPad T20 >Description: On resume from apm suspend, the laptop panics. >How-To-Repeat: Suspend/resume on Thinkpad T20. >Fix: Not really known, but rev. 1.23 of sys/dev/sound/pci/csa.c works, while rev. 1.24 does not. Note: the diff between 1.23 and 1.24 was also MFC'ed, but was backed out again due to panics on suspend/resume (rev. 1.8.2.11 and 1.8.2.12). --- backtrace begins here --- Script started on Sun May 18 21:00:04 2003 [root@korben crash]# gdb -k kernel.debug vmcore.1 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 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 "i386-undermydesk-freebsd"... panic: page fault panic messages: --- panic: resource_list_alloc: resource entry is busy syncing disks, buffers remaining... 2087 Fatal trap 12: page fault while in kernel mode fault virtual address = 0x24 fault code = supervisor read, page not present instruction pointer = 0x8:0xc02432b6 stack pointer = 0x10:0xcd25cc9c frame pointer = 0x10:0xcd25cc9c 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 = 21 (irq11: cbb0 cbb1+++) trap number = 12 panic: page fault Uptime: 7m43s Dumping 255 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 --- Reading symbols from /usr/src/sys/i386/compile/KORBEN/modules/usr/src/sys/modules/apm/apm.ko.debug...done. Loaded symbols for /usr/src/sys/i386/compile/KORBEN/modules/usr/src/sys/modules/apm/apm.ko.debug Reading symbols from /usr/src/sys/i386/compile/KORBEN/modules/usr/src/sys/modules/linux/linux.ko.debug...done. Loaded symbols for /usr/src/sys/i386/compile/KORBEN/modules/usr/src/sys/modules/linux/linux.ko.debug #0 doadump () at ../../../kern/kern_shutdown.c:238 238 dumping++; (kgdb) bt full #0 doadump () at ../../../kern/kern_shutdown.c:238 No locals. #1 0xc0222dc3 in boot (howto=260) at ../../../kern/kern_shutdown.c:370 No locals. #2 0xc022310b in panic () at ../../../kern/kern_shutdown.c:543 td = (struct thread *) 0xc0ec9130 bootopt = 260 newpanic = 0 buf = "page fault\0st_alloc: resource entry is busy", '\0' #3 0xc036e502 in trap_fatal (frame=0xcd25cc5c, eva=0) at ../../../i386/i386/trap.c:834 code = 16 type = 12 ss = 16 esp = 0 softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, ssd_dpl = 0, ssd_p = 1, ssd_xx = 1, ssd_xx1 = 0, ssd_def32 = 1, ssd_gran = 1} #4 0xc036e1e2 in trap_pfault (frame=0xcd25cc5c, usermode=0, eva=36) at ../../../i386/i386/trap.c:748 va = 0 vm = (struct vmspace *) 0x0 map = (struct vm_map *) 0xc0425b40 rv = 1 ftype = 1 '\001' td = (struct thread *) 0xc0ec9130 p = (struct proc *) 0xc0ecf780 #5 0xc036ddad in trap (frame= {tf_fs = 67108888, tf_es = 16, tf_ds = -853213168, tf_edi = 0, tf_esi = -1034067708, tf_ebp = -853160804, tf_isp = -853160824, tf_ebx = -1058277184, tf_edx = -1058238160, tf_ecx = 1, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1071369546, tf_cs = 8, tf_eflags = 66195, tf_esp = -853160768, tf_ss = -1072045048}) at ../../../i386/i386/trap.c:433 td = (struct thread *) 0xc0ec9130 p = (struct proc *) 0xc0ecf780 sticks = 3225091543 ---Type to continue, or q to quit--- i = 0 ucode = 0 type = 12 code = 0 eva = 36 #6 0xc035e658 in calltrap () at {standard input}:96 No locals. #7 0xc019e408 in csa_readio (resp=0xc25d6104, offset=0) at bus_at386.h:237 ul = 536 #8 0xc019dbf5 in csa_intr (arg=0xc25d6100) at ../../../dev/sound/pci/csa.c:512 scp = (struct csa_softc *) 0xc25d6104 resp = (struct csa_res *) 0x0 hisr = 3236690112 #9 0xc020fb52 in ithread_loop (arg=0xc0ec6600) at ../../../kern/kern_intr.c:537 ithd = (struct ithd *) 0xc25d6104 ih = (struct intrhand *) 0xc0ebf8c0 td = (struct thread *) 0x0 p = (struct proc *) 0xc0ecf780 #10 0xc020eb40 in fork_exit (callout=0xc0ebf8c0, arg=0x0, frame=0x0) at ../../../kern/kern_fork.c:768 td = (struct thread *) 0x0 p = (struct proc *) 0xc25d6104 (kgdb) quit [root@korben crash]# dmesg 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 5.1-BETA #0: Sun May 18 19:30:12 CEST 2003 le@korben:/usr/src/sys/i386/compile/KORBEN Preloaded elf kernel "/boot/kernel/kernel" at 0xc0519000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc05191f4. Preloaded elf module "/boot/kernel/apm.ko" at 0xc0519244. Timecounter "i8254" frequency 1193182 Hz CPU: Intel Pentium III (696.97-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 268369920 (255 MB) avail memory = 255107072 (243 MB) Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 Using $PIR table, 11 entries at 0xc00fdee0 apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 pcib0: at pcibus 0 on motherboard pci0: on pcib0 agp0: mem 0xf8000000-0xfbffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) cbb0: mem 0x50000000-0x50000fff irq 11 at device 2.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: mem 0x50100000-0x50100fff irq 11 at device 2.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 fxp0: port 0x1800-0x183f mem 0xe8100000-0xe811ffff,0xe8120000-0xe8120fff irq 11 at device 3.0 on pci0 fxp0: Ethernet address 00:02:b3:04:8d:3b miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at device 3.1 (no driver attached) csa0: mem 0xe8000000-0xe80fffff,0xe8122000-0xe8122fff irq 11 at device 5.0 on pci0 csa: card is Thinkpad 600X/A20/T20 pcm0: on csa0 pcm0: isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1850-0x185f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x1860-0x187f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 7.3 (no driver attached) orm0: