From nobody@FreeBSD.org  Sun Dec 21 10:19:45 2003
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0006716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Dec 2003 10:19:44 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2B88243D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Dec 2003 10:19:43 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id hBLIJhdL094295
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Dec 2003 10:19:43 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id hBLIJgnw094294;
	Sun, 21 Dec 2003 10:19:42 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200312211819.hBLIJgnw094294@www.freebsd.org>
Date: Sun, 21 Dec 2003 10:19:42 -0800 (PST)
From: Michal Pasternak <dotz@irc.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Temporary fix for DRM support for Radeon 9200
X-Send-Pr-Version: www-2.0

>Number:         60474
>Category:       kern
>Synopsis:       Temporary fix for DRM support for Radeon 9200
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 21 10:20:19 PST 2003
>Closed-Date:    Sat May 07 01:07:17 GMT 2005
>Last-Modified:  Sat May 07 01:07:17 GMT 2005
>Originator:     Michal Pasternak
>Release:        4.9-STABLE
>Organization:
Good people with bad reputation
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003     root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
It is said, that currently neither FreeBSD's DRM nor XFree 4.3.0 doesn't support Radeon 9200. As I can succesfully launch XFree86 on my Radeon 9200 with forcing ChipID to 0x4967 or similar, I tried the same thing with FreeBSD's DRM. It works, it renders OpenGL stuff, I have tested it with many OpenGL programs -- no panics, no errors, no coredumps. 
>How-To-Repeat:
Get a system with ATI Radeon 9200 card

      kldload radeon

dmesg will output nothing. This means the card is not supported.

Try that after applying the patch & recompiling kernel modules.
>Fix:
--- sys/dev/drm/radeon_drv.c~   Sat Apr 26 09:05:29 2003
+++ sys/dev/drm/radeon_drv.c    Sun Dec 21 14:02:22 2003
@@ -45,6 +45,7 @@
        {0x1002, 0x4965, 1, "ATI Radeon Ie R250 9000"},
        {0x1002, 0x4966, 1, "ATI Radeon If R250 9000"},
        {0x1002, 0x4967, 1, "ATI Radeon Ig R250 9000"},
+       {0x1002, 0x5961, 1, "ATI Radeon 9200"},
        {0x1002, 0x4C57, 1, "ATI Radeon LW Mobility 7500 M7"},
        {0x1002, 0x4C58, 1, "ATI Radeon LX RV200 Mobility FireGL 7800 M7"},
        {0x1002, 0x4C59, 1, "ATI Radeon LY Mobility M6"},

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-anholt 
Responsible-Changed-By: anholt 
Responsible-Changed-When: Mon Dec 22 00:58:52 PST 2003 
Responsible-Changed-Why:  
Take this as DRM maintainer.  I've got "Merge from DRI CVS" and "Merge DRM from 
-current" on my todo list, but I botched the merge from DRI in my local p4 repo 
and need to figure out how to clean up the mess. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60474 
Responsible-Changed-From-To: freebsd-anholt->anholt 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Mon Dec 29 13:23:47 PST 2003 
Responsible-Changed-Why:  
Correct responsible; the previous one bounces. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=60474 
State-Changed-From-To: open->patched 
State-Changed-By: anholt 
State-Changed-When: Mon Jan 5 20:38:38 PST 2004 
State-Changed-Why:  
Fixed in latest merge to -current, which I expect to MFC soon. 

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

From: Eugene Grosbein <eugen@kuzbass.ru>
To: bug-followup@freebsd.org
Cc: anholt@freebsd.org
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Sun, 25 Jan 2004 14:52:23 +0700

 Hi!
 
 Do you plan to perform MFC of the fix? Are there any troubles with
 it in STABLE?
 
 I'm planning to by Radeon 9200 for my 4.9-STABLE.
 I'll happy to apply the path myself if it works at all.
 
 Eugene
Responsible-Changed-From-To: anholt->freebsd-bugs 
Responsible-Changed-By: anholt 
Responsible-Changed-When: Wed Jan 28 00:48:06 PST 2004 
Responsible-Changed-Why:  
Return this to freebsd-bugs.  I'm leaving for 3 months and won't be doing  
FreeBSD things. 

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

From: Mikhail Teterin <mi+mx@aldan.algebra.com>
To: freebsd-gnats-submit@freebsd.org, dotz@irc.pl
Cc: dri-devel@lists.sourceforge.net
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Fri, 8 Oct 2004 14:17:51 -0400

 Hi, Eric!
 
 Can this be assigned back to you? I have another pair of PCI IDs,
 BTW, and I am sure, there are people with shiny new Radeon-9800 out
 there too... Yours,
 
  -mi
 
 cvs diff: Diffing .
 Index: drm_pciids.h
 ===================================================================
 RCS file: /home/ncvs/src/sys/dev/drm/drm_pciids.h,v
 retrieving revision 1.1
 diff -U2 -r1.1 drm_pciids.h
 --- drm_pciids.h 11 Jun 2004 03:26:59 -0000 1.1
 +++ drm_pciids.h 8 Oct 2004 18:11:39 -0000
 @@ -7,4 +7,6 @@
   {0x1002, 0x4136, 0, "ATI Radeon RS100 IGP 320M"}, \
   {0x1002, 0x4137, 0, "ATI Radeon RS200 IGP"}, \
 + {0x1002, 0x4152, 0, "ATI Radeon RV350 9600"}, \
 + {0x1002, 0x4172, 0, "ATI Radeon RV350 9600 (Secondary)"}, \
   {0x1002, 0x4237, 0, "ATI Radeon RS250 IGP"}, \
   {0x1002, 0x4242, 0, "ATI Radeon BB R200 AIW 8500DV"}, \
 

From: Eric Anholt <eta@lclark.edu>
To: Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc: gnats <freebsd-gnats-submit@FreeBSD.ORG>, dotz@irc.pl,
	DRI <dri-devel@lists.sourceforge.net>
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Fri, 08 Oct 2004 13:13:08 -0700

 On Fri, 2004-10-08 at 11:17, Mikhail Teterin wrote:
 > Hi, Eric!
 > 
 > Can this be assigned back to you? I have another pair of PCI IDs,
 > BTW, and I am sure, there are people with shiny new Radeon-9800 out
 > there too... Yours,
 
 This is not a bug.  The DRM does not support r300-series hardware. 
 Among other things, trying to initialize it with r100 or r200 microcode
 will probably make it explode in your face.  Now, if this was part of an
 attempt at getting http://r300.sf.net/ stuff working on FreeBSD, that'd
 be another thing :)
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
 
 

From: Vladimir Dergachev <volodya@mindspring.com>
To: Eric Anholt <eta@lclark.edu>
Cc: Mikhail Teterin <mi+mx@aldan.algebra.com>,
	gnats <freebsd-gnats-submit@FreeBSD.ORG>, dotz@irc.pl,
	DRI <dri-devel@lists.sourceforge.net>
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Fri, 8 Oct 2004 16:22:31 -0400 (EDT)

 On Fri, 8 Oct 2004, Eric Anholt wrote:
 
 > On Fri, 2004-10-08 at 11:17, Mikhail Teterin wrote:
 >> Hi, Eric!
 >>
 >> Can this be assigned back to you? I have another pair of PCI IDs,
 >> BTW, and I am sure, there are people with shiny new Radeon-9800 out
 >> there too... Yours,
 >
 > This is not a bug.  The DRM does not support r300-series hardware.
 > Among other things, trying to initialize it with r100 or r200 microcode
 > will probably make it explode in your face.  Now, if this was part of an
 > attempt at getting http://r300.sf.net/ stuff working on FreeBSD, that'd
 > be another thing :)
 
 http://r300.sf.net/ already works on BSD. You just need to pass an option 
 to r300_demo to find the BSD analog of /dev/dri/card0 (see README).
 
                       best
 
                          Vladimir Dergachev
 
 >
 > -- 
 > Eric Anholt                                eta@lclark.edu
 > http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
 >
 >
 >
 >
 > -------------------------------------------------------
 > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 > Use IT products in your business? Tell us what you think of them. Give us
 > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
 > http://productguide.itmanagersjournal.com/guidepromo.tmpl
 > --
 > _______________________________________________
 > Dri-devel mailing list
 > Dri-devel@lists.sourceforge.net
 > https://lists.sourceforge.net/lists/listinfo/dri-devel
 >

