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.
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.
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.
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.
Hanno, can you check that it works fine without those two patches your side as well please ?
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.
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...
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).
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/...
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.