From owner-freebsd-x11@FreeBSD.ORG Sun Jul 15 09:32:04 2007 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFBA716A401 for ; Sun, 15 Jul 2007 09:32:04 +0000 (UTC) (envelope-from vehemens@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.freebsd.org (Postfix) with ESMTP id A1C1413C478 for ; Sun, 15 Jul 2007 09:32:04 +0000 (UTC) (envelope-from vehemens@verizon.net) Received: from susy.dsl-verizon.net ([71.106.227.196]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JL700EZORS1ZY85@vms044.mailsrvcs.net> for freebsd-x11@freebsd.org; Sun, 15 Jul 2007 04:31:13 -0500 (CDT) Date: Sun, 15 Jul 2007 02:31:02 -0700 From: vehemens In-reply-to: <200707092112.06905.vehemens@verizon.net> To: freebsd-x11@freebsd.org Message-id: <200707150231.03162.vehemens@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit Content-disposition: inline References: <200707030247.52207.vehemens@verizon.net> <1183974697.15243.58.camel@thor.sulgenrain.local> <200707092112.06905.vehemens@verizon.net> User-Agent: KMail/1.9.6 Subject: RADEON/AIGLX/DRM Problem X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2007 09:32:04 -0000 The problem with the RADEON driver failing when run with the AIGLX extension appears to be a problem with the DRM piece (library and/or driver). What is happening is that the RADEON driver initializes DRM and sets a lock using one file descriptor. When the AIGLX extension loads, it probes via DRM using open/close calls on another file descriptor. As both the RADEON driver and the AIGLX extension are part of the same process, the AIGLX probe close calls drm_close which removes the DRI lock causing the RADEON driver to fail during xserver initialization (i.e. system hang). Just to complicate the issue, I've been told that this doesn't occur with linux with the suggestion that the BSD driver is broken or that the close semantics are different between the two operating systems. I'm looking for ideas here as I don't know what direction to go in a this point.