From: Mikhail Teterin <mi+mxmoz@aldan.algebra.com>
To: Eric Anholt <eta@lclark.edu>
Cc: gnats <freebsd-gnats-submit@FreeBSD.ORG>, dotz@irc.pl,
	DRI <dri-devel@lists.sourceforge.net>
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Fri, 08 Oct 2004 18:14:37 -0400

 Eric Anholt wrote:
 
 >On Fri, 2004-10-08 at 11:17, Mikhail Teterin wrote:
 >  
 >
 >>Hi, Eric!
 >>
 >>Can this be assigned back to you? I have another pair of PCI IDs,
 >>BTW, and I am sure, there are people with shiny new Radeon-9800 out
 >>there too... Yours,
 >>    
 >>
 >
 >This is not a bug.  The DRM does not support r300-series hardware. 
 >Among other things, trying to initialize it with r100 or r200 microcode
 >will probably make it explode in your face.  Now, if this was part of an
 >attempt at getting http://r300.sf.net/ stuff working on FreeBSD, that'd
 >be another thing :)
 >
 No, nothing exploded, but the Xorg server insists on NOT using direct 
 rendering on Radeon-9500/9700 cards.
 Which is me :-( The card works fine and I got it to work in dual-head 
 mode, but OpenGL performance remains miserable.
 
 Not sure, if upgrading to Xorg-7.8.1 would help me, but eager to try. 
 Would you have diffs for the ports? Thanks!
 
     -mi

From: Eric Anholt <eta@lclark.edu>
To: Mikhail Teterin <mi+mxmoz@aldan.algebra.com>
Cc: gnats <freebsd-gnats-submit@FreeBSD.ORG>, dotz@irc.pl,
	DRI <dri-devel@lists.sourceforge.net>
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Fri, 08 Oct 2004 15:52:03 -0700

 On Fri, 2004-10-08 at 15:14, Mikhail Teterin wrote:
 > Eric Anholt wrote:
 > 
 > >On Fri, 2004-10-08 at 11:17, Mikhail Teterin wrote:
 > >  
 > >
 > >>Hi, Eric!
 > >>
 > >>Can this be assigned back to you? I have another pair of PCI IDs,
 > >>BTW, and I am sure, there are people with shiny new Radeon-9800 out
 > >>there too... Yours,
 > >>    
 > >>
 > >
 > >This is not a bug.  The DRM does not support r300-series hardware. 
 > >Among other things, trying to initialize it with r100 or r200 microcode
 > >will probably make it explode in your face.  Now, if this was part of an
 > >attempt at getting http://r300.sf.net/ stuff working on FreeBSD, that'd
 > >be another thing :)
 > >
 > No, nothing exploded, but the Xorg server insists on NOT using direct 
 > rendering on Radeon-9500/9700 cards.
 > Which is me :-( The card works fine and I got it to work in dual-head 
 > mode, but OpenGL performance remains miserable.
 > 
 > Not sure, if upgrading to Xorg-7.8.1 would help me, but eager to try. 
 > Would you have diffs for the ports? Thanks!
 
 There is no open-source DRI driver for the r300 (9500+) series cards,
 which is why the X Server doesn't try to enable DRI.  r300.sf.net is a
 project to work on that, but they aren't to the point of accelerating
 anything yet afaik -- just REing.
 
 (also, 6.8.1 is the latest X.Org release)
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
 
 

From: Mikhail Teterin <mi+mxmoz@aldan.algebra.com>
To: Vladimir Dergachev <volodya@mindspring.com>
Cc: Eric Anholt <eta@lclark.edu>,
	Mikhail Teterin <mi+mx@aldan.algebra.com>,
	gnats <freebsd-gnats-submit@FreeBSD.ORG>, dotz@irc.pl,
	DRI <dri-devel@lists.sourceforge.net>
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Fri, 08 Oct 2004 18:58:46 -0400

 This is a multi-part message in MIME format.
 --------------080409090205000400060509
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Vladimir Dergachev wrote:
 
 >
 >
 > On Fri, 8 Oct 2004, Eric Anholt wrote:
 >
 >> On Fri, 2004-10-08 at 11:17, Mikhail Teterin wrote:
 >>
 >>> Hi, Eric!
 >>>
 >>> Can this be assigned back to you? I have another pair of PCI IDs,
 >>> BTW, and I am sure, there are people with shiny new Radeon-9800 out
 >>> there too... Yours,
 >>
 >>
 >> This is not a bug.  The DRM does not support r300-series hardware.
 >> Among other things, trying to initialize it with r100 or r200 microcode
 >> will probably make it explode in your face.  Now, if this was part of an
 >> attempt at getting http://r300.sf.net/ stuff working on FreeBSD, that'd
 >> be another thing :)
 >
 >
 > http://r300.sf.net/ already works on BSD. You just need to pass an 
 > option to r300_demo to find the BSD analog of /dev/dri/card0 (see 
 > README).
 >
 >                      best
 >
 >                         Vladimir Dergachev
 
 Ok, should the following help get DRI to work, then? Thanks!
 
     -mi
 
 --------------080409090205000400060509
 Content-Type: text/plain;
  name="xorg-server-diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="xorg-server-diff"
 
 ? work
 Index: Makefile
 ===================================================================
 RCS file: /home/pcvs/ports/x11-servers/xorg-server/Makefile,v
 retrieving revision 1.17
 diff -U2 -r1.17 Makefile
 --- Makefile	26 Sep 2004 14:18:42 -0000	1.17
 +++ Makefile	8 Oct 2004 22:57:38 -0000
 @@ -8,5 +8,5 @@
  PORTNAME=	server
  PORTVERSION=	6.7.0
 -PORTREVISION=	9
 +PORTREVISION=	10
  CATEGORIES=	x11-servers
  MASTER_SITES=	http://freedesktop.org/~xorg/X11R6.7.0/src/ \
 @@ -17,4 +17,7 @@
  		X11R6.7.0-src3.tar.gz
  
 +PATCH_SITES=	http://r300.sourceforge.net/files/
 +PATCHFILES=	ati.patch.3
 +
  MAINTAINER=	x11@FreeBSD.org
  COMMENT=	X.Org X server and related programs
 @@ -72,4 +75,7 @@
  XMAN_DIRS=	programs/Xserver
  
 +PATCH_DIST_ARGS=-b ${DISTORIG} -E -p0 \
 +		-d ${WRKSRC}/programs/Xserver/hw/xfree86/drivers/ati
 +
  NOT_FOR_ARCHS=	ia64
  .include "${.CURDIR}/../../x11-servers/xorg-server/Makefile.inc"
 @@ -86,5 +92,5 @@
  MAN4+=		vesa.4
  .endif
 -		
 +
  .if ${ARCH} == ia64
  PLIST_SUB+=	IA64_NA="@comment "
 Index: distinfo
 ===================================================================
 RCS file: /home/pcvs/ports/x11-servers/xorg-server/distinfo,v
 retrieving revision 1.1
 diff -U2 -r1.1 distinfo
 --- distinfo	10 May 2004 05:04:59 -0000	1.1
 +++ distinfo	8 Oct 2004 22:57:38 -0000
 @@ -1,8 +1,6 @@
  MD5 (xorg/X11R6.7.0-src1.tar.gz) = 22465263bae7a2e9f5ad77e172cf1ab5
  SIZE (xorg/X11R6.7.0-src1.tar.gz) = 30039655
 -MD5 (xorg/X11R6.7.0-src2.tar.gz) = 6ef4e8f7647a28f080c10ea1bcf01f79
 -SIZE (xorg/X11R6.7.0-src2.tar.gz) = 5739983
  MD5 (xorg/X11R6.7.0-src3.tar.gz) = 4c7144786522bbce383b21ace72bf669
  SIZE (xorg/X11R6.7.0-src3.tar.gz) = 10855793
 -MD5 (xorg/Wraphelp2.gz) = bd1910492087442288d885412e2e5535
 -SIZE (xorg/Wraphelp2.gz) = 3376
 +MD5 (xorg/ati.patch.3) = c400bb83ec811a9722c02fcc3ea42ac4
 +SIZE (xorg/ati.patch.3) = 5682
 
 --------------080409090205000400060509--

