Re: [gentoo-user] 3d rendering with dri radeon

2006-03-01 Thread Bruce Burden
On Tue, Feb 28, 2006 at 09:36:05PM +0100, Benno Schulenberg wrote:
 Richard Fish wrote:
  On 2/25/06, Bruce Burden [EMAIL PROTECTED] wrote:
   BoardName   RV350 [MOBILITY RADEON X600]
 
  The opensource xorg/kernel drivers do not support DRI with this
  chip.
 
 But they are working on it.  If someone wishes to try it out, 
 upgrade to modular Xorg (7.0), and get the drivers from CVS.
 See http://dri.freedesktop.org/wiki/Building.
 
What the heck, I have nothing to lose, since the
fglrx driver hangs xdm and anything else that uses it
(glx*), and the current open doesn't support the chip...

My real issue is that fglrx worked under Suse 9.2, 
and not under Gentoo. But, no, I am NOT going back. Try
installing xfishtank under Suse...

Bruce
-- 

  I like bad! Bruce BurdenAustin, TX.
- Thuganlitha
The Power and the Prophet
Robert Don Hughes

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-03-01 Thread Bob Sanders
On Wed, 1 Mar 2006 10:30:48 -0600
Bruce Burden [EMAIL PROTECTED] wrote:

 On Tue, Feb 28, 2006 at 09:36:05PM +0100, Benno Schulenberg wrote:

   My real issue is that fglrx worked under Suse 9.2, 
 and not under Gentoo. But, no, I am NOT going back. Try
 installing xfishtank under Suse...
 

By chance have you insured that - 

/usr/lib/libGL.la is symlinked to /usr/lib/opengl/ati/lib/libGL.la?

Just asking as neither opengl-update nor eselect opengl set will create the
link.

Bob
-  
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-28 Thread Bo Andresen
On Saturday 25 February 2006 18:50, Bo Andresen wrote:
 On Saturday 25 February 2006 00:36, Benno Schulenberg wrote:
  But it's working now.  So tell us how many frames glxgears is doing
  now, with and without radeon.  :)

 Actually the results using dri is worse than the results without dri in
 terms of frame rates. Without dri I get something like 250 FPS. With dri I
 get something like 228 FPS. The great difference though is when looking at
 the X cpu usage. glxgears uses around 0.5 % with or without dri. But
 without dri X uses 92% of the cpu resources. With dri X uses between 0.5
 and 1% cpu. So obviously dri is preferable... ;)

Either something is seriously wrong with my settings somehow or x11-drm is 
really crappy. A have no idea.. Fact is yesterday I was forces to boot back 
in to my previous kernel since the one I created for x11-drm (i.e. with dri 
disabled in the kernel configuration) failed me. The previous kernel had dri 
compiled as modules and I have never had direct rendering working with it... 
until now..

I am very surprised by this but it turns out direct rendering is working now 
with the kernel modules. And the performance is quite a bit better than 
before:

~ $ glxinfo | grep dir
direct rendering: Yes

~ $ glxgears
6057 frames in 5.0 seconds = 1211.400 FPS
7273 frames in 5.0 seconds = 1454.600 FPS
7268 frames in 5.0 seconds = 1453.600 FPS
7275 frames in 5.0 seconds = 1455.000 FPS
7274 frames in 5.0 seconds = 1454.800 FPS
7275 frames in 5.0 seconds = 1455.000 FPS
7268 frames in 5.0 seconds = 1453.600 FPS
7275 frames in 5.0 seconds = 1455.000 FPS
7272 frames in 5.0 seconds = 1454.400 FPS
7201 frames in 5.0 seconds = 1440.200 FPS
7259 frames in 5.0 seconds = 1451.800 FPS
7270 frames in 5.0 seconds = 1454.000 FPS
7272 frames in 5.0 seconds = 1454.400 FPS

I am clueless as to why this is working now when it wasn't before...

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-28 Thread Bo Andresen
On Tuesday 28 February 2006 13:13, Bo Andresen wrote:
 I am very surprised by this but it turns out direct rendering is working
 now with the kernel modules. And the performance is quite a bit better than
 before:
[SNIP]

Well, when I conducted the tests that yielded a performance of 228 FPS with 
dri I forgot that I had [EMAIL PROTECTED] running in the background. This makes 
the whole 
difference in performance. By starting that service I get down to the same 
lousy framerates with dri from the kernel and by stopping it again the 
performance goes up again.

So all in all the performance without [EMAIL PROTECTED] and with dri is 5-6 
times better 
without [EMAIL PROTECTED] and without dri.

 I am clueless as to why this is working now when it wasn't before...

This still does not explain why this is working now when it wasn't before I 
compiled a kernel without dri and emerged x11-drm. But hey, it works... ;)

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-28 Thread Benno Schulenberg
Bo Andresen wrote:
 The previous kernel had dri compiled as
 modules and I have never had direct rendering working with it...
 until now..

 I am very surprised by this but it turns out direct rendering is
 working now with the kernel modules.

Are you certain that the radeon module being used is the one from 
that old kernel and not the one from x11-drm?  If not that, maybe 
you changed something in xorg.conf?  What versions of kernel, BTW?

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-28 Thread Benno Schulenberg
Richard Fish wrote:
 On 2/25/06, Bruce Burden [EMAIL PROTECTED] wrote:
  BoardName   RV350 [MOBILITY RADEON X600]

 The opensource xorg/kernel drivers do not support DRI with this
 chip.

But they are working on it.  If someone wishes to try it out, 
upgrade to modular Xorg (7.0), and get the drivers from CVS.
See http://dri.freedesktop.org/wiki/Building.

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-28 Thread Bo Andresen
On Tuesday 28 February 2006 21:31, Benno Schulenberg wrote:
 Bo Andresen wrote:
  The previous kernel had dri compiled as
  modules and I have never had direct rendering working with it...
  until now..
 
  I am very surprised by this but it turns out direct rendering is
  working now with the kernel modules.

 Are you certain that the radeon module being used is the one from
 that old kernel and not the one from x11-drm?  

I am very certain... but then again, I've been so before in this thread and 
yet been terribly wrong. Do you think there is any way to check it? Other 
than by compiling a new kernel with the same kernel configuration.

 If not that, maybe 
 you changed something in xorg.conf?  

Sad to say I don't remember anymore.

 What versions of kernel, BTW? 

Kernel version has not changed - 2.6.15-r1.

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-28 Thread Benno Schulenberg
Bo Andresen wrote:
 On Tuesday 28 February 2006 21:31, Benno Schulenberg wrote:
  Are you certain that the radeon module being used is the one
  from that old kernel and not the one from x11-drm?

 I am very certain... but then again, I've been so before in this
 thread and yet been terribly wrong. Do you think there is any way
 to check it?

Yes.  Unmerge x11-drm, reboot, and see if it still works.  :)

 Kernel version has not changed - 2.6.15-r1.

Yeah, then it's the x11-drm radeon module you're using, not the one 
from the kernel.  If it had been a diffent version (2.6.14, say), 
the module would have been in a different subdir in /lib/modules and 
wouldn't get used.

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-28 Thread Bo Andresen
While the two kernels are the same version from portage they have of course 
different EXTRAVERSION. For the kernel I compiled for dri I simply added 
'-dri' to EXTRAVERSION. So when running uname -r it yielded 2.6.15-r1-dri. 
The previous kernel which I am running now lacks the '-dri'.

On Tuesday 28 February 2006 23:16, Benno Schulenberg wrote:
 Bo Andresen wrote:
  On Tuesday 28 February 2006 21:31, Benno Schulenberg wrote:
   Are you certain that the radeon module being used is the one
   from that old kernel and not the one from x11-drm?
 
  I am very certain... but then again, I've been so before in this
  thread and yet been terribly wrong. Do you think there is any way
  to check it?

 Yes.  Unmerge x11-drm, reboot, and see if it still works.  :)

Unmerging x11-drm does not remove the kernel due to CONFIG_PROTECT.

--- cfgpro obj /lib/modules/2.6.15-gentoo-r1-dri/x11-drm/radeon.ko
--- cfgpro obj /lib/modules/2.6.15-gentoo-r1-dri/x11-drm/r128.ko
--- cfgpro obj /lib/modules/2.6.15-gentoo-r1-dri/x11-drm/mach64.ko
--- cfgpro obj /lib/modules/2.6.15-gentoo-r1-dri/x11-drm/drm.ko
--- cfgpro dir /lib/modules/2.6.15-gentoo-r1-dri/x11-drm

I do, however, believe that this output proves that I am not running the 
x11-drm modules since it does contain '-dri'.

  Kernel version has not changed - 2.6.15-r1.

 Yeah, then it's the x11-drm radeon module you're using, not the one
 from the kernel.  If it had been a diffent version (2.6.14, say),
 the module would have been in a different subdir in /lib/modules and
 wouldn't get used.

I'm not really sure what you by this. Why does that mean that I'm using the 
x11-drm modules?

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-25 Thread Benno Schulenberg
Bo Andresen wrote:
 Is there a way to disable dri for this test without restarting X?

Good question.  I don't know.  What I do is simply move the driver 
in /usr/lib/modules/dri/ out of the way, or renaming it temporarily 
(to say NOTradeon_dri.so).

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-25 Thread Benno Schulenberg
Bruce Burden wrote:
 # lsmod
 Module  Size  Used by
 radeon 98464  0
 drm61592  1 radeon
 agpgart27216  1 drm

There should also be an agp module specific for your chipset.

 [fglrx:firegl_stub_register] *ERROR* Unable to the open some
 already present DRM kernel module!

 So, what am I doing wrong?

You need to choose what you want to use: either the open-source 
radeon driver (x11-drm), or the closed source fglrx (ati-drivers).

 The drm module seems to be the problem child, once I added that,
 fglrx got tempermental...

As far as I know fglrx contains its own drm.

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-25 Thread Bo Andresen
On Saturday 25 February 2006 15:03, Benno Schulenberg wrote:
 Bo Andresen wrote:
  Is there a way to disable dri for this test without restarting X?

 Good question.  I don't know.  What I do is simply move the driver
 in /usr/lib/modules/dri/ out of the way, or renaming it temporarily
 (to say NOTradeon_dri.so).

That doesn't work for me. But moving /usr/lib/modules/dri/r200_dri.so does. ;) 
Moving the entire directory would of course work for everyone...

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-25 Thread Bo Andresen
On Saturday 25 February 2006 00:36, Benno Schulenberg wrote:
 But it's working now.  So tell us how many frames glxgears is doing
 now, with and without radeon.  :)

Actually the results using dri is worse than the results without dri in terms 
of frame rates. Without dri I get something like 250 FPS. With dri I get 
something like 228 FPS. The great difference though is when looking at the X 
cpu usage. glxgears uses around 0.5 % with or without dri. But without dri X 
uses 92% of the cpu resources. With dri X uses between 0.5 and 1% cpu. So 
obviously dri is preferable... ;)

Listed the output below if anyone is interested.

~$ glxinfo | grep dir
direct rendering: No
OpenGL renderer string: Mesa GLX Indirect
~$ glxgears
792 frames in 5.0 seconds = 158.400 FPS
1945 frames in 5.0 seconds = 389.000 FPS
1847 frames in 5.0 seconds = 369.400 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1138 frames in 5.0 seconds = 227.600 FPS
1139 frames in 5.0 seconds = 227.800 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1138 frames in 5.0 seconds = 227.600 FPS
1139 frames in 5.0 seconds = 227.800 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1265 frames in 5.0 seconds = 253.000 FPS
1138 frames in 5.0 seconds = 227.600 FPS

X usage ~92%

