From pb@fasterix.frmug.org  Wed Jun 25 02:14:28 2003
Return-Path: <pb@fasterix.frmug.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3C3B337B404
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Jun 2003 02:14:28 -0700 (PDT)
Received: from fasterix.frmug.org (fasterix.frmug.org [137.194.36.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4900C43FEA
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Jun 2003 02:14:27 -0700 (PDT)
	(envelope-from pb@fasterix.frmug.org)
Received: from fasterix.frmug.org (localhost [127.0.0.1])
	by fasterix.frmug.org (8.12.9/8.12.9) with ESMTP id h5P9EPqD012305
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 25 Jun 2003 11:14:25 +0200 (CEST)
	(envelope-from pb@fasterix.frmug.org)
Received: (from pb@localhost)
	by fasterix.frmug.org (8.12.9/8.12.9/Submit) id h5P9EPpD012304;
	Wed, 25 Jun 2003 11:14:25 +0200 (CEST)
Message-Id: <200306250914.h5P9EPpD012304@fasterix.frmug.org>
Date: Wed, 25 Jun 2003 11:14:25 +0200 (CEST)
From: Pierre Beyssac <pb@fasterix.frmug.org>
Reply-To: Pierre Beyssac <pb@fasterix.frmug.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: drm/DRI broken (out of DMA buffers?) for ATI Radeon 7200
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53712
>Category:       kern
>Synopsis:       drm/DRI broken (out of DMA buffers?) for ATI Radeon 7200
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    anholt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 25 02:20:15 PDT 2003
>Closed-Date:    Mon Nov 17 15:17:34 PST 2003
>Last-Modified:  Mon Nov 17 15:30:19 PST 2003
>Originator:     Pierre Beyssac
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD fasterix.frmug.org 5.1-CURRENT FreeBSD 5.1-CURRENT #4: Mon Jun 23 22:10:42 CEST 2003 pb@fasterix.frmug.org:/home/src/sys/i386/compile/ASTERIX i386

	-current Kernel and userland as of 2003-06-23, but problem
	exists since end April 2003.

	XFree server 4.3.0, version 8 of the package.

>Description:

	DRI-configured X server starts correctly, then locks up in
	a busy loop after some time.

	The busy loop involves repeated calls to ioctl(DRM_IOCTL_DMA)
	returning nothing but EBUSY. From the code, it seems to
	mean that /sys/dev/drm/radeon_cp.c:radeon_freelist_get()
	returns NULL pointers.

	The busy loop also seems to involve repeated occurences of
	SIGALRM, if truss is right.

>How-To-Repeat:

	Configure X11 with DRI.

	Start X11 server and three or four xterms. Run a ls -lR in
	one of them and wait for 10-20 seconds for the problem to
	occur. CTRL-C and repeat 2-4 times if necessary.

	Or start a textured, GLX 3D rendered application (not
	glxgears as it doesn't exhibit the problem) and wait for
	about 10 seconds.

	Login from another machine and use truss on the XFree86
	process to see repeated ioctl calls.

>Fix:

	Workaround: disable DRI or use pre-April -current (where
	the older drm code didn't exhibit that problem).
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->anholt 
Responsible-Changed-By: kris 
Responsible-Changed-When: Fri Jul 18 15:14:16 PDT 2003 
Responsible-Changed-Why:  
Assign to drm maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53712 

From: Eric Anholt <eta@lclark.edu>
To: gnats <freebsd-gnats-submit@FreeBSD.ORG>
Cc: pb@fasterix.frmug.org
Subject: Re: kern/53712: drm/DRI broken (out of DMA buffers?) for ATI
	Radeon 7200
Date: Sun, 19 Oct 2003 20:38:21 -0700

 Please try the DRM from DRI CVS.  The locking stuff I just committed may
 deal with this.  See the following link for instructions.
 http://dri.sf.net/cgi-bin/moin.cgi/CVS
  
 Check out trunk then:
 cd xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel
 ln -s ../../../shared/drm/kernel/*.[ch] ./
 make -f Makefile.bsd depend all install
  
 Now reload the DRM and try to reproduce it.  Note that sysctl hw.dri may
 be unsafe in low-memory situations, but I'm working on the fix for that
 at the moment.
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: anholt 
State-Changed-When: Sun Oct 19 20:40:49 PDT 2003 
State-Changed-Why:  
Waiting for feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53712 

From: Eric Anholt <eta@lclark.edu>
To: gnats <freebsd-gnats-submit@FreeBSD.ORG>
Cc: pb@fasterix.frmug.org
Subject: Re: kern/53712: drm/DRI broken (out of DMA buffers?) for ATI
	Radeon 7200
Date: Thu, 23 Oct 2003 19:10:23 -0700

 Scratch that, the latest code is now in FreeBSD CVS, too.  Just upgrade and try again.
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: anholt 
State-Changed-When: Mon Nov 17 15:04:44 PST 2003 
State-Changed-Why:  
Feedback timeout, and I think it's fixed anyway. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53712 

From: Pierre Beyssac <pb@fasterix.frmug.org>
To: Eric Anholt <anholt@FreeBSD.org>,
	freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/53712: drm/DRI broken (out of DMA buffers?) for ATI Radeon 7200
Date: Tue, 18 Nov 2003 00:20:15 +0100

 On Mon, Nov 17, 2003 at 03:17:33PM -0800, Eric Anholt wrote:
 > Synopsis: drm/DRI broken (out of DMA buffers?) for ATI Radeon 7200
 > 
 > State-Changed-From-To: feedback->closed
 > State-Changed-By: anholt
 > State-Changed-When: Mon Nov 17 15:04:44 PST 2003
 > State-Changed-Why: 
 > Feedback timeout, and I think it's fixed anyway.
 
 Well, I tried to reproduce the problem and it didn't show up in a
 long while, so I guess that's okay.
 -- 
 Pierre Beyssac	      	    pb@fasterix.frmug.org pb@fasterix.freenix.org
     Free domains: http://www.eu.org/ or mail dns-manager@EU.org
>Unformatted:
