Bug 142039 - libGL error: open DRM failed (Operation not permitted)
Summary: libGL error: open DRM failed (Operation not permitted)
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Alpha 4
Hardware: IA64 Other
: P2 - High : Normal (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 14:04 UTC by Andreas Schwab
Modified: 2006-01-12 05:32 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Xorg.0.log (113.56 KB, text/plain)
2006-01-10 16:49 UTC, Andreas Schwab
Details

Note You need to log in before you can comment on or make changes to this bug.
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.