From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 18 06:50:02 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CDDAF16A404 for ; Wed, 18 Jul 2007 06:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 945B813C4A6 for ; Wed, 18 Jul 2007 06:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6I6o2Ho047414 for ; Wed, 18 Jul 2007 06:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6I6o2nS047413; Wed, 18 Jul 2007 06:50:02 GMT (envelope-from gnats) Resent-Date: Wed, 18 Jul 2007 06:50:02 GMT Resent-Message-Id: <200707180650.l6I6o2nS047413@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, vehemens Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A8F1216A401 for ; Wed, 18 Jul 2007 06:41:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (groups.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 99EC913C4B7 for ; Wed, 18 Jul 2007 06:41:16 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6I6fGo2022574 for ; Wed, 18 Jul 2007 06:41:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l6I6fG0T022558; Wed, 18 Jul 2007 06:41:16 GMT (envelope-from nobody) Message-Id: <200707180641.l6I6fG0T022558@www.freebsd.org> Date: Wed, 18 Jul 2007 06:41:16 GMT From: vehemens To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/114688: RADEON/AIGLX/DRM Problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 06:50:02 -0000 >Number: 114688 >Category: kern >Synopsis: RADEON/AIGLX/DRM Problem >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 18 06:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: vehemens >Release: Current >Organization: >Environment: FreeBSD hep.dsl-verizon.net 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Jul 15 22:20:10 PDT 2007 vehemens@hep.dsl-verizon.net:/usr/obj/usr/src/sys/HEP i386 >Description: 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 don't know what direction to go in a this point, as I don't have the system knowledge to determine if the problem should be fixed in 1) the DRM driver, 2) libdrm, 3) the xserver, 4) the video driver, or 5) the AIGLX extension. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: