DRM\DRI, Alpha, xfree86 4.3.0 radeon.o problems

DRM\DRI, Alpha, xfree86 4.3.0 radeon.o problems

Post by Matt Simi » Thu, 15 May 2003 00:19:45

Having lots of fun trying to get DRI support for the Radeon 9000 under
Debian Sarge on an Alpha UX164 (ruffian).

Ive managed to get XFree 4.3.0 installed, which includes native Radeon 9000
support. Unfortuantely the DRI (well DRM) module cannot start as (according
to Xfree log) it requires "DRM version 1.5.0 or later". It referring to the
DRM module in 2.4.20 kernel. I have tried numerous things, but the most
promising is:

Changing DRM to a module from the kernal and building  xfree-drm-4.3.0.src
into radeon.o (the DRM module I believe) and then replacing the kernals
module with this one.

This works and starts DRM (I believe) but crashes X with a visual screen
tear on the GDM login.

Does anyone have a good DRM module for XFree86 4.3.0?
Should DRI work on the Alpha at all?
Should I enable AGPGart in the kernel (its a PCI card, but I read AGP
support was needed)?



DRM\DRI, Alpha, xfree86 4.3.0 radeon.o problems

Post by mic.. » Thu, 15 May 2003 02:34:45


Quote:> Should DRI work on the Alpha at all?

I guess that I can answer at least that question.  This is from logs on
my Alpha (Nautilus UP1500 and Radeon 7500 graphic card) with a kernel
derived from Red Hat 2.4.18-27.7.x and some variant of 4.2.0 X server.
Yes, this machine is one of those rare Alphas with an AGP slot but AGP
on Alpha is more broken with 2.4 then customary elsewhere :-) and I have
aperture set in my kernel to 0.

(II) RADEON(0): [drm] loaded kernel module for "radeon" driver
(II) RADEON(0): [drm] created "radeon" driver at busid "PCI:1:5:0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xfffffffc004b8000
(II) RADEON(0): [drm] mapped SAREA 0xfffffffc004b8000 to 0x20000022000
(II) RADEON(0): [drm] framebuffer handle = 0xe8000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x0f000207 [AGP 0x1022/0x700e; Card 0x1002/0x5157]
(II) RADEON(0): [agp] 8192 kB allocated with handle 0x004bc000
(EE) RADEON(0): [agp] Could not bind
(WW) RADEON(0): [agp] AGP failed to initialize -- falling back to PCI mode.
(WW) RADEON(0): [agp] Make sure you have the agpgart kernel module loaded.
(II) RADEON(0): [pci] 8192 kB allocated with handle 0x004bc000
(II) RADEON(0): [pci] ring handle = 0xfffffffc004bc000
(II) RADEON(0): [pci] Ring mapped at 0x20004348000
(II) RADEON(0): [pci] Ring contents 0x00000000
(II) RADEON(0): [pci] ring read ptr handle = 0xfffffffc005be000
(II) RADEON(0): [pci] Ring read ptr mapped at 0x20000024000
(II) RADEON(0): [pci] Ring read ptr contents 0x00000000
(II) RADEON(0): [pci] vertex/indirect buffers handle = 0xfffffffc005c0000
(II) RADEON(0): [pci] Vertex/indirect buffers mapped at 0x2000444a000
(II) RADEON(0): [pci] Vertex/indirect buffers contents 0x00000000
(II) RADEON(0): [drm] register handle = 0xf8000000
(II) RADEON(0): [dri] Visual configs initialized
(II) RADEON(0): CP in BM mode
(II) RADEON(0): Using 8 MB AGP aperture
(II) RADEON(0): Using 1 MB for the ring buffer
(II) RADEON(0): Using 2 MB for vertex/indirect buffers
(II) RADEON(0): Using 5 MB for AGP textures
(II) RADEON(0): [drm] installed DRM signal handler
(II) RADEON(0): [DRI] installation complete
(II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
(II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
(II) RADEON(0): Direct rendering enabled

Standar 'gears' test gives in this setup over 700 frames per second.

As far as 4.3.0 X goes on I did not try that yet.



1. ATI Radeon VE + redhat 8.0 problems with DRI/DRM

Hi all,

I am the proud owner of a dell precision 530 MT (dual xeon) with a
dual head ATI Radeon VE.  I am in the process of persuading my other
half that linux is the best desktop/multimedia environment for her to
use, but...  I am suffering from a couple of DRI/DRM/OpenGL bugs which
make most multi-media apps quite unusable on my current setup.

I have been searching the web for pointers, but have found it quite
frustrating.  I guess I could just upgrade my XFree86 installation
and/or the kernel video modules, but I would like to understand the
problem/persuade myself that it would be fixed by upgrading.  Here are
the problems:

1/ DRI Clipping
When I use apps like ogle, kino and others that use direct rendering,
complicated clip regions are not rendered correctly.  For example, in
Kino, if I am capturing video from my handycam, and I open one of the
menus, the menu is cropped.  Another example: if I'm watching a
d.v.d., and wish to raise a console above the video window, no
clipping is performed at all _unless_ the cliprect is a simple
rectangle.  Third example: switching virtual desktops with a pager app
results in having the video appearing on all virtual desktops, but
without any window decorations.  By the way, these symptoms occur in
both gnome and kde environments (out of the box rh8.0).

2/ 3d
Perhaps this is part of the same problem? When I run 3d games, e.g.
tuxracer, the game crashes with the message 'illegal instruction', the
pointer no longer works and the screen resolution is not restored; the
only way to get control back is to restart the X session.

My setup is a standard rh8.0 install, 2.4.18-14smp kernel, XFree86
4.2.0 (red hat release 4.2.0-72).  I have tried various combinations
of ati/radeon modules + options.

Okay, here are my questions: 1/ is the clipping bug a known problem?
(I could not find ANY mention of this problem in any news
group/mailing list.)  2/ Should I upgrade the kernel or my xfree86
installation?  If the latter is advised, is there a good rpm sollution
that would work with r.h. 8.0?  Or, are my problems just configuration

I will happily supply any requested log files/config info to help the
guru's out there troubleshoot.

Thanks in advance,
    Jonathan Ross.

2. New Powerbook G3

3. dri/drm/Radeon

4. 7 IDE devices under Linux

5. 2.4.20 DRM/DRI issue with Radeon

6. Efficient Scheduling Algo.

7. PCI Radeon 9000 and DRI\DRM - no go!?

8. compaq prosignia scsi-driver

9. problem with dri / drm / XFree86 4.2.0

10. Compilation problem with radeon dri drivers from dri.sf.net

11. Voodoo3 DRI/DRM kernel module problems

12. drm/dri loading problems with 4.1.0 and matrox g450

13. Voodoo3 DRI/DRM kernel module problems