panic in drm

Ronald Klop ronald-freebsd8 at klop.yi.org
Thu Jun 26 14:25:11 UTC 2008


Hello,

At my work I see a panic if I do this.
Leaf my computer on screensaver (don't no if that is necessary) and come  
back the next morning. My monitor is than black, but the light is green,  
so DPMS didn't kick in.
Keys or mouse don't wake up the system. CTRL-ALT-F1 switches to the  
console and immediately triggers this panic.

I'm running latest x.org with xf86-video-i810-1.7.4_1. The newer  
xf86-video-intel also crashes my system sometimes when I'm working on it,  
so a downgraded.

Any ideas, suggestions or fixes available?

Cheers,
Ronald.

FreeBSD ronald.office.base.nl 7.0-STABLE FreeBSD 7.0-STABLE #: Mon May 19  
12:12:58 CEST 2008      
root at ronald.office.base.nl:/usr/obj/usr/src/sys/SMP-RONALD  i386


kgdb kernel.debug /var/crash/vmcore.2
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 "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x188
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc04faee4
stack pointer           = 0x28:0xe7b25a94
frame pointer           = 0x28:0xe7b25aac
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         = 58549 (xlock)
trap number             = 12
panic: page fault
cpuid = 1
Uptime: 20d18h31m44s
Physical memory: 2037 MB
Dumping 251 MB: 236 220 204 188 172 156 140 124 108 92 76 60 44 28 12




#0  doadump () at pcpu.h:195
195             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc050867f in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc050893a in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:572
#3  0xc067a080 in trap_fatal (frame=0xe7b25a54, eva=392)
     at /usr/src/sys/i386/i386/trap.c:899
#4  0xc067a2d0 in trap_pfault (frame=0xe7b25a54, usermode=0, eva=392)
     at /usr/src/sys/i386/i386/trap.c:812
#5  0xc067ab81 in trap (frame=0xe7b25a54) at  
/usr/src/sys/i386/i386/trap.c:490
#6  0xc066277b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc04faee4 in _mtx_lock_sleep (m=0xc4ddfcc0, tid=3321921536, opts=0,
     file=0x0, line=0) at /usr/src/sys/kern/kern_mutex.c:335
#8  0xc04fb005 in lock_mtx (lock=0xc4ddfcc0, how=0)
     at /usr/src/sys/kern/kern_mutex.c:141
#9  0xc05102b8 in _sleep (ident=0xc4ddfe64, lock=0xc4ddfcc0, priority=340,
     wmesg=0xc58007e7 "drmwtq", timo=3000) at  
/usr/src/sys/kern/kern_synch.c:237
#10 0xc57fefa7 in i915_driver_vblank_wait (dev=0xc4ddfc00,  
sequence=0xe7b25b48)
     at /usr/src/sys/modules/drm/i915/../../../dev/drm/i915_irq.c:141
#11 0xc580bf06 in drm_wait_vblank (kdev=0xc570b600, cmd=Variable "cmd" is  
not available.
)
     at /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_irq.c:254
#12 0xc580a8e4 in drm_ioctl (kdev=0xc570b600, cmd=3222299706,
     data=0xc72790b0 "", flags=3, p=0xc6008000)
     at /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_drv.c:911
#13 0xc04d58e0 in giant_ioctl (dev=0xc570b600, cmd=3222299706,
     data=0xc72790b0 "", fflag=3, td=0xc6008000)
     at /usr/src/sys/kern/kern_conf.c:405
#14 0xc04b0998 in devfs_ioctl_f (fp=0xc87f0c18, com=3222299706,
     data=0xc72790b0, cred=0xc81ea000, td=0xc6008000)
     at /usr/src/sys/fs/devfs/devfs_vnops.c:494
#15 0xc053bbb5 in kern_ioctl (td=0xc6008000, fd=5, com=3222299706,
     data=0xc72790b0 "") at file.h:266
#16 0xc053bcfa in ioctl (td=0xc6008000, uap=0xe7b25cfc)
     at /usr/src/sys/kern/sys_generic.c:570
#17 0xc067a5c1 in syscall (frame=0xe7b25d38)
     at /usr/src/sys/i386/i386/trap.c:1035
#18 0xc06627e0 in Xint0x80_syscall () at  
/usr/src/sys/i386/i386/exception.s:196
#19 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)