From: Vladimir Dergachev <volodya@mindspring.com>
To: Mikhail Teterin <mi+mxmoz@aldan.algebra.com>
Cc: Eric Anholt <eta@lclark.edu>,
	Mikhail Teterin <mi+mx@aldan.algebra.com>,
	gnats <freebsd-gnats-submit@FreeBSD.ORG>, dotz@irc.pl,
	DRI <dri-devel@lists.sourceforge.net>
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Fri, 8 Oct 2004 21:28:20 -0400 (EDT)

 On Fri, 8 Oct 2004, Mikhail Teterin wrote:
 
 > Vladimir Dergachev wrote:
 >
 >> 
 >> 
 >> On Fri, 8 Oct 2004, Eric Anholt wrote:
 >> 
 >>> On Fri, 2004-10-08 at 11:17, Mikhail Teterin wrote:
 >>> 
 >>>> Hi, Eric!
 >>>> 
 >>>> Can this be assigned back to you? I have another pair of PCI IDs,
 >>>> BTW, and I am sure, there are people with shiny new Radeon-9800 out
 >>>> there too... Yours,
 >>> 
 >>> 
 >>> This is not a bug.  The DRM does not support r300-series hardware.
 >>> Among other things, trying to initialize it with r100 or r200 microcode
 >>> will probably make it explode in your face.  Now, if this was part of an
 >>> attempt at getting http://r300.sf.net/ stuff working on FreeBSD, that'd
 >>> be another thing :)
 >> 
 >> 
 >> http://r300.sf.net/ already works on BSD. You just need to pass an option 
 >> to r300_demo to find the BSD analog of /dev/dri/card0 (see README).
 >> 
 >>                      best
 >> 
 >>                         Vladimir Dergachev
 >
 > Ok, should the following help get DRI to work, then? Thanks!
 
 Mikhail, ati.patch.3 is patch for *2D* driver to enable DRI.
 
 However, at the moment, there is *NO* 3d driver for R300 cards except the 
 binary only ati one.
 
 So yes, the DRI will be enabled. But, NO, you will not get 3d rendering 
 because of this patch, only r300_demo will work.
 
                          best
 
                            Vladimir Dergachev
 
 >
 >   -mi
 >

From: Mikhail Teterin <mi@corbulon.video-collage.com>
To: Vladimir Dergachev <volodya@mindspring.com>
Cc: eta@lclark.edu, freebsd-gnats-submit@FreeBSD.ORG, dotz@irc.pl,
	dri-devel@lists.sourceforge.net
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Sat, 9 Oct 2004 11:28:48 -0400 (EDT)

 > Mikhail, ati.patch.3 is patch for *2D* driver to enable DRI.
 > 
 > However, at the moment, there is *NO* 3d driver for R300 cards except the 
 > binary only ati one.
 > 
 > So yes, the DRI will be enabled. But, NO, you will not get 3d rendering 
 > because of this patch, only r300_demo will work.
 
 Even that would be progress, no? Currently, when I move the xterm window,
 I can notice the screen flicker -- on Radeon 9600 and a 3GHz processor...
 
 Thanks! Yours,
 
 	-mi

From: Vladimir Dergachev <volodya@mindspring.com>
To: Mikhail Teterin <mi@corbulon.video-collage.com>
Cc: eta@lclark.edu, freebsd-gnats-submit@FreeBSD.ORG, dotz@irc.pl,
	dri-devel@lists.sourceforge.net
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Sat, 9 Oct 2004 11:56:18 -0400 (EDT)

 >> because of this patch, only r300_demo will work.
 >
 > Even that would be progress, no? Currently, when I move the xterm window,
 > I can notice the screen flicker -- on Radeon 9600 and a 3GHz processor...
 
 You would get slightly faster 2d rendering, but non-CP 2d should be plenty 
 fast for moving xterm.
 
 What kind of flicker is this ? Are you using a panel or a CRT ?
 
                          best
 
                            Vladimir Dergachev
 
 >
 > Thanks! Yours,
 >
 > 	-mi
 >

From: Mikhail Teterin <mi@corbulon.video-collage.com>
To: volodya@mindspring.com
Cc: eta@lclark.edu, freebsd-gnats-submit@FreeBSD.ORG, dotz@irc.pl,
	dri-devel@lists.sourceforge.net
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Sun, 10 Oct 2004 01:15:38 -0400 (EDT)

 > > Ok, should the following help get DRI to work, then? Thanks!
 > 
 > Mikhail, ati.patch.3 is patch for *2D* driver to enable DRI.
 > 
 > However, at the moment, there is *NO* 3d driver for R300 cards except
 > the binary only ati one.
 >
 > So yes, the DRI will be enabled. But, NO, you will not get 3d
 > rendering because of this patch, only r300_demo will work.
 
 Actually, wouldn't that still be progress? Currently, even when I move
 the xterm window, I can see flicker -- with Radeon9600 and Pentium at
 over 3GHz... Thanks!
 
 BTW, did anyone attempt to make the Linux driver work on FreeBSD? It
 seems to start for me, but I can't get the second head to work with
 it for some reason (it just stays off)...
 
 	-mi

From: Mikhail Teterin <mi@corbulon.video-collage.com>
To: volodya@mindspring.com
Cc: eta@lclark.edu, freebsd-gnats-submit@FreeBSD.ORG, dotz@irc.pl,
	dri-devel@lists.sourceforge.net
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Mon, 11 Oct 2004 15:22:22 -0400 (EDT)

 > On Fri, 8 Oct 2004, Eric Anholt wrote:
 > 
 > > On Fri, 2004-10-08 at 11:17, Mikhail Teterin wrote:
 > >> Hi, Eric!
 > >>
 > >> Can this be assigned back to you? I have another pair of PCI IDs,
 > >> BTW, and I am sure, there are people with shiny new Radeon-9800 out
 > >> there too... Yours,
 > >
 > > This is not a bug.  The DRM does not support r300-series hardware.
 > > Among other things, trying to initialize it with r100 or r200 microcode
 > > will probably make it explode in your face.  Now, if this was part of an
 > > attempt at getting http://r300.sf.net/ stuff working on FreeBSD, that'd
 > > be another thing :)
 > 
 > http://r300.sf.net/ already works on BSD. You just need to pass an option 
 > to r300_demo to find the BSD analog of /dev/dri/card0 (see README).
 
 Ok, I rebuilt my xorg-server port with the ati.patch.3. Now, when
 it starts up, it automatically loads the radeon.ko and then says:
 
 [...]
 (WW) RADEON(0): Direct rendering support is highly experimental for Radeon 9500/
 9700 and newer cards
 drmOpenDevice: minor is 0
 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is -1, (No such file or directory)   
 drmOpenDevice: open result is -1, (No such file or directory)
 drmOpenDevice: Open failed
 drmOpenDevice: minor is 0
 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is -1, (No such file or directory)
 drmOpenDevice: open result is -1, (No such file or directory)
 drmOpenDevice: Open failed
 drmOpenDevice: minor is 0
 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is 13, (OK)
 drmGetBusid returned ''
 (II) RADEON(0): [drm] loaded kernel module for "radeon" driver
 (II) RADEON(0): [drm] created "radeon" driver at busid "PCI:1:0:0"
 (II) RADEON(0): [drm] added 8192 byte SAREA at 0xc6ba6000
 (II) RADEON(0): [drm] mapped SAREA 0xc6ba6000 to 0x28492000
 (II) RADEON(0): [drm] framebuffer handle = 0xe0000000
 (II) RADEON(0): [drm] added 1 reserved context for kernel
 (EE) RADEON(0): [dri] RADEONDRIScreenInit failed because of a version mismatch.
 [dri] radeon.o kernel module version is 1.11.0 but version 1.11.1 or newer is needed.
 [dri] Disabling DRI.
 [...]
 
 Is there a patch for FreeBSD's /sys/dev/drm somewhere? Thanks!
 
 	-mi

From: Vladimir Dergachev <volodya@mindspring.com>
To: Mikhail Teterin <mi@corbulon.video-collage.com>
Cc: eta@lclark.edu, freebsd-gnats-submit@FreeBSD.ORG, dotz@irc.pl,
	dri-devel@lists.sourceforge.net
Subject: Re: kern/60474: Temporary fix for DRM support for Radeon 9200
Date: Mon, 11 Oct 2004 20:39:48 -0400 (EDT)

 > (II) RADEON(0): [drm] added 1 reserved context for kernel
 > (EE) RADEON(0): [dri] RADEONDRIScreenInit failed because of a version mismatch.
 > [dri] radeon.o kernel module version is 1.11.0 but version 1.11.1 or newer is needed.
 > [dri] Disabling DRI.
 > [...]
 >
 > Is there a patch for FreeBSD's /sys/dev/drm somewhere? Thanks!
 
 You need the drm patch from r300.sf.net - just bump the patch level number 
 to make it pass version check. Note that the patch applies to drm/shared
 and is thus propagated to BSD.
 
 Also, the newer Jon's work already has the patch applied, you might try 
 adapting this to BSD.
 
                          best
 
                              Vladimir Dergachev
 
 
 >
 > 	-mi
 >
 >
 > -------------------------------------------------------
 > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 > Use IT products in your business? Tell us what you think of them. Give us
 > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
 > http://productguide.itmanagersjournal.com/guidepromo.tmpl
 > --
 > _______________________________________________
 > Dri-devel mailing list
 > Dri-devel@lists.sourceforge.net
 > https://lists.sourceforge.net/lists/listinfo/dri-devel
 >
State-Changed-From-To: patched->closed 
State-Changed-By: anholt 
State-Changed-When: Sat May 7 01:06:39 GMT 2005 
State-Changed-Why:  
Closing, as I don't intend to make more DRM changes to 4.x.  Please update to 
5-stable for current DRM sources. 

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