From owner-freebsd-current@FreeBSD.ORG Wed Sep 3 19:58:45 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 A18EB1065679; Wed, 3 Sep 2008 19:58:45 +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 6923D8FC17; Wed, 3 Sep 2008 19:58:45 +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 m83JwjCO001383; Wed, 3 Sep 2008 12:58:45 -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 m83JwjP1001382; Wed, 3 Sep 2008 12:58:45 -0700 (PDT) (envelope-from sgk) Date: Wed, 3 Sep 2008 12:58:45 -0700 From: Steve Kargl To: Robert Noland Message-ID: <20080903195845.GA1370@troutmask.apl.washington.edu> References: <20080903011612.GA1242@troutmask.apl.washington.edu> <1220416793.1848.1.camel@wombat.2hip.net> <20080903051228.GA2475@troutmask.apl.washington.edu> <1220471512.11763.9.camel@squirrel.corp.cox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1220471512.11763.9.camel@squirrel.corp.cox.com> 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 19:58:45 -0000 On Wed, Sep 03, 2008 at 03:51:52PM -0400, Robert Noland wrote: > On Tue, 2008-09-02 at 22:12 -0700, Steve Kargl wrote: >> >> 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 > > Ok, I've found the problem... It is easy enough to fix your specific > situation, but doing so will cause problems for other drivers... Which > is the reason that I made that change to begin with. The big problem is > that drm_pci_alloc gets called from a variety of places, some of which > already hold locks while others don't. We aren't allowed to hold locks > over some of the bus_dma functions, so I have to go through all of these > paths and figure out if it is generally safe to always drop the locks, > or if I need to restructure the code somehow... If you want a patch to > just get you going temporarily, just let me know... > I can disable Xorg's dri module. When you have a patch you're happy with, feel free to ping me for testing. -- Steve