All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] weston: restrict udev enumeration to /dev/dri/card0
@ 2016-02-02 14:43 Anand Balagopalakrishnan
  2016-02-04 18:35 ` Denys Dmytriyenko
  0 siblings, 1 reply; 17+ messages in thread
From: Anand Balagopalakrishnan @ 2016-02-02 14:43 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
---
 ...v-seat-restrict-udev-enumeration-to-card0.patch |   36 ++++++++++++++++++++
 .../recipes-graphics/wayland/weston_1.9.0.bb       |    1 +
 2 files changed, 37 insertions(+)
 create mode 100644 meta-arago-extras/recipes-graphics/wayland/weston/0001-udev-seat-restrict-udev-enumeration-to-card0.patch

diff --git a/meta-arago-extras/recipes-graphics/wayland/weston/0001-udev-seat-restrict-udev-enumeration-to-card0.patch b/meta-arago-extras/recipes-graphics/wayland/weston/0001-udev-seat-restrict-udev-enumeration-to-card0.patch
new file mode 100644
index 0000000..9503428
--- /dev/null
+++ b/meta-arago-extras/recipes-graphics/wayland/weston/0001-udev-seat-restrict-udev-enumeration-to-card0.patch
@@ -0,0 +1,36 @@
+From e8e7a9f7dfa164a75fdbdca87622a2e13334478a Mon Sep 17 00:00:00 2001
+From: Anand Balagopalakrishnan <anandb@ti.com>
+Date: Sat, 23 Jan 2016 22:48:07 +0530
+Subject: [PATCH 1/1] udev-seat: restrict udev enumeration to card0
+
+In case of separate GPU and Display devices as found in embedded systems, we
+could have modeset node and render node controlled by different drivers.
+There is a distinct possibility that udev enumeration returns the DRM device
+corresponding to render node as the primary DRM device.
+
+Obviously, modeset operations cannot be done on the GPU DRM device.
+
+Restrict the udev enumeration to card0 and ensure that DRM device corresponding
+to display is returned as the primary DRM device.
+
+Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
+---
+ src/compositor-drm.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/compositor-drm.c b/src/compositor-drm.c
+index 6777bf8..59c2cc5 100644
+--- a/src/compositor-drm.c
++++ b/src/compositor-drm.c
+@@ -2827,7 +2827,7 @@ find_primary_gpu(struct drm_backend *b, const char *seat)
+ 
+ 	e = udev_enumerate_new(b->udev);
+ 	udev_enumerate_add_match_subsystem(e, "drm");
+-	udev_enumerate_add_match_sysname(e, "card[0-9]*");
++	udev_enumerate_add_match_sysname(e, "card0");
+ 
+ 	udev_enumerate_scan_devices(e);
+ 	drm_device = NULL;
+-- 
+1.7.9.5
+
diff --git a/meta-arago-extras/recipes-graphics/wayland/weston_1.9.0.bb b/meta-arago-extras/recipes-graphics/wayland/weston_1.9.0.bb
index 439b279..a444590 100644
--- a/meta-arago-extras/recipes-graphics/wayland/weston_1.9.0.bb
+++ b/meta-arago-extras/recipes-graphics/wayland/weston_1.9.0.bb
@@ -13,6 +13,7 @@ SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
            file://0001-make-error-portable.patch \
            file://libsystemd.patch \
            file://explicit-enable-disable-systemd.patch \
+	   file://0001-udev-seat-restrict-udev-enumeration-to-card0.patch \
 "
 SRC_URI[md5sum] = "66bbba12f546570b4d97f676bc79a28e"
 SRC_URI[sha256sum] = "9c1b03f3184fa0b0dfdf67e215048085156e1a2ca344af6613fed36794ac48cf"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 17+ messages in thread
* [PATCH 1/1] weston: restrict udev enumeration to /dev/dri/card0
@ 2017-03-08  7:58 Anand Balagopalakrishnan
  2017-03-08 14:36 ` Denys Dmytriyenko
  0 siblings, 1 reply; 17+ messages in thread
