From owner-freebsd-current@FreeBSD.ORG Wed Sep 3 05:12:29 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04F451065671; Wed, 3 Sep 2008 05:12:29 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id D18EB8FC1A; Wed, 3 Sep 2008 05:12:28 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.3/8.14.3) with ESMTP id m835CSO7002609; Tue, 2 Sep 2008 22:12:28 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.3/8.14.3/Submit) id m835CSIN002608; Tue, 2 Sep 2008 22:12:28 -0700 (PDT) (envelope-from sgk) Date: Tue, 2 Sep 2008 22:12:28 -0700 From: Steve Kargl To: Robert Noland Message-ID: <20080903051228.GA2475@troutmask.apl.washington.edu> References: <20080903011612.GA1242@troutmask.apl.washington.edu> <1220416793.1848.1.camel@wombat.2hip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1220416793.1848.1.camel@wombat.2hip.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@FreeBSD.org Subject: Re: drm causes kernel panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 05:12:29 -0000 On Wed, Sep 03, 2008 at 12:39:53AM -0400, Robert Noland wrote: > On Tue, 2008-09-02 at 18:16 -0700, Steve Kargl wrote: > > #0 doadump () at pcpu.h:195 > > #1 0xffffffff802ee4da in boot (howto=260) > > at /usr/src/sys/kern/kern_shutdown.c:418 > > #2 0xffffffff802ee947 in panic (fmt=Variable "fmt" is not available. > > ) > > at /usr/src/sys/kern/kern_shutdown.c:572 > > #3 0xffffffff803301ca in witness_unlock (lock=0xffffffff806f3d60, flags=8, > > file=0xffffffff8055dc88 "/usr/src/sys/dev/drm/drm_pci.c", line=77) > > at /usr/src/sys/kern/subr_witness.c:1460 > > #4 0xffffffff802e20c6 in _mtx_unlock_flags (m=0xffffff00017b41a8, opts=0, > > file=0xffffffff8055dc88 "/usr/src/sys/dev/drm/drm_pci.c", line=77) > > at /usr/src/sys/kern/kern_mutex.c:199 > > #5 0xffffffff8021a945 in drm_pci_alloc (dev=Variable "dev" is not available. > > ) > > at /usr/src/sys/dev/drm/drm_pci.c:77 > > #6 0xffffffff80214654 in drm_addmap (dev=0xffffff00017b4000, offset=0, > > size=16384, type=_DRM_CONSISTENT, flags=Variable "flags" is not available. > > ) > > at /usr/src/sys/dev/drm/drm_bufs.c:247 > > #7 0xffffffff80214b8b in drm_addmap_ioctl (dev=0xffffff00017b4000, > > data=0xffffff000576c480, file_priv=Variable "file_priv" is not available. > > ) > > at /usr/src/sys/dev/drm/drm_bufs.c:291 > > I can't quite tell how we got here from this trace... What graphics > hardware are you using and can you tell me what was going on when it > paniced? > >From dmesg: vgapci0: port 0xb000-0xb0ff mem 0xfd000000-0xfdffffff,0 xfeaff000-0xfeafffff irq 18 at device 6.0 on pci3 drm0: on vgapci0 info: [drm] Initialized mach64 2.0.0 20060718 >From pciconf -vl vgapci0@pci0:3:6:0: class=0x030000 card=0x80081002 chip=0x47521002 rev=0x27 hdr=0x00 vendor = 'ATI Technologies Inc' device = 'Rage XL PCI' class = display subclass = VGA IIRC, Motherboard is a Tyan Thunder K8SD Pro. I was using startx to start Xorg with a .xinitrc of #xsetroot -solid '#7332AE12B0A3' xset s on display -window root pics/freefield_1280x1024.jpg fvwm2 & xclock -geometry 85x85-5+3 -fg black -bg red & xload -geometry 85x85-5+103 -fg blue -bg yellow & xhost atlas troutmask hpc & coolmail -geometry 85x85-5+203 -f /var/mail/kargl & /usr/local/bin/ical -iconposition 1210,1000 & xterm -fn '10x20' -geometry 80x24 -iconic -name login -sb -sl 512 -fg black -bg BlanchedAlmond -cr red -ms red The panic appears to have occurred during the xhost command, but I believe it is related to loading Xorg's dri module. If I disable dri in my xorg.conf file, the system does not panic. If Xorg tries to load its dri module, I get an error message in Xorg's log file. Unfortunately, I don't have a copy of the message laying around here at home. I can panic the system tomorrow to get that message if you think it is required. I suspect that I need to recompile the Xorg server port, but that isn't mentioned anywhere in src/UPDATING. -- Steve