Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8144 - XFree Radeon DRI doesn't work
Summary: XFree Radeon DRI doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-20 07:12 UTC by Hanno Böck
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2002-09-20 07:12:27 UTC
I have an ATI Radeon Mobility M6 LY.
With X 4.2.0 I had the problem described in Bug 4898.
Now, with 4.2.1, i no longer get hangs on console-switch. But the DRI driver
doesn't seem to work at all.
If i run OpenGL-applications, i just get a black screen. I can end them per key
(if they support it) and the system works just like before. Only i cannot see
any opengl-elements.
I don't know if this is related to Gentoo, but i didn't find anything about it
in the xpert-mailinglist.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-30 14:47:40 UTC
The two Patches that was added between 4.2.0 and 4.2.1, do not touch DRI
as far as I can see.  The one, ati-r128-vtswitch-fix-busmaster-enable.patch.bz2,
only address the vt switch bug, and *should* not cause this, where
ati-radeon-mobility-FireGL-7800.patch.bz2 only add the ID for the LX, and do
not touch the LY at all.

Anyhow, I added two more patches, please remerge xfree when they are present
and let me know what the results are.  Also maybe try a different (more vanilla,
or possibly with updated DRI) if possible.

The added patches are:

  018_all_4.2.0-ati-radeon-misc-bugfixes.patch.bz2
  019_all_4.2.0-ati-radeon-pci-drm-enable.patch.bz2

They should be on rsync in half an hour or so.


Thanks.
Comment 2 Hanno Böck gentoo-dev 2002-10-06 09:39:03 UTC
Well, this XFree/DRI-stuff is really a pain on my system.
I re-emerged now x4.2.1 and at the moment, i cannot activate any dri at all.
I really hope they will release x 4.3 soon with updated dri-drivers.
Comment 3 Bjoern Brauel (RETIRED) gentoo-dev 2002-10-20 04:17:12 UTC
The two patches added to 4.2.1 cause DRI on my Alpha to crash as well ! Without them I can run my radeon 7500 without a problem (including dri/drm) though. Ill do some investigation and try to find out whats causing the crash. Until then, I suggest to remove the two patches, or do they help in any way ? At least on Alpha they're not good at all. 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-20 05:32:57 UTC
Hanno, can you check that it works fine without those two patches your side
as well please ?
Comment 5 Hanno Böck gentoo-dev 2002-10-21 05:07:20 UTC
I currently have absolutely no idea what is wrong with my system. I tried with
xfree 4.2.0 and 4.2.1 with absolutely no patches. Still the same:
If I run with dri enabled and start anything that uses opengl, i just get a
black screen.
Comment 6 José Fonseca 2002-11-03 13:17:07 UTC
019_all_4.2.0-ati-radeon-pci-drm-enable.patch.bz2 enables the PCI for platforms
_other_ than alpha, so that's surely not the cause for the crashes on Alpha.
That leaves 018_all_4.2.0-ati-radeon-misc-bugfixes.patch.bz2 as guilty. This
patch besides some straightforward fixes goes into details of the Radeon that I
can not comment since I'm not a Radeon devel.

Anyway, Hanno's problem seem to have started before those. Hanno, could you
check if there is anything printed on /var/log/messages|/proc/kmsg when you run
a OpenGL, or /var/log/XFree86.0.log. Also, is the screen all blank when you run
a non-fullscreen OpenGL (e.g, glxgears) app or only the window?

AFAICT it's gonna take a while until 4.3.0 is out. I would suggest the snapshots
on http://dri.sf.net/snapshots, but things are quite messy now that DRI and
XFree86 CVS were merged into each other, and it's not an easy adventure...
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-03 13:29:01 UTC
Both those patches are removed, and even with not patching the radeon driver
at all, still the same.

If Hanno have the same problems as me, then any window'd opengl app have the
windows, but show only black where the gears should be (for glxgears).
Comment 8 José Fonseca 2002-11-07 08:01:19 UTC
Since nobody mentioned it I suppose there is no message in the system log.

I reminded that perhaps some patch may break binary compatability with the
kernel DRM. Have you tried to build and use the DRM from the patched XFree86
source? This can easily be done by making from
xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel in the unpacked and
patched XFree86 source tree:

  ln -s ../../../shared/drm/kernel/*.? .
  make -f Makefile.linux radeon.o
  cp radeon.o /lib/modules/...
Comment 9 Hanno Böck gentoo-dev 2002-11-30 06:16:40 UTC
I don't know which fix it was, but i recently re-emerged xfree 4.2.1 and now
everything works fine (also bug 4898).
if nobody else has problems, we can mark this bug and 4898 as fixed now.