Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159897 - x11-base/xorg-server-1.2 : X server reset disables DRI (was media-libs/mesa-6.5.2)
Summary: x11-base/xorg-server-1.2 : X server reset disables DRI (was media-libs/mesa-6...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-03 13:14 UTC by Alan Swanson
Modified: 2007-08-25 05:28 UTC (History)
2 users (show)

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


Attachments
mesa-drmclose-forreal.diff (mesa-drmclose-forreal.diff,601 bytes, patch)
2007-01-03 13:16 UTC, Alan Swanson
Details | Diff
glxdri-aiglx-drmopenonce-2.patch (glxdri-aiglx-drmopenonce-2.patch,1.51 KB, patch)
2007-01-19 17:56 UTC, Alan Swanson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Swanson 2007-01-03 13:14:25 UTC
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
Comment 1 Alan Swanson 2007-01-03 13:16:11 UTC
Created attachment 105321 [details, diff]
mesa-drmclose-forreal.diff

The patch from comment 10 of freedesktop.org bug 9275.
Comment 2 Alan Swanson 2007-01-19 17:56:37 UTC
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
Comment 3 Alan Swanson 2007-01-23 08:52:12 UTC
This was included upstream for the xserver 1.2 release. Closing bug.
Comment 4 Joshua Baergen (RETIRED) gentoo-dev 2007-01-24 03:28:04 UTC
Good to hear.  We'll hopefully have that in the tree within the next day or so.