From: Anand Balagopalakrishnan @ 2017-03-08  7:58 UTC (permalink / raw)
  To: meta-arago

Signed-off-by: Anand Balagopalakrishnan <anandb@ti.com>
---
 .../wayland/weston_1.11.0.bbappend                 | 23 +++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/meta-arago-distro/recipes-graphics/wayland/weston_1.11.0.bbappend b/meta-arago-distro/recipes-graphics/wayland/weston_1.11.0.bbappend
index d0691ad..36585bd 100644
--- a/meta-arago-distro/recipes-graphics/wayland/weston_1.11.0.bbappend
+++ b/meta-arago-distro/recipes-graphics/wayland/weston_1.11.0.bbappend
@@ -2,19 +2,20 @@
 PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor WESTON_NATIVE_BACKEND="fbdev-backend.so",--disable-fbdev-compositor,udev mtdev"
 PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev libgbm mtdev"
 
-PR_append = ".arago16"
+PR_append = ".arago17"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 RDEPENDS_${PN} += "weston-conf"
 
-#SRC_URI += " \
-#	file://0001-weston1.9.0-Enabling-DRM-backend-with-multiple-displ.patch \
-#	file://0002-Weston1.9.0-Allow-visual_id-to-be-0.patch \
-#	file://0003-Weston1.9.0-Fix-virtual-keyboard-display-issue-for-Q.patch \
-#	file://0004-Weston1.9.0-Fix-touch-screen-crash-issue.patch \
-#	file://0001-udev-seat-restrict-udev-enumeration-to-card0.patch \
-#	file://0001-Add-soc-performance-monitor-utilites.patch \
-#	file://0001-compositor-drm-support-RGB565-with-pixman-renderer.patch \
-#	file://0001-compositor-drm-fix-hotplug-weston-termination-proble.patch \
-#"
+
+SRC_URI += " \
+	file://0001-udev-seat-restrict-udev-enumeration-to-card0.patch \
+"
+#	file://0001-weston1.9.0-Enabling-DRM-backend-with-multiple-displ.patch
+#	file://0002-Weston1.9.0-Allow-visual_id-to-be-0.patch
+#	file://0003-Weston1.9.0-Fix-virtual-keyboard-display-issue-for-Q.patch
+#	file://0004-Weston1.9.0-Fix-touch-screen-crash-issue.patch
+#	file://0001-Add-soc-performance-monitor-utilites.patch
+#	file://0001-compositor-drm-support-RGB565-with-pixman-renderer.patch
+#	file://0001-compositor-drm-fix-hotplug-weston-termination-proble.patch
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-03-09 18:05 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02 14:43 [PATCH 1/1] weston: restrict udev enumeration to /dev/dri/card0 Anand Balagopalakrishnan
2016-02-04 18:35 ` Denys Dmytriyenko
2016-02-05  7:09   ` Anand Balagopalakrishnan
2016-02-05 15:52     ` Denys Dmytriyenko
2016-02-09  5:49       ` Balagopalakrishnan, Anand
  -- strict thread matches above, loose matches on Subject: below --
2017-03-08  7:58 Anand Balagopalakrishnan
2017-03-08 14:36 ` Denys Dmytriyenko
2017-03-08 17:21   ` Balagopalakrishnan, Anand
2017-03-08 20:56     ` Ruei, Eric
2017-03-08 21:17       ` Denys Dmytriyenko
2017-03-08 21:39         ` Ruei, Eric
2017-03-09 10:29           ` Balagopalakrishnan, Anand
2017-03-09 16:22             ` Denys Dmytriyenko
2017-03-09 16:27               ` Balagopalakrishnan, Anand
2017-03-09 17:21                 ` Ruei, Eric
2017-03-09 17:43                   ` Balagopalakrishnan, Anand
2017-03-09 18:05                     ` Denys Dmytriyenko

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.