(kgdb) list *0xc04faee4
0xc04faee4 is in _mtx_lock_sleep (/usr/src/sys/kern/kern_mutex.c:337).
332                      */
333                     v = m->mtx_lock;
334                     if (v != MTX_UNOWNED) {
335                             owner = (struct thread *)(v &  
~MTX_FLAGMASK);
336     #ifdef ADAPTIVE_GIANT
337                             if (TD_IS_RUNNING(owner)) {
338     #else
339                             if (m != &Giant && TD_IS_RUNNING(owner)) {
340     #endif
341                                     if (LOCK_LOG_TEST(&m->lock_object,  
0))

--- dmesg output ---
Copyright (c) 1992-2008 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.0-STABLE #: Mon Jun 16 14:05:07 CEST 2008
     root at ronald.office.base.nl:/usr/obj/usr/src/sys/SMP-RONALD
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2793.19-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
   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=0x4400<CNXT-ID,xTPR>
   Logical CPUs per core: 2
real memory  = 2145845248 (2046 MB)
avail memory = 2094579712 (1997 MB)
ACPI APIC Table: <DELL   GX270  >
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
acpi0: <DELL GX270  > on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, f00000 (3) failed
acpi0: reservation of 1000000, 7ee70000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
cpu1: <ACPI CPU> on acpi0
p4tcc1: <CPU Frequency Thermal Control> on cpu1
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xed98-0xed9f mem  
0xe8000000-0xefffffff,0xfeb80000-0xfebfffff irq 16 at device 2.0 on pci0
agp0: <Intel 82865G (865G GMCH) SVGA controller> on vgapci0
agp0: detected 892k stolen memory
agp0: aperture size is 128M
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xff80-0xff9f irq  
16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <Intel 82801EB (ICH5) USB controller USB-A> 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 82801EB (ICH5) USB controller USB-B> port 0xff60-0xff7f irq  
19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <Intel 82801EB (ICH5) USB controller USB-B> 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
uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0xff40-0xff5f irq  
18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0xff20-0xff3f irq  
16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
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
ehci0: <Intel 82801EB/R (ICH5) USB 2.0 controller> mem  
0xffa80800-0xffa80bff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801EB/R (ICH5) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
uhub5: <NEC Corporation USB2.0 Hub Controller, class 9/0, rev 2.00/1.00,  
addr 2> on uhub4
uhub5: single transaction translator
uhub5: 4 ports with 4 removable, self powered
ums0: <Logitech USB-PS/2 Optical Mouse, class 0/0, rev 2.00/27.20, addr 3>  
on uhub5
ums0: 8 buttons and Z dir.
pcib1: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci1: <ACPI PCI bus> on pcib1
em0: <Intel(R) PRO/1000 Network Connection 6.9.5> port 0xdf40-0xdf7f mem  
0xfeae0000-0xfeafffff irq 18 at device 12.0 on pci1
em0: [FILTER]
em0: Ethernet address: 00:0f:1f:83:6e:fb
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 UDMA100 controller> port  
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf mem  
0xfeb7fc00-0xfeb7ffff irq 18 at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <Intel ICH5 SATA150 controller> port  
0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfea0-0xfeaf irq  
18 at device 31.2 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
ichsmb0: <Intel 82801EB (ICH5) SMBus controller> port 0xeda0-0xedbf irq 17  
at device 31.3 on pci0
ichsmb0: [GIANT-LOCKED]
ichsmb0: [ITHREAD]
smbus0: <System Management Bus> on ichsmb0
pcm0: <Intel ICH5 (82801EB)> port 0xee00-0xeeff,0xedc0-0xedff mem  
0xfeb7fa00-0xfeb7fbff,0xfeb7f900-0xfeb7f9ff irq 17 at device 31.5 on pci0
pcm0: [ITHREAD]
pcm0: <Analog Devices AD1981B AC97 Codec>
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on  
acpi0
sio0: type 16550A
sio0: [FILTER]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem  
0xc0000-0xca7ff,0xca800-0xcbfff,0xcc000-0xd87ff,0xd8800-0xdbfff pnpid  
ORM0000 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
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
ubt0: <Broadcom Bluetooth USB Dongle, class 224/1, rev 1.10/0.01, addr 2>  
on uhub3
ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2
ubt0: Interface 1 (alt.config 4) endpoints: isoc-in=0x83, isoc-out=0x3;  
wMaxPacketSize=64; nframes=5, buffer size=320
Timecounters tick every 1.000 msec
ad0: 76293MB <Maxtor 6Y080L0 YAR41BW0> at ata0-master UDMA100
acd0: CDROM <SAMSUNG CD-ROM SC-148A/B403> at ata1-master UDMA33
SMP: AP CPU #1 Launched!
GEOM_LABEL: Label for provider ad0s1 is msdosfs/DellUtility.
GEOM_LABEL: Label for provider ad0s2 is ufs/test.
Trying to mount root from ufs:/dev/ad0s3a
WARNING: attempt to net_add_domain(bluetooth) after domainfinalize()
WARNING: attempt to net_add_domain(netgraph) after domainfinalize()
ipfw2 initialized, divert loadable, nat loadable, rule-based forwarding  
disabled, default to deny, logging disabled
netsmb_dev: loaded
drm0: <Intel i865G GMCH> on vgapci0
info: [drm] AGP at 0xe8000000 128MB
info: [drm] Initialized i915 1.5.0 20060119
drm0: [ITHREAD]
pid 3421 (fstat), uid 0: exited on signal 6
encode_long: negative value -633 in accounting record

-- 
  Ronald Klop
  Amsterdam, The Netherlands


More information about the freebsd-stable mailing list