From owner-freebsd-amd64@FreeBSD.ORG Tue Feb 24 06:50:03 2009 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8DA91065670 for ; Tue, 24 Feb 2009 06:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C14388FC1B for ; Tue, 24 Feb 2009 06:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1O6o3pr066533 for ; Tue, 24 Feb 2009 06:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1O6o3uk066532; Tue, 24 Feb 2009 06:50:03 GMT (envelope-from gnats) Resent-Date: Tue, 24 Feb 2009 06:50:03 GMT Resent-Message-Id: <200902240650.n1O6o3uk066532@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olivier Cochard-Labbe Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C6D5106566C for ; Tue, 24 Feb 2009 06:40:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3F9238FC0A for ; Tue, 24 Feb 2009 06:40:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1O6eL9V058708 for ; Tue, 24 Feb 2009 06:40:21 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n1O6eLg7058706; Tue, 24 Feb 2009 06:40:21 GMT (envelope-from nobody) Message-Id: <200902240640.n1O6eLg7058706@www.freebsd.org> Date: Tue, 24 Feb 2009 06:40:21 GMT From: Olivier Cochard-Labbe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Tue, 24 Feb 2009 12:19:08 +0000 Cc: Subject: amd64/132042: drm module crash the system when closing gnome session X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2009 06:50:04 -0000 >Number: 132042 >Category: amd64 >Synopsis: drm module crash the system when closing gnome session >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 24 06:50:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Olivier Cochard-Labbe >Release: 7.1-RELEASE-p3 >Organization: >Environment: FreeBSD d630.freenas.org 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #0: Mon Feb 23 13:50:49 CET 2009 root@d630.freenas.org:/usr/obj/usr/src/sys/DellD630 amd64 >Description: I'm using gnome desktop, and when I closse my gnome session, or shutdown my laptop from the gnome menu with a simple user, my system crash. If I open a second terminal as root (not in X) and send the "halt -p" command, my system didn't crash. There are other peoples that have reported the same problem here: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=94276+0+archive/2009/freebsd-stable/20090222.freebsd-stable here is my dmesg and kgdb output: [olivier@d630]~>dmesg Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE-p3 #0: Mon Feb 23 13:50:49 CET 2009 root@d630.freenas.org:/usr/obj/usr/src/sys/DellD630 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1995.02-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x6fd Stepping = 13 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 usable memory = 2126184448 (2027 MB) avail memory = 2051727360 (1956 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] Timecounter "HPET" frequency 14318180 Hz quality 900 acpi0: reservation of 0, 9f000 (3) failed acpi0: reservation of 100000, 7f55a800 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0xeff8-0xefff mem 0xf6e00000-0xf6efffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 7676k stolen memory agp0: aperture size is 256M vgapci1: mem 0xf6f00000-0xf6ffffff at device 2.1 on pci0 uhci0: port 0x6f20-0x6f3f irq 20 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x6f00-0x6f1f irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ehci0: mem 0xfed1c400-0xfed1c7ff irq 22 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb2: EHCI version 1.0 usb2: companion controllers, 2 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: on usb2 uhub2: 4 ports with 4 removable, self powered pcm0: mem 0xf6dfc000-0xf6dfffff irq 21 at device 27.0 on pci0 pcm0: [ITHREAD] pcib1: at device 28.0 on pci0 pci11: on pcib1 pcib2: at device 28.1 on pci0 pci12: on pcib2 pci12: at device 0.0 (no driver attached) pcib3: at device 28.5 on pci0 pci9: on pcib3 bge0: mem 0xf6bf0000-0xf6bfffff irq 17 at device 0.0 on pci9 miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0: Ethernet address: 00:1c:23:2d:ff:0e bge0: [ITHREAD] uhci2: port 0x6f80-0x6f9f irq 20 at device 29.0 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb3: on uhci2 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered uhci3: port 0x6f60-0x6f7f irq 21 at device 29.1 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0x6f40-0x6f5f irq 22 at device 29.2 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered ehci1: mem 0xfed1c000-0xfed1c3ff irq 20 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb6: EHCI version 1.0 usb6: companion controllers, 2 ports each: usb3 usb4 usb5 usb6: on ehci1 usb6: USB revision 2.0 uhub6: on usb6 uhub6: 6 ports with 6 removable, self powered pcib4: at device 30.0 on pci0 pci3: on pcib4 cbb0: at device 1.0 on pci3 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] fwohci0: <1394 Open Host Controller Interface> mem 0xf6aff000-0xf6afffff,0xf6afe800-0xf6afefff irq 19 at device 1.4 on pci3 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 35:4f:c0:00:23:13:bc:70 fwohci0: Phy 1394a available S400, 1 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 36:4f:c0:13:bc:70 fwe0: Ethernet address: 36:4f:c0:13:bc:70 fwip0: on firewire0 fwip0: Firewire address: 35:4f:c0:00:23:13:bc:70 @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x7b7f8000 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x6fa0-0x6faf irq 16 at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] atapci1: port 0x6eb0-0x6eb7,0x6eb8-0x6ebb,0x6ec0-0x6ec7,0x6ec8-0x6ecb,0x6ee0-0x6eff mem 0xf6dfb800-0xf6dfbfff irq 18 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.10 controller with 3 ports detected ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: port not implemented ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 battery1: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64,0x62,0x66 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model GlidePoint, device ID 0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 orm0: at iomem 0xc0000-0xcefff,0xcf000-0xcffff on isa0 ppc0: cannot reserve I/O port range sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ugen0: on uhub0 uhub7: on uhub5 uhub7: 4 ports with 3 removable, self powered ugen1: on uhub7 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acd0: CDRW at ata0-master UDMA33 ad4: 76319MB at ata2-master SATA300 xl0: <3Com 3c575B Fast Etherlink XL> port 0x1100-0x117f mem 0xf6a01000-0xf6a0107f,0xf6a02000-0xf6a0207f irq 19 at device 0.0 on cardbus0 miibus1: on xl0 tdkphy0: PHY 0 on miibus1 tdkphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:00:86:32:3b:d8 xl0: [ITHREAD] pcm0: pcm0: SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad4s1a kqemu version 0x00010300 kqemu: KQEMU installed, max_locked_mem=1038176kB. fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 drm0: on vgapci0 info: [drm] AGP at 0xe0000000 256MB info: [drm] Initialized i915 1.5.0 20060119 error: [drm:pid1295:i915_getparam] *ERROR* i915_getparam called with no initialization drm0: [ITHREAD] [olivier@d630]~> [root@d630]/usr/obj/usr/src/sys/DellD630#kgdb kernel.debug /var/crash/vmcore.0 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"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x258 fault code = supervisor read data, page not present instruction pointer = 0x8:0xffffffff802d47aa stack pointer = 0x10:0xffffffffaefdc940 frame pointer = 0x10:0xffffff0001e8c000 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 3 current process = 1267 (Xorg) trap number = 12 panic: page fault cpuid = 0 Uptime: 7m26s Physical memory: 2027 MB Dumping 317 MB: 302 286 270 254 238 222 206 190 174 158 142 126 110 94 78 62 46 30 14 Reading symbols from /boot/kernel/snd_hda.ko...Reading symbols from /boot/kernel/snd_hda.ko.symbols...done. done. Loaded symbols for /boot/kernel/snd_hda.ko Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done. done. Loaded symbols for /boot/kernel/sound.ko Reading symbols from /boot/kernel/linprocfs.ko...Reading symbols from /boot/kernel/linprocfs.ko.symbols...done. done. Loaded symbols for /boot/kernel/linprocfs.ko Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko Reading symbols from /boot/kernel/aio.ko...Reading symbols from /boot/kernel/aio.ko.symbols...done. done. Loaded symbols for /boot/kernel/aio.ko Reading symbols from /boot/modules/kqemu.ko...done. Loaded symbols for /boot/modules/kqemu.ko Reading symbols from /usr/local/modules/fuse.ko...done. Loaded symbols for /usr/local/modules/fuse.ko Reading symbols from /boot/kernel/i915.ko...Reading symbols from /boot/kernel/i915.ko.symbols...done. done. Loaded symbols for /boot/kernel/i915.ko Reading symbols from /boot/kernel/drm.ko...Reading symbols from /boot/kernel/drm.ko.symbols...done. done. Loaded symbols for /boot/kernel/drm.ko #0 doadump () at pcpu.h:195 195 __asm __volatile("movq %%gs:0,%0" : "=r" (td)); (kgdb) where #0 doadump () at pcpu.h:195 #1 0x0000000000000004 in ?? () #2 0xffffffff802e04e1 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #3 0xffffffff802e091c in panic (fmt=0x104
) at /usr/src/sys/kern/kern_shutdown.c:574 #4 0xffffffff80524c8a in trap_fatal (frame=0xffffff0001e8c000, eva=Variable "eva" is not available. ) at /usr/src/sys/amd64/amd64/trap.c:764 #5 0xffffffff80525031 in trap_pfault (frame=0xffffffffaefdc890, usermode=0) at /usr/src/sys/amd64/amd64/trap.c:680 #6 0xffffffff805258ef in trap (frame=0xffffffffaefdc890) at /usr/src/sys/amd64/amd64/trap.c:449 #7 0xffffffff8050c34e in calltrap () at /usr/src/sys/amd64/amd64/exception.S:209 #8 0xffffffff802d47aa in _mtx_lock_sleep (m=0xffffff000348a968, tid=18446742974229954560, opts=Variable "opts" is not available. ) at /usr/src/sys/kern/kern_mutex.c:339 #9 0xffffffff802d4b5f in _mtx_lock_flags (m=Variable "m" is not available. ) at /usr/src/sys/kern/kern_mutex.c:186 #10 0xffffffffaf18c11d in i915_irq_wait (kdev=Variable "kdev" is not available. ) at /usr/src/sys/modules/drm/i915/../../../dev/drm/i915_irq.c:117 #11 0xffffffffaf194179 in drm_ioctl (kdev=0xffffff0001f76400, cmd=2147771461, data=0xffffff002f9d11d0 "\031Y", flags=67, p=0xffffff0001e8c000) at /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_drv.c:911 #12 0xffffffff802ab4d2 in giant_ioctl (dev=0xffffff0001f76400, cmd=2147771461, data=0xffffff002f9d11d0 "\031Y", fflag=67, td=0xffffff0001e8c000) at /usr/src/sys/kern/kern_conf.c:408 #13 0xffffffff80276d7e in devfs_ioctl_f (fp=0xffffff0003481e00, com=2147771461, data=0xffffff002f9d11d0, cred=Variable "cred" is not available. ) at /usr/src/sys/fs/devfs/devfs_vnops.c:595 #14 0xffffffff8031561e in kern_ioctl (td=0xffffff0001e8c000, fd=9, com=2147771461, data=0xffffff002f9d11d0 "\031Y") at file.h:268 #15 0xffffffff803158f8 in ioctl (td=0xffffff0001e8c000, uap=0xffffffffaefdcbf0) at /usr/src/sys/kern/sys_generic.c:570 #16 0xffffffff8052529c in syscall (frame=0xffffffffaefdcc80) at /usr/src/sys/amd64/amd64/trap.c:907 #17 0xffffffff8050c55b in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:330 #18 0x00000008019dfb1c in ?? () (kgdb) up 10 #10 0xffffffffaf18c11d in i915_irq_wait (kdev=Variable "kdev" is not available. ) at /usr/src/sys/modules/drm/i915/../../../dev/drm/i915_irq.c:117 117 DRM_WAIT_ON(ret, dev_priv->irq_queue, 3 * DRM_HZ, (kgdb) list *0xffffffff802d47aa 0xffffffff802d47aa is in _mtx_lock_sleep (/usr/src/sys/kern/kern_mutex.c:341). 336 */ 337 v = m->mtx_lock; 338 if (v != MTX_UNOWNED) { 339 owner = (struct thread *)(v & ~MTX_FLAGMASK); 340 #ifdef ADAPTIVE_GIANT 341 if (TD_IS_RUNNING(owner)) { 342 #else 343 if (m != &Giant && TD_IS_RUNNING(owner)) { 344 #endif 345 if (LOCK_LOG_TEST(&m->lock_object, 0)) (kgdb) up 11 #11 0xffffffffaf194179 in drm_ioctl (kdev=0xffffff0001f76400, cmd=2147771461, data=0xffffff002f9d11d0 "\031Y", flags=67, p=0xffffff0001e8c000) at /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_drv.c:911 911 retcode = func(kdev, cmd, data, flags, p, filp); Don't know if this problem is related to my video chipset (Intel i965GM). Thanks, Olivier >How-To-Repeat: By clossing a gnome session. >Fix: >Release-Note: >Audit-Trail: >Unformatted: