Bug 428078

Summary: Section "DRI" mode 0666 not affect to /dev/dri/card0 mode
Product: [Fedora] Fedora Reporter: denis ivanov <youonly>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: mcepl, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xorg-x11-server-Xorg-1.4.99.1-0.19.20080107.fc9.i386 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-30 22:27:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
my xorg.conf (generated automatically by X without config) none

Description denis ivanov 2008-01-09 03:22:54 UTC
Description of problem:

Section "DRI"
        Mode         0666
EndSection

Doesn't change mode of DRI device. glxgears failed with "permission denied
error". Temporary solved by changin mode from root user before starting of X server.

Xorg.0.log seems no errors!


Version-Release number of selected component (if applicable):

xorg-x11-server-Xorg-1.4.99.1-0.13.fc9
xorg-x11-drv-i810-2.2.0-2.fc9
kernel 2.6.23.1 (yeah not latest)


Additional info:

fc8's X server set mode with same xorg.conf without any problems

Comment 1 denis ivanov 2008-01-14 21:02:18 UTC
kernel-2.6.24-0.150.rc7.git4.fc9
xorg-x11-server-Xorg-1.4.99.1-0.15.20080107.fc9
xorg-x11-drv-i810-2.2.0-3.fc9

The same problem:

Section "DRI"
        Mode         0666
EndSection

crw------- 1 root root 226, 0 Jan 14 22:30 /dev/dri/card0


Comment 2 Matěj Cepl 2008-01-14 23:59:57 UTC
Weird -- looks like duplicate of bug 245398, but that one is for F7.

Comment 3 denis ivanov 2008-01-15 02:30:57 UTC
Just run strace to check what X server does with /dev/dri/card0...

strace -f X 2>&1|grep /dev/dri/

open("/dev/dri/card0", O_RDWR|O_LARGEFILE) = 13
open("/dev/dri/card0", O_RDWR|O_LARGEFILE) = 13
open("/dev/dri/card0", O_RDWR|O_LARGEFILE) = 13
open("/dev/dri/card0", O_RDWR|O_LARGEFILE) = 14
open("/dev/dri/card0", O_RDWR|O_LARGEFILE) = 14

No chmod calls...

If you want try this way please use remote shell because X under strace is very
slow.

Parts of my config:

$cat /etc/X11/xorg.conf |grep -C2 666

Section "DRI"
        Mode         0666
EndSection

$ ls -l /dev/dri/card0 
crw------- 1 root root 226, 0 Jan 15 04:17 /dev/dri/card0

$ glxinfo |grep -i DRM # non-root
libGL error: open DRM failed (Operation not permitted)

# glxinfo |grep direct # from root
direct rendering: Yes


Comment 4 denis ivanov 2008-01-15 02:32:11 UTC
Created attachment 291671 [details]
my xorg.conf (generated automatically by X without config)

Comment 5 denis ivanov 2008-01-24 09:44:04 UTC
as temporary bugfix i use crontab to update mode of /dev/dri/card0 every minute...

Comment 6 denis ivanov 2008-01-30 22:27:05 UTC
Updated rawhide:

xorg-x11-server-Xorg-1.4.99.1-0.19.20080107.fc9.i386
xorg-x11-drv-i810-2.2.0-3.fc9.i386
kernel-2.6.24-9.fc9.i686

Seems the problem is fixed right now
But I even don't know who fix and which package was fixed. ;-)

Tested with Mode 0666, Mode 0644, Mode 0466 etc. All ok.

Closing the bug.