[ltp] DRI/Mesa from CVS on Radeon 7500

Alex Deucher linux-thinkpad@linux-thinkpad.org
Mon, 24 Jan 2005 09:13:06 -0500


On Mon, 24 Jan 2005 09:34:58 +0100, Michal Trzcinski <jz@vanet.pl> wrote:
> Hi,
> 
> I have R51, kernel 2.6.10-bk1, Slackware-current, X.org 6.8.1, DRI and Mesa from CVS.
> I have compile Mesa with: make linux-dri-x86 (for radeon). And have compile DRM drivers for kernel 2.6 from typing from drm/linux-core: make DRM_MODULES="radeon".
> Then I have copy from Mesa/lib: libGL.so.1.2, libGLU...,libGLw... and libglut... to /usr/X11R6/lib directory (remove old version of these files). File radeon_dri.so i have copy to /usr/X11R6/lib/modules/dri directory.
> DRM drivers i have copy to /lib/modules/2.6.10-bk1/kernel/drivers/char/drm directory (drm.ko and radeon.ko file). I have do: depmod -a, ldconfig, x.conf is setted properly. Reboot.
> After reboot my dmesg is:
> 
> [drm] Initialized drm 1.0.0 20040925
> mtrr: 0xe0000000,0x8000000 overlaps existing 0xe0000000,0x2000000
> [drm] Initialized radeon 1.13.0 20041207 on minor 0: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]
> [drm] Used old pci detect: framebuffer loaded <-- /* old pci detect?? */
> agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
> agpgart: Putting AGP V2 device at 0000:00:00.0 into 1x mode
> agpgart: Putting AGP V2 device at 0000:01:00.0 into 1x mode <-- /* why?? */
> 

you need to set the apgmode option in your xorg config:
Option "AGPMode" "4"

> My glxinfo show:
> 
> name of display: :0.0
> libGL error: open DRM failed (Operation not permitted)
> libGL error: reverting to (slow) indirect rendering
> display: :0  screen: 0
> direct rendering: No
> 
> (why??)

does it work as root?  if so you need to add a dri section to your xorg config:

Section "DRI"
	Mode 0666
EndSection

> 
> But sometimes I have "direct rendering: Yes", but when I run glxgears, window of gears opened (is black) and laptop has freeze - i have to power off -> power on button :(
> Second time i run Q3Demo, I play 30s. and laptop freeze...
> 
> Where id the problem? Mesa or DRI drivers for kernel?

the glxgears and associated freeze up bugs were just fixed over the
weekend in mesa cvs.

Alex

> 
> Regards,
> jz