Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 49DC6E009BF; Mon, 21 Nov 2016 07:58:58 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [212.227.17.21 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (dominic.sacre[at]gmx.de) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 98216E009BF for ; Mon, 21 Nov 2016 07:58:55 -0800 (PST) Received: from dastp.fritz.box ([80.147.195.117]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LaKaw-1ccAbE076U-00m2yr; Mon, 21 Nov 2016 16:53:54 +0100 From: =?UTF-8?q?Dominic=20Sacr=C3=A9?= To: meta-freescale@yoctoproject.org Date: Mon, 21 Nov 2016 16:53:25 +0100 Message-Id: <20161121155325.30500-2-dominic.sacre@gmx.de> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161121155325.30500-1-dominic.sacre@gmx.de> References: <20161121155325.30500-1-dominic.sacre@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K0:Wi7q7u6IWwnpiP3f8QkC8ftWx4rN4dRFrzHYdyzT2ffS9ougSCO gqU+B9wNoTNSVeIhqbHir1tDy33f7idQmSHKaFKepTlAr8EhlJlrMyOVFLoWViDDo58T/Y+ KomHGxDSFcOYQBOYM8aE3HeWCTVtJTzKM+eiq8c3ev2spUK+b9lfPAJm9ZvOIBRbggmc8Gp QdqvAgLeZN42f22O37ntg== X-UI-Out-Filterresults: notjunk:1;V01:K0:dZ5Uts/NuCY=:h8bVU/iQ559455x4tG13s2 WBYvMopeVz9EEixM+ju6AgxbBk2UC9vN67h6dgQgLGNMz550lOdNZIIaKVKplZ3Nzm+KLJi9j R6RPCwUABSCnsDBscbMNqjnkzHp66zblH/jeNivPqAvwGCAstcleiC5UOAvmiMupcTCSYVc6u Z38O+GBPaWFzQRADCJJBqV2UaK+7k2sxnB75bFs+W2iQmq2dtUhGSfvuFvzJL59BBwNZUwfhv WYy3Rj5at/wgy7AJKT3un/c4A18SZzwNjYtErV9gFlCjBQCxHoJ8zNPniGoU4qCOzmeTBdABq U03qdRSYtBhFz6++VwC/0yuHwnhmP2fOIjKJlgm+lCF/Fx31gGBMFidIQ12Dw99dJrzP8moaZ hb3EfIOdCGofIL5JFI6elWz0hu62GwryHsmN2AlNzdDst8ZoMEGQlZ+v1/sfSiinLO77OwjxS vmsAh8f/8iOMYwhs94KSFu6ujLH5UC6egrQjntwDuAxRUOaB1ckdzHVCdYRy+VLWfDSjUyRO/ clb+i/jr9ZVT6jX5l6lrRSvd8in1EaMWkTjinK542i91pW7bQb9G9vwyYDmYukjKiD255MyQp 0uqy77aDh0Bii32AOiDABmcPdfwAUmzIVBFtiFDytX8jlfw7OxBvulagPG6z7Xni6321Hfu/k OW1r8ClvsEIr1VBwNWfxeh/fJvQ5D4ON060IaDcMbW7HZCsbtluqpdias/2jbHS1TOpQIZBXI GhXJxTCXj6MMbM5LoDq+SpwqOFGxfFLS8760+juQgzJgania3XLQ24kjaLlD48KO6XFDN0B9p ujfw0G5 Cc: =?UTF-8?q?Dominic=20Sacr=C3=A9?= Subject: [PATCH 2/2] linux-fslc-imx-rt: Add patch to support external imx-gpu-viv driver X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 15:58:58 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Dominic Sacré --- .../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 diff --git a/recipes-kernel/linux/linux-fslc-imx-rt/0004-export-swait-locked-functions.patch b/recipes-kernel/linux/linux-fslc-imx-rt/0004-export-swait-locked-functions.patch new file mode 100644 index 0000000..1a616aa --- /dev/null +++ b/recipes-kernel/linux/linux-fslc-imx-rt/0004-export-swait-locked-functions.patch @@ -0,0 +1,31 @@ +From 2460dd985b0cf477f74396de92d1bc5df496abdc Mon Sep 17 00:00:00 2001 +From: Julio Cruz +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 diff --git a/recipes-kernel/linux/linux-fslc-imx-rt_4.1-2.0.x.bb b/recipes-kernel/linux/linux-fslc-imx-rt_4.1-2.0.x.bb index fbb32d8..10610a5 100644 --- a/recipes-kernel/linux/linux-fslc-imx-rt_4.1-2.0.x.bb +++ b/recipes-kernel/linux/linux-fslc-imx-rt_4.1-2.0.x.bb @@ -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)" -- 2.10.2