Re: kern/60474: Temporary fix for DRM support for Radeon 9200

2004-10-11 Thread Mikhail Teterin
 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 = 0xe000
(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


---
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: kern/60474: Temporary fix for DRM support for Radeon 9200

2004-10-09 Thread Mikhail Teterin
 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


---
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: kern/60474: Temporary fix for DRM support for Radeon 9200

2004-10-08 Thread Mikhail Teterin
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 - 1.1
+++ drm_pciids.h 8 Oct 2004 18:11:39 -
@@ -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}, \



---
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: kern/60474: Temporary fix for DRM support for Radeon 9200

2004-10-08 Thread Mikhail Teterin
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
? work
Index: Makefile
===
RCS file: /home/pcvs/ports/x11-servers/xorg-server/Makefile,v
retrieving revision 1.17
diff -U2 -r1.17 Makefile
--- Makefile26 Sep 2004 14:18:42 -  1.17
+++ Makefile8 Oct 2004 22:57:38 -
@@ -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=[EMAIL PROTECTED]
 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
--- distinfo10 May 2004 05:04:59 -  1.1
+++ distinfo8 Oct 2004 22:57:38 -
@@ -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


Re: kern/60474: Temporary fix for DRM support for Radeon 9200

2004-10-08 Thread Mikhail Teterin
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
---
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: [Dri-devel] the state of Parhelia on FreeBSD

2003-11-14 Thread Mikhail Teterin
On Wednesday 12 November 2003 09:48 am, Alex Deucher wrote:
= I doubt many developers are going to work on it because the rest of
= the drivers are closed source and few if any developers have parhelia
= hardware. you'd probably be best off trying to port it yourself. you
= can look at how the drm modules differ from linux to freebsd for other
= drivers (radeon, mga, etc.) and make the appropriate changes.

I looked at it -- it is not fun. Seems to require knowledge of and
inclination towards the hardware drivers in general and Linux ones in
particular. I have neither towards either, so to speak.

I can donate a card to anyone willing to work on the driver, though.
Any takers?

Yours,

-mi




---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Dri-devel] the state of Parhelia on FreeBSD

2003-11-12 Thread Mikhail Teterin
Hello!

Matrox offers the sources for the Linux kernel part of mtx available.

Has anyone looked into morphing those into the drm style, so an mtx.ko
can be built on FreeBSD? It does not look like a big deal for someone,
who knows the API already...

Simply copying the mtx_drv.o into lib/modules/drivers is enough for
the server to start, but, I suspect, some features are not available,
because things aren't as fast as I'd expect and the x11perf's results
are disappointing, compared even to a humble ``Rage 3D LT Pro AGP''.

Last time this question was asked, Eric A. replied, that noone is
looking into FreeBSD support for mtx, but that was a while ago...

Thanks!

-mi



---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel