From smkelly@zombie.org  Sun Oct 27 11:40:32 2002
Return-Path: <smkelly@zombie.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 43C9A37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Oct 2002 11:40:32 -0800 (PST)
Received: from edgemaster.zombie.org (edgemaster.creighton.edu [147.134.112.68])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D512043E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 Oct 2002 11:40:31 -0800 (PST)
	(envelope-from smkelly@zombie.org)
Received: by edgemaster.zombie.org (Postfix, from userid 1001)
	id 5A72B414D9; Sun, 27 Oct 2002 13:40:31 -0600 (CST)
Message-Id: <20021027194031.5A72B414D9@edgemaster.zombie.org>
Date: Sun, 27 Oct 2002 13:40:31 -0600 (CST)
From: Sean Kelly <smkelly@zombie.org>
Reply-To: Sean Kelly <smkelly@zombie.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: could sleep with "drm memory" locked
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         44540
>Category:       kern
>Synopsis:       could sleep with "drm memory" locked
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 27 11:50:00 PST 2002
>Closed-Date:    Fri Jan 10 23:24:07 PST 2003
>Last-Modified:  Fri Jan 10 23:24:07 PST 2003
>Originator:     Sean Kelly
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD edgemaster.zombie.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri Oct 25 23:27:50 CDT 2002 root@edgemaster.zombie.org:/usr/obj/usr/src/sys/EDGEMASTER i386


	Matrox Mill. G400 Dual AGP w/ XFree86 4.2.1

>Description:
	I have a 5.0-CURRENT kernel built with static agp support. Upon starting
	xdm, the mga.ko module is automagically loaded. After the loading of
	mga.ko, if I exeucte a `sysctl -a`, I receive:
	Oct 27 13:34:30 edgemaster kernel: /usr/src/sys/kern/kern_sysctl.c:1000: could sleep with "drm memory" locked from @/dev/drm/drm_memory.h:217
	on the console.
	
>How-To-Repeat:
	1. Build kernel with 'device agp'
	2. Install Xfree86 4.2.1 from portsl
	3. Set up XF86Config like so:
	Section "Module"
	        Load  "dri"
	        Load  "glx"
	        Load  "ddc"
	        Load  "dbe"
	        Load  "extmod"
	EndSection
	4. Start X
	5. Execute `sysctl -a`
	6. Check console and/or syslog.

>Fix:
	Not sure. I haven't gotten a grasp on that part of kernel programming
	yet.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Fri Jan 10 23:23:46 PST 2003 
State-Changed-Why:  
Fixed in -current on 2002/12/04. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44540 
>Unformatted:
