Bug 142039

Summary: libGL error: open DRM failed (Operation not permitted)
Product: [openSUSE] SUSE Linux 10.1 Reporter: Andreas Schwab <schwab>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P2 - High CC: eich
Version: Alpha 4   
Target Milestone: ---   
Hardware: IA64   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Xorg.0.log

Description Andreas Schwab 2006-01-09 14:04:20 UTC
When running a GL app the access to DRM is not authenticated with the kernel.  The ioctl DRM_IOCTL_SET_VERSION fails with EACCESS and the GL library falls back to soft rendering.
Comment 1 Stefan Dirsch 2006-01-09 14:24:01 UTC
machine: sykes (IA64)
trace file: /tmp/xx

I'll try to reproduce on a i386/x86_64 machine.
Comment 2 Stefan Dirsch 2006-01-09 15:57:05 UTC
At least DRI works on 10.1-Alpha4 x86_64 (Radeon 7500). So probably only IA64 is affected by now.
Comment 3 Andreas Schwab 2006-01-10 16:22:11 UTC
DRM_IOCTL_GET_UNIQUE is broken, it returns the wrong bus id.
Comment 4 Andreas Schwab 2006-01-10 16:30:55 UTC
Actually it's XF86DRIOpenConnection that returns the wrong bus id.  It returns "pci:0001:00:00.0", but the correct bus id would be "pci:0000:00:00.0"
Comment 5 Andreas Schwab 2006-01-10 16:49:07 UTC
drmOpenByBusid: Searching for BusID pci:0001:00:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 8, (OK)
drmOpenByBusid: drmOpenMinor returns 8
drmOpenByBusid: drmGetBusid reports pci:0000:00:00.0
Comment 6 Andreas Schwab 2006-01-10 16:49:47 UTC
Created attachment 62704 [details]
Xorg.0.log
Comment 7 Andreas Schwab 2006-01-10 16:50:35 UTC
Where does this "BusID pci:0001:00:00.0" come from??
Comment 8 Stefan Dirsch 2006-01-12 05:32:17 UTC
-------------------------------------------------------------------
Wed Jan 11 00:01:29 CET 2006 - schwab@suse.de

- p_pci-domain.diff: Fix off-by-one domain numbering.

Thanks, Andreas! See also Bug #132308.