From ebola@S01060080c83f4fb0.su.shawcable.net  Wed Sep 15 07:03:45 2004
Return-Path: <ebola@S01060080c83f4fb0.su.shawcable.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7B02116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Sep 2004 07:03:45 +0000 (GMT)
Received: from S01060080c83f4fb0.su.shawcable.net (S01060080c83f4fb0.su.shawcable.net [24.76.70.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E4EBD43D49
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Sep 2004 07:03:44 +0000 (GMT)
	(envelope-from ebola@S01060080c83f4fb0.su.shawcable.net)
Received: from S01060080c83f4fb0.su.shawcable.net (ebola@localhost [127.0.0.1])
	by S01060080c83f4fb0 (8.13.1/8.13.1) with ESMTP id i8ELrQ9q050496
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 14 Sep 2004 17:53:26 -0400 (EDT)
	(envelope-from ebola@S01060080c83f4fb0.su.shawcable.net)
Received: (from ebola@localhost)
	by S01060080c83f4fb0.su.shawcable.net (8.13.1/8.13.1/Submit) id i8ELrPXB050489;
	Tue, 14 Sep 2004 17:53:25 -0400 (EDT)
	(envelope-from ebola)
Message-Id: <200409142153.i8ELrPXB050489@S01060080c83f4fb0.su.shawcable.net>
Date: Tue, 14 Sep 2004 17:53:25 -0400 (EDT)
From: Adam Gregoire <ebola@psychoholics.org>
Reply-To: Adam Gregoire <bsdunx@yahoo.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: DRI loads but fails to render on Radeon 9200se(RV280).
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71753
>Category:       amd64
>Synopsis:       DRI loads but fails to render on Radeon 9200se(RV280).
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 07:10:13 GMT 2004
>Closed-Date:    Mon Dec 20 16:27:46 GMT 2004
>Last-Modified:  Mon Dec 20 16:27:46 GMT 2004
>Originator:     Adam Gregoire
>Release:        FreeBSD 5.3-BETA4 amd64
>Organization:
N/A
>Environment:
System: FreeBSD S01060080c83f4fb0 5.3-BETA4 FreeBSD 5.3-BETA4 #3: Mon Sep 13 03:39:47 EDT 2004 root@S01060080c83f4fb0:/usr/obj/usr/src/sys/OPTMZD amd64

$ pkg_info | grep 'dri-'
dri-5.0.2,1         OpenGL hardware acceleration drivers for the DRI

$pkg_info | grep 'xorg-'
xorg-clients-6.7.0_4 X client programs and related files from X.Org
xorg-fonts-encodings-6.7.0 X.Org font encoding files
xorg-fonts-miscbitmaps-6.7.0 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-6.7.0 X.Org TrueType fonts
xorg-libraries-6.7.0_1 X11 libraries and headers from X.Org
xorg-server-6.7.0_7 X.Org X server and related programs

>Description:
$ dmesg | grep agp
agp0: <VIA 8385 host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0

$ dmesg | grep drm
drm0: <ATI Radeon RV280 9200 SE> port 0xa000-0xa0ff mem 0xfd400000-0xfd40ffff,0xe8000000-0xefffffff irq 16 at device 0.0 on pci1
info: [drm] AGP at 0xf8000000 64MB
info: [drm] Initialized radeon 1.11.0 20020828 on minor 0
info: [drm] Loading R200 Microcode

$ glxinfo | grep rendering
direct rendering: Yes

$ glxgears
drmCommandWrite: -22
drmRadeonCmdBuffer: -22 (exiting)

and the following gets written to syslog:
error: [drm:pid5296:radeon_cp_cmdbuf] *ERROR* bad cmd_type 0 at 0x561e10

>How-To-Repeat:
Load DRI on amd64(others) on the radeon 9200se (RV280) chipset.

Running glxgears produces:
drmCommandWrite: -22
drmRadeonCmdBuffer: -22 (exiting)

>Fix:
N/A
>Release-Note:
>Audit-Trail:

From: John Baldwin <jhb@FreeBSD.org>
To: freebsd-amd64@FreeBSD.org, Adam Gregoire <bsdunx@yahoo.com>
Cc: FreeBSD-gnats-submit@FreeBSD.org, anholt@FreeBSD.org
Subject: Re: amd64/71753: DRI loads but fails to render on Radeon 9200se(RV280).
Date: Wed, 15 Sep 2004 17:24:09 -0400

 On Tuesday 14 September 2004 05:53 pm, Adam Gregoire wrote:
 > >Number:         71753
 > >Category:       amd64
 > >Synopsis:       DRI loads but fails to render on Radeon 9200se(RV280).
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-amd64
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Wed Sep 15 07:10:13 GMT 2004
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Adam Gregoire
 > >Release:        FreeBSD 5.3-BETA4 amd64
 > >Organization:
 >
 > N/A
 >
 > >Environment:
 >
 > System: FreeBSD S01060080c83f4fb0 5.3-BETA4 FreeBSD 5.3-BETA4 #3: Mon Sep
 > 13 03:39:47 EDT 2004 root@S01060080c83f4fb0:/usr/obj/usr/src/sys/OPTMZD
 > amd64
 >
 > $ pkg_info | grep 'dri-'
 > dri-5.0.2,1         OpenGL hardware acceleration drivers for the DRI
 >
 > $pkg_info | grep 'xorg-'
 > xorg-clients-6.7.0_4 X client programs and related files from X.Org
 > xorg-fonts-encodings-6.7.0 X.Org font encoding files
 > xorg-fonts-miscbitmaps-6.7.0 X.Org miscellaneous bitmap fonts
 > xorg-fonts-truetype-6.7.0 X.Org TrueType fonts
 > xorg-libraries-6.7.0_1 X11 libraries and headers from X.Org
 > xorg-server-6.7.0_7 X.Org X server and related programs
 >
 > >Description:
 >
 > $ dmesg | grep agp
 > agp0: <VIA 8385 host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0
 > on pci0
 >
 > $ dmesg | grep drm
 > drm0: <ATI Radeon RV280 9200 SE> port 0xa000-0xa0ff mem
 > 0xfd400000-0xfd40ffff,0xe8000000-0xefffffff irq 16 at device 0.0 on pci1
 > info: [drm] AGP at 0xf8000000 64MB
 > info: [drm] Initialized radeon 1.11.0 20020828 on minor 0
 > info: [drm] Loading R200 Microcode
 >
 > $ glxinfo | grep rendering
 > direct rendering: Yes
 >
 > $ glxgears
 > drmCommandWrite: -22
 > drmRadeonCmdBuffer: -22 (exiting)
 >
 > and the following gets written to syslog:
 > error: [drm:pid5296:radeon_cp_cmdbuf] *ERROR* bad cmd_type 0 at 0x561e10
 >
 > >How-To-Repeat:
 >
 > Load DRI on amd64(others) on the radeon 9200se (RV280) chipset.
 >
 > Running glxgears produces:
 > drmCommandWrite: -22
 > drmRadeonCmdBuffer: -22 (exiting)
 >
 > >Fix:
 >
 > N/A
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 
 Do you have any errors in Xorg.0.log?  Also, did you add an 'AGPSize' option 
 to your Xorg config file to tell it you have a 64MB aperture?  X seems to 
 assume a default size of 8MB unless you explicitly tell it you have more.
 
 -- 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org

From: Eric Anholt <anholt@FreeBSD.org>
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-amd64@FreeBSD.org, Adam Gregoire <bsdunx@yahoo.com>,
	gnats <freebsd-gnats-submit@FreeBSD.ORG>
Subject: Re: amd64/71753: DRI loads but fails to render on Radeon
	9200se(RV280).
Date: Wed, 15 Sep 2004 18:07:52 -0700

 On Wed, 2004-09-15 at 14:24, John Baldwin wrote:
 > Do you have any errors in Xorg.0.log?  Also, did you add an 'AGPSize' option 
 > to your Xorg config file to tell it you have a 64MB aperture?  X seems to 
 > assume a default size of 8MB unless you explicitly tell it you have more.
 
 The AGPSize is just to say how much of the aperture to allocate and bind
 for use.  It turns out that 8MB is all that's really necessary, due to
 poor or nonexistent use of AGP textures, so that basically what gets
 used in AGP are the 3MB of vertex/indirect/ring buffers.
 
 I wasn't previously aware of any 64-bit issues in the Radeon/R200 DRI
 (and some have used these on 64-bit machines before), but to me that
 seems like the most likely reason to find bad command buffers.
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
 
 

From: unixgeek _ <bsdunx@yahoo.com>
To: gnats <freebsd-gnats-submit@FreeBSD.ORG>
Cc: freebsd-amd64@FreeBSD.org, Adam Gregoire <bsdunx@yahoo.com>
Subject: Re: amd64/71753: DRI loads but fails to render on Radeon 9200se(RV280).
Date: Wed, 15 Sep 2004 20:23:42 -0700 (PDT)

 > Do you have any errors in Xorg.0.log?  Also, did you
 > add an 'AGPSize' option 
 > to your Xorg config file to tell it you have a 64MB
 > aperture?  X seems to 
 > assume a default size of 8MB unless you explicitly
 > tell it you have more.
 
 $ grep EE /var/log/Xorg.0.log
         (WW) warning, (EE) error, (NI) not
 implemented, (??) unknown.
 (II) Loading extension MIT-SCREEN-SAVER
 Nothing unusual here.
 
 I also added the following to xorg.conf.
     Option "AGPSize" "64"
 
 DRI still loads, and rendering still fails with same
 error.
 
 Adam Gregoire
 
 
 	
 		
 __________________________________
 Do you Yahoo!?
 New and Improved Yahoo! Mail - 100MB free storage!
 http://promotions.yahoo.com/new_mail 

From: Adam Gregoire <bsdunx@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.ORG
Cc:  
Subject: Re: amd64/71753: DRI loads but fails to render on Radeon 9200se(RV280).
Date: Fri, 17 Sep 2004 16:34:34 -0700 (PDT)

 Well, I have tried playing with all X Options for AGP, tried changing BIOS
 settings, to no effect.
 
 Today I borrowed an ATI Radeon QY RV100 7000/VE and have the same error from
 any program trying to use DRI:
 drmCommandWrite: -22
 drmRadeonCmdBuffer: -22 (exiting)
 
 Now I really am starting to think that it is a 64-bit issue.
 
 Any suggestions?
 
 
 
 		
 __________________________________
 Do you Yahoo!?
 Yahoo! Mail - 50x more storage than other providers!
 http://promotions.yahoo.com/new_mail
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Mon Dec 20 16:27:31 GMT 2004 
State-Changed-Why:  
Fixed in drm_os_freebsd.h commit. 

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