~$ glxinfo | grep dir
direct rendering: Yes
~$ glxgears
1035 frames in 5.0 seconds = 207.000 FPS
1162 frames in 5.0 seconds = 232.400 FPS
1155 frames in 5.0 seconds = 231.000 FPS
1143 frames in 5.0 seconds = 228.600 FPS
844 frames in 5.0 seconds = 168.800 FPS
1145 frames in 5.0 seconds = 229.000 FPS
1135 frames in 5.0 seconds = 227.000 FPS
1164 frames in 5.0 seconds = 232.800 FPS
1144 frames in 5.0 seconds = 228.800 FPS
627 frames in 5.0 seconds = 125.400 FPS
1048 frames in 5.0 seconds = 209.600 FPS
1148 frames in 5.0 seconds = 229.600 FPS
1141 frames in 5.0 seconds = 228.200 FPS
1057 frames in 5.0 seconds = 211.400 FPS
1077 frames in 5.0 seconds = 215.400 FPS
1137 frames in 5.0 seconds = 227.400 FPS

X usage: 0.5-1%

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-25 Thread Bruce Burden


   Okay, I have decided to use the xorg DRM module. However, I am
   still doing something wrong:

name of display: tigerprowl:0.0
Xlib:  extension XFree86-DRI missing on display :0.0.
display: tigerprowl:0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:

   I am not sure what this means, however, as:

(II) LoadModule: extmod
(II) Loading /usr/lib/modules/extensions/libextmod.a
(II) Module extmod: vendor=X.Org Foundation
compiled for 6.8.2, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: dri
(II) Loading /usr/lib/modules/extensions/libdri.a
(II) Module dri: vendor=X.Org Foundation
compiled for 6.8.2, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading sub module drm
(II) LoadModule: drm
(II) Loading /usr/lib/modules/linux/libdrm.a
(II) Module drm: vendor=X.Org Foundation
compiled for 6.8.2, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension XFree86-DRI
(II) LoadModule: dbe
(II) Loading /usr/lib/modules/extensions/libdbe.a
(II) Module dbe: vendor=X.Org Foundation
compiled for 6.8.2, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.2
(II) Loading extension DOUBLE-BUFFER


The Xorg.0.log file shows what seems to be the appropriate DRI module
being loaded.

I have:

Section Device
Identifier  X600
Driver  radeon
VendorName  ATI Technologies Inc
BoardName   RV350 [MOBILITY RADEON X600]
BusID   PCI:1:0:0
EndSection

for the xorg.conf entry. Should it be ati?


# lsmod
Module  Size  Used by
radeon 98464  0 
drm61592  1 radeon
intel_agp  18332  1 
agpgart27216  2 drm,intel_agp
bluetooth  39652  0 
libcrc32c   2816  0 
crc_ccitt   2176  0

I assume intel_agp is appropriate for the 915 chipset?

Thank you,
Bruce
-- 

  I like bad! Bruce BurdenAustin, TX.
- Thuganlitha
The Power and the Prophet
Robert Don Hughes

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-25 Thread Bo Andresen

On Sunday 26 February 2006 05:02, Bruce Burden wrote:
Okay, I have decided to use the xorg DRM module. However, I am
still doing something wrong:

First of all did you follow the guide at http://www.gentoolinux.org/doc/en/dri-howto.xml ? Or any other guide?

Assuming you used the guided above:

1) Could you post the output of:
zcat /proc/config.gz | grep 'MTRR\|AGP\|DRM'

2) What version of x11-drm are you using? Did you set VIDEO_CARDS=ati in make.conf (or on the command line while emerge x11-drm)? BTW what version of xorg-x11?

3) What does the Module section of your xorg.conf look like?

 I have:

 Section Device
 Identifier  X600
 Driver  radeon
 VendorName  ATI Technologies Inc
 BoardName   RV350 [MOBILITY RADEON X600]
 BusID   PCI:1:0:0
 EndSection

 for the xorg.conf entry. Should it be ati?

