Current running Xorg 7.2-RC3 and was having a problem whereby DRI was being disabled after logging out and back in whilst using GDM (and possibly other session managers) which keeps the same X session running. Checking showed problem is freedekstop.org bug 9275 in which the patch in comment 10 resolved the problem. The fix, whilst not yet commited to Mesa git, is correct and should be applied on Gentoo before 6.5.2 is stabilised for the Xorg 7.2 release (whenever that may delayed too). Symptoms from the /var/log/Xorg.0.log.old show the initial successful setup and first login; drmOpenByBusid: drmGetBusid reports pci:0000:03:00.0 (II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.25.0 ... drmOpenByBusid: drmGetBusid reports pci:0000:03:00.0 (II) RADEON(0): [drm] DRM interface version 1.2 Then when logging out and back in it session fails (from the code, it calls it DRM interface version 1.0 as a fallback); (II) RADEON(0): [drm] DRM interface version 1.0 (II) RADEON(0): [drm] drmSetBusid failed (6, pci:0000:03:00.0), Permission denied (EE) RADEON(0): [dri] DRIScreenInit failed. Disabling DRI. Then when logging out of the broken session again there is fatal error, X exits and is restarted by GDM and hence DRI is working again so perhaps why not noticed; Backtrace: 0: /usr/bin/X(xf86SigHandler+0x85) [0x80cbe35] Fatal server error: Caught signal 11. Server aborting
Created attachment 105321 [details, diff] mesa-drmclose-forreal.diff The patch from comment 10 of freedesktop.org bug 9275.
Created attachment 107469 [details, diff] glxdri-aiglx-drmopenonce-2.patch The final fix was actually to the Xserver and not to Mesa. It has been applied to Git master but not server-1.2-branch for the Xorg 7.2 release as yet. http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commitdiff;h=65f4690ecb4576f60396fcccff8e5bd5d4b6645f
This was included upstream for the xserver 1.2 release. Closing bug.
Good to hear. We'll hopefully have that in the tree within the next day or so.