Skip to contentSkip to conversation

kernel-module-imx-gpu-viv: Bump revision to 1be63fb

PATCH New Dominic Sacré 1 participant 2 messages Nov 21, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 kernel-module-imx-gpu-viv: Bump revision to 1be63fb

Bump revision to add support for kernels with RT_PREEMPT patch.

---
 .../kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.6+fslc.bb        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.6+fslc.bb +1 -1
index 8af0da0..247189f 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
 
 PV .= "+git${SRCPV}"
 
-SRCREV = "80a5e3aae469518d53b3b41d6623b7bf0f51f02b"
+SRCREV = "1be63fb14e9a2c72c1f50afaa02ed9244d86b1d4"
 SRC_URI = "git://github.com/Freescale/kernel-module-imx-gpu-viv.git;protocol=https"
 
 S = "${WORKDIR}/git"
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/2 linux-fslc-imx-rt: Add patch to support external imx-gpu-viv driver

Export functions swait_prepare_locked() and swait_finish_locked() to make them available to the external imx-gpu-viv driver module.

Remove the check whether MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE is set; both the built-in driver and the external module now work with the RT kernel.

---
 .../0004-export-swait-locked-functions.patch       | 31 ++++++++++++++++++++++
 .../linux/linux-fslc-imx-rt_4.1-2.0.x.bb           |  7 +----
 2 files changed, 32 insertions(+), 6 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-fslc-imx-rt/0004-export-swait-locked-functions.patch
recipes-kernel/linux/linux-fslc-imx-rt/0004-export-swait-locked-functions.patch new file +31 -0
new file mode 100644
index 0000000..1a616aa
@@ -0,0 +1,31 @@
+From 2460dd985b0cf477f74396de92d1bc5df496abdc Mon Sep 17 00:00:00 2001
+From: Julio Cruz <[email protected]>
+Date: Wed, 20 Jan 2016 19:26:44 +0800
+Subject: [PATCH] Export symbols for iMX-GPU-VIV module
+
+---
+ kernel/sched/wait-simple.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/kernel/sched/wait-simple.c b/kernel/sched/wait-simple.c
+index 7dfa86d..a3776ee 100644
+--- a/kernel/sched/wait-simple.c
++++ b/kernel/sched/wait-simple.c
+@@ -40,6 +40,7 @@ void swait_prepare_locked(struct swait_head *head, struct swaiter *w)
+ 	if (list_empty(&w->node))
+ 		__swait_enqueue(head, w);
+ }
++EXPORT_SYMBOL(swait_prepare_locked);
+ 
+ void swait_prepare(struct swait_head *head, struct swaiter *w, int state)
+ {
+@@ -58,6 +59,7 @@ void swait_finish_locked(struct swait_head *head, struct swaiter *w)
+ 	if (w->task)
+ 		__swait_dequeue(w);
+ }
++EXPORT_SYMBOL(swait_finish_locked);
+ 
+ void swait_finish(struct swait_head *head, struct swaiter *w)
+ {
+-- 
+2.1.0
recipes-kernel/linux/linux-fslc-imx-rt_4.1-2.0.x.bb +1 -6
index fbb32d8..10610a5 100644
@@ -16,16 +16,11 @@ SRC_URI += " \
     file://0001-fix-build.patch \
     file://0002-no-split-ptlocks.patch \
     file://0003-Work-around-CPU-stalls-in-the-imx-sdma-driver.patch \
+    file://0004-export-swait-locked-functions.patch \
 "
 
 SRC_URI[rt-patch.md5sum] = "6dd1193203cdf6a1a4758fc8baf07a4a"
 SRC_URI[rt-patch.sha256sum] = "427e736022e59f83c9489eda889559fcd4fe4abb5646570ade32f2128f2fa725"
 
-python () {
-    using_builtin_driver = (d.getVar("MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE", True) or "") != "1"
-    if not using_builtin_driver:
-        raise bb.parse.SkipPackage('You must use the builtin driver with the Linux RT patch as the external module does not yet include support for it. Set "MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE" accordingly.')
-}
-
 
 COMPATIBLE_MACHINE = "(mx6|mx7)"
Signature · 1 line
2.10.2