No.

 # lsmod
 Module  Size  Used by
 radeon 98464  0
 drm61592  1 radeon
 intel_agp  18332  1
 agpgart27216  2 drm,intel_agp
[SNIP]

Looks all right.

-- 
Bo Andresen


Re: [gentoo-user] 3d rendering with dri radeon

2006-02-25 Thread Richard Fish
On 2/25/06, Bruce Burden [EMAIL PROTECTED] wrote:


Okay, I have decided to use the xorg DRM module. However, I am
still doing something wrong:

snip


 BoardName   RV350 [MOBILITY RADEON X600]

The opensource xorg/kernel drivers do not support DRI with this chip. 
You can verify that by looking at the vendor/product ID with lspci,
and then comparing with the table in
/usr/src/linux/drivers/char/drm/drm_pciids.h.

-Richard

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-24 Thread Benno Schulenberg
Bo Andresen wrote:
 On Friday 24 February 2006 00:04, Benno Schulenberg wrote:
  Maybe try again, taking extra
  care to avoid typos in VIDEO_CARDS=ati?

 I did do that. And as stated before it won't compile without the
 VIDEO_CARDS variable in it's environment. Tried several times
 with both ati and radeon..

I've emerged the latest version of portage (2.1_pre4-r1), put 
VIDEO_CARDS=ati in /etc/make.conf, have no video_cards_... set 
in the USE flags, and have emerged x11-drm.  It does produce a 
radeon module (and a drm.ko, r128.ko, and mach64.ko besides).

What version of portage are you using that this isn't working for 
you?

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-24 Thread Bo Andresen
On Friday 24 February 2006 20:14, Benno Schulenberg wrote:
 Bo Andresen wrote:
  On Friday 24 February 2006 00:04, Benno Schulenberg wrote:
   Maybe try again, taking extra
   care to avoid typos in VIDEO_CARDS=ati?
 
  I did do that. And as stated before it won't compile without the
  VIDEO_CARDS variable in it's environment. Tried several times
  with both ati and radeon..

 I've emerged the latest version of portage (2.1_pre4-r1), put
 VIDEO_CARDS=ati in /etc/make.conf, have no video_cards_... set
 in the USE flags, and have emerged x11-drm.  It does produce a
 radeon module (and a drm.ko, r128.ko, and mach64.ko besides).

I was very sure that I had tested this twice with VIDEO_CARDS=ati. Both 
times the ati flag didn't get enabled i.e. emerge -vp x11-drm showed:

[ebuild   R   ] x11-base/x11-drm-20051223  VIDEO_CARDS=-ati -i810 -mga -nv 
-savage -sis -tdfx -via 0 kB

This of course didn't result in the radeon driver being built. It seems, 
however, that my memory must be failing (can't find any other explanation) 
since when I remove the use flag now and set VIDEO_CARDS=ati the flag does 
get enabled and the radeon module built. I really don't understand this - was 
so sure...

So obviously there is no bug other than me.. ;)

 What version of portage are you using that this isn't working for
 you?

I have been using portage 2.1_pre4-r1 all along. Having portage sending mails 
to me is invaluable. :)

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-24 Thread Benno Schulenberg
Bo Andresen wrote:
 I was very sure that I had tested this twice with
 VIDEO_CARDS=ati. Both times the ati flag didn't get enabled

That's why I said to take extra care to avoid typos.  :)

 i.e. emerge -vp x11-drm showed:

 [ebuild   R   ] x11-base/x11-drm-20051223  VIDEO_CARDS=-ati
 -i810 -mga -nv -savage -sis -tdfx -via 0 kB

It would have been useful if you'd shown just this line in your very 
first mail...

But it's working now.  So tell us how many frames glxgears is doing 
now, with and without radeon.  :)

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-24 Thread Bo Andresen
On Saturday 25 February 2006 00:36, Benno Schulenberg wrote:
 But it's working now.  So tell us how many frames glxgears is doing
 now, with and without radeon.  :)

Is there a way to disable dri for this test without restarting X?

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-24 Thread Bruce Burden
On Sat, Feb 18, 2006 at 05:02:30PM +0100, Benno Schulenberg wrote:
 Bruce Burden wrote:

  Is it in the portage system? I did a sync a few weeks
 ago, and I still get the 20050502 version,
 
 Do an 'eix x11-drm' and see it lists a 20051223 version, keyword 
 masked.  (If you don't have eix, first run 'emerge eix' and 
 'update-eix'.)  So do
 
   echo x11-base/x11-drm ~x86 /etc/portage/package.keywords
 
 and 'emerge x11-drm'.
 
Okay, I have:

*  x11-base/x11-drm
  Latest version available: 20051223
  Latest version installed: 20051223
  Size of downloaded files: 549 kB
  Homepage:http://dri.sf.net
  Description: DRM Kernel Modules for X11
  License: X11

*  x11-drivers/ati-drivers
  Latest version available: 8.14.13-r3
  Latest version installed: 8.14.13-r3
  Size of downloaded files: 23,186 kB
  Homepage:http://www.ati.com
  Description: Ati precompiled drivers for r350, r300, r250 and r200 
chipsets
  License: ATI

# lsmod
Module  Size  Used by
radeon 98464  0 
drm61592  1 radeon
agpgart27216  1 drm
bluetooth  39652  0 
libcrc32c   2816  0 
crc_ccitt   2176  0

and nothing in /dev/dri, which may explain:

(II) fglrx(0): UMM area: 0xc08f7000 (size=0x076f9000)
(II) fglrx(0): driver needs X.org 6.8.x
(II) fglrx(0): detected X.org 6.8.2
(II) Loading extension ATIFGLRXDRI
(II) fglrx(0): doing DRIScreenInit
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module fglrx
(II) fglrx(0): [drm] drmOpen failed
(EE) fglrx(0): DRIScreenInit failed!
(WW) fglrx(0): ***
(WW) fglrx(0): * DRI initialization failed!  *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available*
(WW) fglrx(0): * *


(this is from /var/log/Xorg.0.log)

and, finally:

[fglrx:firegl_stub_register] *ERROR* Unable to the open some already present 
DRM kernel module!

So, what am I doing wrong?

The drm module seems to be the problem child, once I added that, fglrx got 
tempermental...


Bruce
-- 

  I like bad! Bruce BurdenAustin, TX.
- Thuganlitha
The Power and the Prophet
Robert Don Hughes

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-23 Thread Benno Schulenberg
Bo Andresen wrote:
 I don't have a kernel module called radeon. I guess that's the
 problem..

Aah!  But that module is provided by x11-base/x11-drm.  Maybe you 
need to add the video_cards_ati USE flag?

 You are suggesting I move to version udev-084?

Only when you have the radeon module and it somehow doesn't create 
the device node correctly and you have tried everything else.

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-23 Thread Bo Andresen
On Friday 24 February 2006 00:04, Benno Schulenberg wrote:
 Bo Andresen wrote:
  Do you think this is a bug in the ebuild?

 No.  But maybe it is a bug in the newer version of portage that you
 use, because here the VIDEO_CARDS=via gets autoconverted to the
 video_cards_via USE flag.  Maybe try again, taking extra care to
 avoid typos in VIDEO_CARDS=ati?

I did do that. And as stated before it won't compile without the VIDEO_CARDS 
variable in it's environment. Tried several times with both ati and radeon..

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-22 Thread Bo Andresen
On Friday 17 February 2006 12:20, Ghaith Hachem wrote:
 havn't tried it since i have a newer unspoorted ship (X300SE)
 but try this guide here
 http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers

I'll try that howto when I get some time... Thanks.

-- 
Bo Andresen
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-18 Thread Benno Schulenberg
Bruce Burden wrote:
 On Fri, Feb 17, 2006 at 07:29:30PM +0100, Benno Schulenberg wrote:
  Bo Andresen wrote:
   [ebuild   R   ] x11-base/x11-drm-20050502  0 kB
 
  There's a much more recent version of this, have you tried
  that?

   Is it in the portage system? I did a sync a few weeks
ago, and I still get the 20050502 version,

Do an 'eix x11-drm' and see it lists a 20051223 version, keyword 
masked.  (If you don't have eix, first run 'emerge eix' and 
'update-eix'.)  So do

  echo x11-base/x11-drm ~x86 /etc/portage/package.keywords

and 'emerge x11-drm'.

Benno
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-18 Thread Rafael Fernández López
As I've read in http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers 
there's no way to make it work for a Radeon above 9100. Oh !! mine is 
Mobility Radeon 9700, if I want DRI through open source drivers, I've no way 
to do it?

Bye,
Rafael Fernández López.


pgp9zokH8act6.pgp
Description: PGP signature


Re: [gentoo-user] 3d rendering with dri radeon

2006-02-18 Thread Andrei Slavoiu
--- Rafael Fernández López
[EMAIL PROTECTED] wrote:
 As I've read in

http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers
 
 there's no way to make it work for a Radeon above
 9100. Oh !! mine is 
 Mobility Radeon 9700, if I want DRI through open
 source drivers, I've no way 
 to do it?
It should work with Xorg 7.0. At least my 9550 is.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-17 Thread Ghaith Hachem
havn't tried it since i have a newer unspoorted ship (X300SE)
but try this guide here
http://gentoo-wiki.com/HOWTO_DRI_with_ATi_Open-Source_Drivers

On 2/17/06, Bo Andresen [EMAIL PROTECTED] wrote:
 I have a laptop with a ATI Radeon 9000 Mobility graphics card. I wanted to get
 3d rendering working with the free dri drivers so I followed this howto:
 http://www.gentoolinux.org/doc/en/dri-howto.xml

 But it does not work:
 ~# glxinfo | grep rendering
 direct rendering: No

 Below is listed everything that I think might be relevant. I hope someone has
 an idea. What I notice in particular is these two lines
 from /var/log/Xorg.0.log:
 drmOpenDevice: node name is /dev/dri/card0
 drmOpenDevice: open result is -1, (No such device)

 ===
 ~# lspci | grep AGP
 00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev
 03)
 ===
 ~#cat /boot/config
 ...
 CONFIG_MTRR=y
 ...
 CONFIG_AGP=m
 CONFIG_AGP_INTEL=m
 ...
 # CONFIG_DRM is not set
 ...
 ===
 ~# emerge -vp xorg-x11 x11-drm

 These are the packages that I would merge, in order:

 Calculating dependencies ...done!
 [ebuild   R   ] x11-base/xorg-x11-6.8.2-r6  USE=bitmap-fonts ipv6 nls opengl
 pam sse truetype-fonts type1-fonts xprint xv dfx -3dnow -cjk -debug -dlloader
 -dmx -doc -font-server -insecure-drivers -minimal -mmx -nocxx -sdk -static 0
 kB
 [ebuild   R   ] x11-base/x11-drm-20050502  0 kB
 ===
 ~# cat /etc/X11/xorg.conf | grep -v ^#
 Section Module
Loadsynaptics
Loaddbe
SubSection  extmod
   Optionomit xfree86-dga
EndSubSection
Loadtype1
Loadfreetype
Load   dri
Load   glx
 EndSection

 Section Files

 EndSection

 Section InputDevice
Identifier  Keyboard1

 EndSection

 Section InputDevice
Identifier  Touchpad
...
 EndSection

 Section InputDevice
Identifier  External Mouse
...
 EndSection

 Section Monitor
 Identifier  AcerMonitor
 HorizSync   31.5-57.0
 VertRefresh 50-70
 EndSection

 Section Device
 Identifier  Ati Radeon 9000 Mobility
 Driver  radeon
 Option  AGPMode 4
 Option  AGPFastWrite True
 Option  EnablePageFlip True
 EndSection

 Section Screen
Identifier  Screen 1
Device  Ati Radeon 9000 Mobility
Monitor AcerMonitor
DefaultDepth 24
Subsection Display
...
Subsection Display
   Depth   24
   Modes   1400x1050 1280x1024 1024x768 800x600 640x480
   ViewPort0 0
EndSubsection
 EndSection

 Section ServerLayout
Identifier  Simple Layout
Screen Screen 1
InputDevice Touchpad Corepointer
InputDevice External Mouse SendCoreEvents
InputDevice Keyboard1 CoreKeyboard
 EndSection

 Section DRI
Mode 0666
 EndSection
 ===
 ~# cat /etc/modules.autoload.d/kernel-2.6
 ...
 intel-agp
 ...
 drm
 ===
 ~# lsmod | grep 'drm\|agp'
 drm65944  0
 intel_agp  20508  1
 agpgart29256  2 drm,intel_agp
 ===
 ~# cat /var/log/Xorg.0.log
 ...
 (II) LoadModule: dri
 (II) Loading /usr/lib/modules/extensions/libdri.a
 (II) Module dri: vendor=X.Org Foundation
 compiled for 6.8.2, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.2
 (II) Loading sub module drm
 (II) LoadModule: drm
 (II) Loading /usr/lib/modules/linux/libdrm.a
 (II) Module drm: vendor=X.Org Foundation
 compiled for 6.8.2, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.2
 (II) Loading extension XFree86-DRI
 (II) LoadModule: glx
 (II) Loading /usr/lib/modules/extensions/libglx.a
 (II) Module glx: vendor=X.Org Foundation
 compiled for 6.8.2, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.2
 (II) Loading sub module GLcore
 (II) LoadModule: GLcore
 (II) Loading /usr/lib/modules/extensions/libGLcore.a
 (II) Module GLcore: vendor=X.Org Foundation
 compiled for 6.8.2, module version = 1.0.0
 ABI class: X.Org Server Extension, version 0.2
 (II) Loading extension GLX
 (II) LoadModule: radeon
 (II) Loading /usr/lib/modules/drivers/radeon_drv.o
 (II) Module radeon: vendor=X.Org Foundation
 compiled for 6.8.2, module version = 4.0.1
 Module class: X.Org Video Driver
 ABI class: X.Org Video Driver, version 0.7
 (II) LoadModule: ati
 (II) Loading /usr/lib/modules/drivers/ati_drv.o
 (II) Module ati: vendor=X.Org Foundation
 compiled for 6.8.2, module version = 6.5.6
 Module class: X.Org Video Driver
 ABI class: X.Org Video Driver, version 0.7
 ...
 (II) Primary Device is: PCI 01:00:0
 (--) Assigning device section with no busID to primary device
 (--) Chipset ATI 

Re: [gentoo-user] 3d rendering with dri radeon

2006-02-17 Thread Andrei Slavoiu
--- Bo Andresen [EMAIL PROTECTED] wrote:
 ~# lsmod | grep 'drm\|agp'
 drm65944  0
 intel_agp  20508  1
 agpgart29256  2 drm,intel_agp
There should also be a drm_radeon there (not sure how
it's called because I use it builtin the kernel)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] 3d rendering with dri radeon

2006-02-17 Thread Bruce Burden
On Fri, Feb 17, 2006 at 07:29:30PM +0100, Benno Schulenberg wrote:
 Bo Andresen wrote:
  [ebuild   R   ] x11-base/x11-drm-20050502  0 kB
 
 There's a much more recent version of this, have you tried that?

Is it in the portage system? I did a sync a few weeks
   ago, and I still get the 20050502 version, which will not 
   build. It complains about:

I2C_ALGO_ATI

   is undeclared in the /usr/portage/tmp/portage/x11-drm-20050502/
   work/drm/linux-core/radeon_i2c.c routine.

Bruce
-- 

  I like bad! Bruce BurdenAustin, TX.
- Thuganlitha
The Power and the Prophet
Robert Don Hughes

-- 
gentoo-user@gentoo.org mailing list