Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2009 06:40:21 GMT
From:      Olivier Cochard-Labbe <olivier@freenas.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   amd64/132042: drm module crash the system when closing gnome session
Message-ID:  <200902240640.n1O6eLg7058706@www.freebsd.org>
Resent-Message-ID: <200902240650.n1O6o3uk066532@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe3bd<SSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
usable memory = 2126184448 (2027 MB)
avail memory  = 2051727360 (1956 MB)
ACPI APIC Table: <DELL   M08    >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 2
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <DELL M08    > 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: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xeff8-0xefff mem 0xf6e00000-0xf6efffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
agp0: <Intel GM965 SVGA controller> on vgapci0
agp0: detected 7676k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xf6f00000-0xf6ffffff at device 2.1 on pci0
uhci0: <Intel 82801H (ICH8) USB controller USB-D> port 0x6f20-0x6f3f irq 20 at device 26.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <Intel 82801H (ICH8) USB controller USB-D> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801H (ICH8) USB controller USB-E> port 0x6f00-0x6f1f irq 21 at device 26.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <Intel 82801H (ICH8) USB controller USB-E> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
ehci0: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> 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: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> on ehci0
usb2: USB revision 2.0
uhub2: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2
uhub2: 4 ports with 4 removable, self powered
pcm0: <Intel 82801H High Definition Audio Controller> mem 0xf6dfc000-0xf6dfffff irq 21 at device 27.0 on pci0
pcm0: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> at device 28.0 on pci0
pci11: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 28.1 on pci0
pci12: <ACPI PCI bus> on pcib2
pci12: <network> at device 0.0 (no driver attached)
pcib3: <ACPI PCI-PCI bridge> at device 28.5 on pci0
pci9: <ACPI PCI bus> on pcib3
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0xa002> mem 0xf6bf0000-0xf6bfffff irq 17 at device 0.0 on pci9
miibus0: <MII bus> on bge0
brgphy0: <BCM5755 10/100/1000baseTX PHY> 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: <Intel 82801H (ICH8) USB controller USB-A> port 0x6f80-0x6f9f irq 20 at device 29.0 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb3: <Intel 82801H (ICH8) USB controller USB-A> on uhci2
usb3: USB revision 1.0
uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
uhci3: <Intel 82801H (ICH8) USB controller USB-B> port 0x6f60-0x6f7f irq 21 at device 29.1 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb4: <Intel 82801H (ICH8) USB controller USB-B> on uhci3
usb4: USB revision 1.0
uhub4: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb4
uhub4: 2 ports with 2 removable, self powered
uhci4: <Intel 82801H (ICH8) USB controller USB-C> port 0x6f40-0x6f5f irq 22 at device 29.2 on pci0
uhci4: [GIANT-LOCKED]
uhci4: [ITHREAD]
usb5: <Intel 82801H (ICH8) USB controller USB-C> on uhci4
usb5: USB revision 1.0
uhub5: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb5
uhub5: 2 ports with 2 removable, self powered
ehci1: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> 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: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> on ehci1
usb6: USB revision 2.0
uhub6: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb6
uhub6: 6 ports with 6 removable, self powered
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib4
cbb0: <PCI-CardBus Bridge> at device 1.0 on pci3
cardbus0: <CardBus bus> 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: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 36:4f:c0:13:bc:70
fwe0: Ethernet address: 36:4f:c0:13:bc:70
fwip0: <IP over FireWire> on firewire0
fwip0: Firewire address: 35:4f:c0:00:23:13:bc:70 @ 0xfffe00000000, S400, maxrec 2048
sbp0: <SBP-2/SCSI over FireWire> on firewire0
dcons_crom0: <dcons configuration ROM> on firewire0
dcons_crom0: bus_addr 0x7b7f8000
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH8M UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x6fa0-0x6faf irq 16 at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <Intel AHCI controller> 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: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: port not implemented
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci1
ata4: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64,0x62,0x66 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> 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: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcefff,0xcf000-0xcffff on isa0
ppc0: cannot reserve I/O port range
sc0: <System console> 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: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ugen0: <vendor 0x413c product 0x8140, class 224/1, rev 2.00/43.15, addr 2> on uhub0
uhub7: <vendor 0x0b97 product 0x7761, class 9/0, rev 1.10/1.10, addr 2> on uhub5
uhub7: 4 ports with 3 removable, self powered
ugen1: <O2 O2Micro CCID SC Reader, class 0/0, rev 1.10/1.10, addr 3> on uhub7
Timecounters tick every 1.000 msec
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
acd0: CDRW <HL-DT-STCD-RW/DVD-ROM GCC-T10N/A100> at ata0-master UDMA33
ad4: 76319MB <TOSHIBA MK8046GSX LB312D> 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: <MII bus> on xl0
tdkphy0: <TDK 78Q2120 media interface> PHY 0 on miibus1
tdkphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:00:86:32:3b:d8
xl0: [ITHREAD]
pcm0: <HDA Codec: Sigmatel STAC9205>
pcm0: <HDA Driver Revision: 20080420_0052>
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: <Intel i965GM> 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 <Address 0x104 out of bounds>) 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902240640.n1O6eLg7058706>