* [libdrm]: drmOpen failed issue
@ 2014-10-28 5:02 Jet Chen
0 siblings, 0 replies; only message in thread
From: Jet Chen @ 2014-10-28 5:02 UTC (permalink / raw)
To: dri-devel
Hello,
I find a drmOpen failed issue in our system as below description:
platform: ivy-bridge
OS: Ubuntu12.04 LTS
kernel: 3.13.0-32-generic
libdrm: libdrm-2.4.46
root@tchen37-ivb:/home/tchen37/ws/lib3app/utests# ./test_osd
DRM_IOCTL_I915_GEM_APERTURE failed: Bad file descriptor
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [9]
param: 4, val: 0
Segmentation fault (core dumped)
by debugging libdrm code, I find following changes resolve the problem
diff --git a/xf86drm.c b/xf86drm.c
index 4791a05..3c7c362 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -562,7 +562,7 @@ static int drmOpenByName(const char *name)
drmFreeVersion(version);
id = drmGetBusid(fd);
drmMsg("drmGetBusid returned '%s'\n", id ? id : "NULL");
- if (!id || !*id) {
+ if (id || *id) {
if (id)
drmFreeBusid(id);
return fd;
I know I'm not using the latest version of libdrm, but I confirm that latest code remains same for this scenario.
Is it possible a bug of libdrm?
Thanks,
-Jet
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-28 4:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 5:02 [libdrm]: drmOpen failed issue Jet Chen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.