From owner-freebsd-current@FreeBSD.ORG Fri Apr 22 04:26:47 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9E2316A4CE for ; Fri, 22 Apr 2005 04:26:47 +0000 (GMT) Received: from leguin.anholt.net (69-30-77-85.dq1sn.easystreet.com [69.30.77.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A95943D1D for ; Fri, 22 Apr 2005 04:26:47 +0000 (GMT) (envelope-from anholt@FreeBSD.org) Received: from leguin.anholt.net (localhost [127.0.0.1]) by leguin.anholt.net (8.13.3/8.13.1) with ESMTP id j3M4QiEL004712; Thu, 21 Apr 2005 21:26:44 -0700 (PDT) (envelope-from anholt@FreeBSD.org) Received: (from anholt@localhost) by leguin.anholt.net (8.13.3/8.13.1/Submit) id j3M4QhCT004711; Thu, 21 Apr 2005 21:26:43 -0700 (PDT) (envelope-from anholt@FreeBSD.org) X-Authentication-Warning: leguin.anholt.net: anholt set sender to anholt@FreeBSD.org using -f From: Eric Anholt To: noackjr@alumni.rice.edu In-Reply-To: <426709E4.6060006@alumni.rice.edu> References: <426709E4.6060006@alumni.rice.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 21 Apr 2005 21:26:43 -0700 Message-Id: <1114144003.955.12.camel@leguin> Mime-Version: 1.0 X-Mailer: Evolution 2.2.0 FreeBSD GNOME Team Port cc: current@FreeBSD.org Subject: Re: instant reboot with new drm X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: eta@lclark.edu List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 04:26:47 -0000 On Wed, 2005-04-20 at 21:03 -0500, Jon Noack wrote: > Ever since the new DRM was imported I have been unable to use DRI with > my R128-based card. When loading X, the machine reboots. Removing DRI > from the X config makes everything work. The last message logged by X > when DRI is enabled: > (II) R128(0): [drm] installed DRM signal handler > (II) R128(0): [DRI] installation complete > (II) R128(0): [drm] Added 128 16384 byte vertex/indirect buffers > (II) R128(0): [drm] Mapped 128 vertex/indirect buffers > (II) R128(0): [drm] dma control initialized, using IRQ 5 > (II) R128(0): Direct rendering enabled > (==) RandR enabled > (**) Option "BaudRate" "1200" > (**) Option "StopBits" "2" > (**) Option "DataBits" "8" > (**) Option "Parity" "None" > (**) Option "Vmin" "1" > (**) Option "Vtime" "0" > (**) Option "FlowControl" "None" > > The card is detected as follows: > drm0: port 0x9000-0x90ff mem > 0xf8000000-0xfbffffff,0xf0200000-0xf0203fff irq 5 at device 0.0 on pci1 > info: [drm] AGP at 0xf4000000 64MB > info: [drm] Initialized r128 2.5.0 20030725 on minor 0 > > Note that IRQ5 is shared with the sound card (snd_solo(4)) and that I am > using APIC and ACPI. Here's the pciconf: > drm0@pci1:0:0: class=0x030000 card=0xb11b0e11 chip=0x4c461002 rev=0x02 > hdr=0x00 vendor = 'ATI Technologies Inc' > device = 'Rage Mobility M3 AGP 2x' > class = display > subclass = VGA > > DRM is compiled into kernel, although I originally was using modules: > # Direct Rendering modules for 3D acceleration. > device drm # DRM core module required by DRM drivers > device r128drm # ATI Rage 128 > > How can I debug this? Panicking while in X results in a reboot these days. Tor Egge has sent a backtrace for mga, and I'll be taking a look soon. -- Eric Anholt eta@lclark.edu http://people.freebsd.org/~anholt/ anholt@FreeBSD.org