summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Anaczkowski <lukasz.anaczkowski@intel.com>2011-09-28 15:30:07 +0200
committerAndrew Boie <andrew.p.boie@intel.com>2012-07-23 16:08:17 -0700
commite6f8d45da8c61d67dc9fdc1cec53f40594043817 (patch)
treec1560a1daefa9f66a01a61ca37d6d37830d113d7
parentec7d9dc713322bd41b1e348c0ea3b1304a13dba9 (diff)
downloadsystem_core-e6f8d45da8c61d67dc9fdc1cec53f40594043817.zip
system_core-e6f8d45da8c61d67dc9fdc1cec53f40594043817.tar.gz
system_core-e6f8d45da8c61d67dc9fdc1cec53f40594043817.tar.bz2
Char device /dev/dri/card0 was not created during startup.
This device is required by libdrm for GPUs like IvyBridge. Change-Id: I0ac47056a9cec2100f3e6eaa5591571fe6bbc145 Signed-off-by: Lukasz Anaczkowski <lukasz.anaczkowski@intel.com> Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
-rw-r--r--init/devices.c3
-rw-r--r--rootdir/ueventd.rc3
2 files changed, 6 insertions, 0 deletions
diff --git a/init/devices.c b/init/devices.c
index 125f981..1e050bd 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -624,6 +624,9 @@ static void handle_generic_device_event(struct uevent *uevent)
} else if (!strncmp(uevent->subsystem, "graphics", 8)) {
base = "/dev/graphics/";
make_dir(base, 0755);
+ } else if (!strncmp(uevent->subsystem, "drm", 3)) {
+ base = "/dev/dri/";
+ make_dir(base, 0755);
} else if (!strncmp(uevent->subsystem, "oncrpc", 6)) {
base = "/dev/oncrpc/";
make_dir(base, 0755);
diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc
index 07624c4..c1fca00 100644
--- a/rootdir/ueventd.rc
+++ b/rootdir/ueventd.rc
@@ -18,6 +18,9 @@
# gpu driver for adreno200 is globally accessible
/dev/kgsl 0666 root root
+# kms driver for drm based gpu
+/dev/dri/* 0666 root graphics
+
# these should not be world writable
/dev/diag 0660 radio radio
/dev/diag_arm9 0660 radio radio