All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-fsl-arm PATCH 1/3] libdrm: Add fix to avoid GPU freeze
@ 2013-09-01 12:35 Otavio Salvador
  2013-09-01 12:35 ` [meta-fsl-arm PATCH 2/3] gpu-viv-bin-mx6q.inc: If Wayland and X11 are enabled, default to X11 Otavio Salvador
  2013-09-01 12:35 ` [meta-fsl-arm PATCH 3/3] xf86-video-imxfb-vivante: Remove unused patches Otavio Salvador
  0 siblings, 2 replies; 4+ messages in thread
From: Otavio Salvador @ 2013-09-01 12:35 UTC (permalink / raw)
  To: meta-freescale Mailing List; +Cc: Otavio Salvador

Add ARM support into xf86drm.h.  This provides support for Xorg
interface.  Without this the vivante samples will hang during close
requiring a reboot

Change-Id: I60ea3c87c35fadaa00c64baffd24f74f41dfbb9b
Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Evan Kotara <evan.kotara@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 .../drm/libdrm/mx6/drm-update-arm.patch            | 34 ++++++++++++++++++++++
 recipes-graphics/drm/libdrm_2.4.46.bbappend        |  5 ++++
 2 files changed, 39 insertions(+)
 create mode 100644 recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch
 create mode 100644 recipes-graphics/drm/libdrm_2.4.46.bbappend

diff --git a/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch
new file mode 100644
index 0000000..4389fe4
--- /dev/null
+++ b/recipes-graphics/drm/libdrm/mx6/drm-update-arm.patch
@@ -0,0 +1,34 @@
+Add ARM support into xf86arm.h.  This provides support for Xorg interface.
+Without this the vivante samples will hang during close requiring a reboot
+
+Upstream-Status: Pending
+
+Signed-off-by: Lauren Post <lauren.post@freescale.com>
+Signed-off-by: Evan Kotara <evan.kotara@freescale.com>
+
+diff --git a/xf86drm.h b/xf86drm.h
+--- a/xf86drm.h
++++ b/xf86drm.h
+@@ -455,6 +455,22 @@ do {	register unsigned int __old __asm("o0");		\
+ 		: "cr0", "memory");			\
+ 	} while (0)
+ 
++#elif defined(__arm__)
++       #undef DRM_DEV_MODE
++       #define DRM_DEV_MODE     (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
++
++       #define DRM_CAS(lock,old,new,__ret)             \
++       do {                                            \
++               __asm__ __volatile__ (                  \
++                       "1: ldrex %0, [%1]\n"           \
++                       "   teq %0, %2\n"               \
++                       "   strexeq %0, %3, [%1]\n"     \
++                       "   movne   %0, #1\n"           \
++               : "=&r" (__ret)                         \
++               : "r" (lock), "r" (old), "r" (new)      \
++               : "cc","memory");                       \
++       } while (0)
++
+ #endif /* architecture */
+ #endif /* __GNUC__ >= 2 */
+ 
diff --git a/recipes-graphics/drm/libdrm_2.4.46.bbappend b/recipes-graphics/drm/libdrm_2.4.46.bbappend
new file mode 100644
index 0000000..8c8ea6b
--- /dev/null
+++ b/recipes-graphics/drm/libdrm_2.4.46.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append_mx6 = "file://drm-update-arm.patch"
+
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
-- 
1.8.4.rc3



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

end of thread, other threads:[~2013-09-02 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-01 12:35 [meta-fsl-arm PATCH 1/3] libdrm: Add fix to avoid GPU freeze Otavio Salvador
2013-09-01 12:35 ` [meta-fsl-arm PATCH 2/3] gpu-viv-bin-mx6q.inc: If Wayland and X11 are enabled, default to X11 Otavio Salvador
2013-09-02 12:23   ` Daiane Angolini
2013-09-01 12:35 ` [meta-fsl-arm PATCH 3/3] xf86-video-imxfb-vivante: Remove unused patches Otavio Salvador

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.