Skip to contentSkip to conversation

linux-ti-staging: add Darren's SGX patches to make graphics work with 3.14

PATCH In review Denys Dmytriyenko 7 participants 16 messages Jul 30, 2014 – Apr 22, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 linux-ti-staging: add Darren's SGX patches to make graphics work with 3.14

From: Denys Dmytriyenko <[email protected]>

---
 recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg | 24 ++++++
 ...HACK-drm-fb_helper-enable-panning-support.patch | 51 ++++++++++++
 ...lcdc-add-vsync-callback-for-use-in-omaplf.patch | 96 +++++++++++++++++++++
 ...fix-the-ping-pong-dma-tearing-issue-seen-.patch | 97 ++++++++++++++++++++++
 ...se-pdata-quirks-for-sgx-deassert_hardrese.patch | 86 +++++++++++++++++++
 .../sgx/0005-ARM-dts-am437x-add-SGX-node.patch     | 41 +++++++++
 .../0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch  | 42 ++++++++++
 recipes-kernel/linux/linux-ti-staging_3.14.bb      | 20 +++--
 8 files changed, 452 insertions(+), 5 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_helper-enable-panning-support.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-HACK-drm-tilcdc-add-vsync-callback-for-use-in-omaplf.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix-the-ping-pong-dma-tearing-issue-seen-.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-dts-am437x-add-SGX-node.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch
recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg new file +24 -0
new file mode 100644
index 0000000..0291779
@@ -0,0 +1,24 @@
+##################################################
+# SGX Graphics config options
+##################################################
+CONFIG_DMA_SHARED_BUFFER=y
+CONFIG_TI_ST=n
+CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_TOUCHSCREEN_ADS7846=y
+CONFIG_I2C_ALGOBIT=y
+CONFIG_MFD_TPS65218=n
+CONFIG_DRM=y
+CONFIG_DRM_KMS_HELPER=y
+CONFIG_DRM_KMS_FB_HELPER=y
+CONFIG_DRM_GEM_CMA_HELPER=y
+CONFIG_DRM_KMS_CMA_HELPER=y
+CONFIG_DRM_I2C_NXP_TDA998X=y
+CONFIG_DRM_TILCDC=y
+CONFIG_FB_SYS_FILLRECT=y
+CONFIG_FB_SYS_COPYAREA=y
+CONFIG_FB_SYS_IMAGEBLIT=y
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+CONFIG_HDMI=y
+CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
+CONFIG_SND_DAVINCI_SOC=m
+CONFIG_SND_SIMPLE_CARD=n
recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_helper-enable-panning-support.patch new file +51 -0

51 lines not on this page · raw message

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-HACK-drm-tilcdc-add-vsync-callback-for-use-in-omaplf.patch new file +96 -0

96 lines not on this page · raw message

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix-the-ping-pong-dma-tearing-issue-seen-.patch new file +97 -0

97 lines not on this page · raw message

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch new file +86 -0

86 lines not on this page · raw message

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-dts-am437x-add-SGX-node.patch new file +41 -0

41 lines not on this page · raw message

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch new file +42 -0

42 lines not on this page · raw message

recipes-kernel/linux/linux-ti-staging_3.14.bb +15 -5
index b505640..c223c88 100644
@@ -3,8 +3,6 @@ DESCRIPTION = "Linux kernel for TI devices"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
-DEFAULT_PREFERENCE = "-1"
-
 inherit kernel
 
 require recipes-kernel/linux/linux-dtb.inc
@@ -49,7 +47,7 @@ SRCREV = "b0fa4f08d72c8723219b5174b5749151b5acaee0"
 PV = "3.14.14"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
-MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
 KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
@@ -57,10 +55,22 @@ KERNEL_CONFIG_FRAGMENTS = "${KERNEL_CONFIG_DIR}/audio_display.cfg ${KERNEL_CONFI
                            ${KERNEL_CONFIG_DIR}/connectivity.cfg ${KERNEL_CONFIG_DIR}/ipc.cfg \
                            ${KERNEL_CONFIG_DIR}/power.cfg"
 
-KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg"
-KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg"
+KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg ${WORKDIR}/sgx.cfg"
+KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg ${WORKDIR}/sgx.cfg"
+
+# Patches necessary to make SGX graphics work with this kernel version
+SGX_PATCHES = "file://sgx/0001-HACK-drm-fb_helper-enable-panning-support.patch \
+               file://sgx/0002-HACK-drm-tilcdc-add-vsync-callback-for-use-in-omaplf.patch \
+               file://sgx/0003-drm-tilcdc-fix-the-ping-pong-dma-tearing-issue-seen-.patch \
+               file://sgx/0004-ARM-OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch \
+               file://sgx/0005-ARM-dts-am437x-add-SGX-node.patch \
+               file://sgx/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch"
 
 SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=${BRANCH} \
            file://defconfig \
            file://non-smp.cfg \
+           file://sgx.cfg \
           "
+
+SRC_URI_append_ti33x = " ${SGX_PATCHES}"
+SRC_URI_append_ti43x = " ${SGX_PATCHES}"
Signature · 1 line
2.0.2
#1 lore raw

PATCH 2/2 omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

From: Denys Dmytriyenko <[email protected]>

---
 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52 +++++++
 ...x-use-platform-data-to-provide-reset-info.patch | 121 ++++++++++++++++
 ...class-am335x-am437x-fix-mutex-deadlock-wa.patch | 153 +++++++++++++++++++++
 ...-make-it-building-against-ti-linux-3.14.y.patch |  44 ++++++
 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 376 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch
recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch new file +52 -0
new file mode 100644
index 0000000..e541079
@@ -0,0 +1,52 @@
+From e2db38959a70d1be604a297276a0b0c2ac219bf5 Mon Sep 17 00:00:00 2001
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:06:17 -0500
+Subject: [PATCH 1/4] PoC: GFX: SDK: Make 5_01_01_01 work against 3.14 LTS
+
+An API rename is the main change.  Also hacked in some function prototypes
+for enabling use of the tilcdc DRM driver instead of the fbdev driver on
+AM335x.  However this all really needs a good cleanup as it is hacky at
+the moment.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 5 +++++
+ GFX_Linux_KM/services4/srvkm/env/linux/mutils.h                 | 6 +++++-
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+index 5c3fc48..3857b95 100644
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+@@ -93,6 +93,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #include <linux/mutex.h>
+ 
+ #include <video/da8xx-fb.h>
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg);
++int register_vsync_cb(vsync_callback_t handler, void *arg, int idx);
++int unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx);
++
+ #if defined(PVR_OMAPLFB_DRM_FB)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0))
+ #include <plat/display.h>
+diff --git a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+index 31e0dac..90ec41c 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+@@ -79,7 +79,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ 	#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
+ #else	
+ 	#if defined(__arm__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
+-		#define	IOREMAP(pa, bytes)	ioremap_cached(pa, bytes)
++		#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
++			#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
++		#else
++			#define	IOREMAP(pa, bytes)	ioremap_cached(pa, bytes)
++		#endif
+ 	#else
+ 		#define IOREMAP(pa, bytes)	ioremap(pa, bytes)
+ 	#endif
+-- 
+1.9.1
+
recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch new file +121 -0

121 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch new file +153 -0

153 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch new file +44 -0

44 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb +6 -1
index 40bf8c0..0b1c06f 100644
@@ -10,7 +10,7 @@ IMGPV = "1.10.2359475"
 
 inherit module
 
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 PR = "${MACHINE_KERNEL_PR}"
 
 BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
@@ -33,6 +33,11 @@ BINFILE := "${BINFILE_HARDFP}"
 
 SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"
 
+SRC_URI += "file://0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch;striplevel=2 \
+            file://0002-SGX-linux-use-platform-data-to-provide-reset-info.patch;striplevel=2 \
+            file://0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch;striplevel=2 \
+            file://0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch;striplevel=2"
+
 SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
 SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
 
Signature · 1 line
2.0.2
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

It might be a good idea to run sourceipk (meta-arago) on this so that the version of the Graphics SDK we bundle already have these patches included. Nothing we need to do here in meta-ti but just something to keep track of in meta-arago.

Quoted 519 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 29, 2014 8:35 PM
To: [email protected]
Subject: [meta-ti] [PATCH 2/2] omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

From: Denys Dmytriyenko <[email protected]>

---
...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch | 52 +++++++ ...x-use-
platform-data-to-provide-reset-info.patch | 121 ++++++++++++++++ ...class- am335x-am437x-fix-mutex-deadlock-wa.patch | 153 +++++++++++++++++++++ ...-make-it-building-against-ti-linux-3.14.y.patch | 44 ++++++

 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 376 insertions(+), 1 deletion(-)  create mode 100644 recipes-
bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-
5_01_01_01-work-against-3.14-LTS.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-
5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-
5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-
wa.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-

5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch

(quoted diff) +0 -0

PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch b/recipes- bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make- 5_01_01_01-work-against-3.14-LTS.patch
new file mode 100644
index 0000000..e541079

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC- new file +2 -0
+++ GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch
@@ -0,0 +1,52 @@
+From e2db38959a70d1be604a297276a0b0c2ac219bf5 Mon Sep 17 00:00:00

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC- new file +24 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:06:17 -0500
+Subject: [PATCH 1/4] PoC: GFX: SDK: Make 5_01_01_01 work against 3.14
+LTS
+
+An API rename is the main change.  Also hacked in some function
+prototypes for enabling use of the tilcdc DRM driver instead of the
+fbdev driver on AM335x.  However this all really needs a good cleanup
+as it is hacky at the moment.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 5
+++++
+ GFX_Linux_KM/services4/srvkm/env/linux/mutils.h                 | 6 +++++-
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git
+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+index 5c3fc48..3857b95 100644
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+@@ -93,6 +93,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR

OTHER DEALINGS IN THE SOFTWARE.
+ #include <linux/mutex.h>

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC- new file +16 -0
+
+ #include <video/da8xx-fb.h>
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg); int
++register_vsync_cb(vsync_callback_t handler, void *arg, int idx); int
++unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx);
++
+ #if defined(PVR_OMAPLFB_DRM_FB)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0))  #include
+<plat/display.h> diff --git
+a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+index 31e0dac..90ec41c 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+@@ -79,7 +79,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR

OTHER DEALINGS IN THE SOFTWARE.

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC- new file +3 -0
+ 	#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
+ #else
+ 	#if defined(__arm__) && (LINUX_VERSION_CODE >=

KERNEL_VERSION(2,6,0))
+- #define IOREMAP(pa, bytes) ioremap_cached(pa, bytes)
++ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
++ #define IOREMAP(pa, bytes) ioremap_cache(pa,
bytes)
++ #else
++ #define IOREMAP(pa, bytes) ioremap_cached(pa,
bytes)
++ #endif

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC- new file +6 -0
+ 	#else
+ 		#define IOREMAP(pa, bytes)	ioremap(pa, bytes)
+ 	#endif
+--
+1.9.1
+
(quoted diff) +0 -0

SGX-linux-use-platform-data-to-provide-reset-info.patch b/recipes- bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use- platform-data-to-provide-reset-info.patch
new file mode 100644
index 0000000..22b73fd

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +2 -0
+++ linux-use-platform-data-to-provide-reset-info.patch
@@ -0,0 +1,121 @@
+From 30a695502496302f804e14eeca90568f067b2db2 Mon Sep 17 00:00:00

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +22 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 25 Jul 2014 16:03:14 -0500
+Subject: [PATCH 2/4] SGX: linux: use platform data to provide reset
+info
+
+In ti-linux-3.14.y we will not have a reset driver unlike
+ti-linux-3.12.y so this commit removes the dependency on the reset
+driver and instead uses the platform data that in a dt environment is
+configured in mach-omap2/pdata-quirks.c
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/srvkm/env/linux/module.c | 34
+++++++++++++++++++++-----
+ 1 file changed, 28 insertions(+), 6 deletions(-)
+
+diff --git a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+index e03dc00..82d07f4 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+@@ -47,6 +47,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR

OTHER DEALINGS IN THE SOFTWARE.
+ #endif
+ #endif

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +35 -0
+
++#ifndef CONFIG_RESET_CONTROLLER
++#include <linux/platform_data/gfx-sgx.h> #endif
++
+ #if defined(SUPPORT_DRI_DRM) && !defined(SUPPORT_DRI_DRM_PLUGIN)
+ #define	PVR_MOD_STATIC
+ #else
+@@ -344,9 +348,11 @@ static LDM_DRV powervr_driver = {  LDM_DEV
+*gpsPVRLDMDev;
+
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+ struct reset_control *rstc;
+ bool already_deasserted = false;
+ #endif
++#endif
+
+ #if defined(MODULE) && defined(PVR_LDM_PLATFORM_MODULE) && \
+ 	!defined(PVR_USE_PRE_REGISTERED_PLATFORM_DEV)
+@@ -388,11 +394,14 @@ static int __devinit PVRSRVDriverProbe(LDM_DEV
+*pDevice, const struct pci_device  #endif  {
+ 	SYS_DATA *psSysData;
+-	int ret;
++	int ret;
++	struct device *dev = &pDevice->dev;
++	struct gfx_sgx_platform_data *pdata = dev->platform_data;
++
+ 	PVR_TRACE(("PVRSRVDriverProbe(pDevice=%p)", pDevice)); #if
+ (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+ 	rstc = reset_control_get(&pDevice->dev, NULL);
+-
+ 	if (IS_ERR(rstc))
+ 	{
+ 		dev_err(&pDevice->dev, "%s: error: reset_control_get\n",

__func__);
+@@ -403,7 +412,7 @@ static int __devinit PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +5 -0
+*pDevice, const struct pci_device
+
+ 	if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error:

reset_control_clear_reset\n", __func__);
++ dev_err(dev, "%s: error: reset_control_clear_reset\n",
__func__);

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +4 -0
+ 		return ret;
+ 	}
+
+@@ -413,11 +422,22 @@ static int __devinit PVRSRVDriverProbe(LDM_DEV

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +7 -0
+ 	{
+ 		already_deasserted = true;
+ 	}
+-	else if (ret < 0)
++	else if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error: reset_control_deassert\n",

__func__);
++ dev_err(dev, "%s: error: reset_control_deassert\n", __func__);

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +17 -0
+ 		return ret;
+ 	}
++#else
++	if (pdata && pdata->deassert_reset) {
++		ret = pdata->deassert_reset(pDevice, pdata->reset_name);
++		if (ret) {
++			dev_err(dev, "Unable to reset SGX!\n");
++		}
++	} else {
++		dev_err(dev, "SGX Platform data missing deassert_reset!\n");
++		return -ENODEV;
++	}
++#endif  /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ #if 0   /* INTEGRATION_POINT */
+@@ -432,7 +452,7 @@ static int __devinit PVRSRVDriverProbe(LDM_DEV

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +9 -0
+ 	{
+ 		return -EINVAL;
+ 	}
+-#endif
++#endif
+ 	/* SysInitialise only designed to be called once.
+ 	 */
+ 	psSysData = SysAcquireDataNoCheck();
+@@ -445,6 +465,7 @@ static int __devinit PVRSRVDriverProbe(LDM_DEV

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +8 -0
+ 		}
+ 	}
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+         if (!already_deasserted)
+         {
+                 ret = reset_control_is_reset(rstc); @@ -454,6 +475,7
+@@ static int __devinit PVRSRVDriverProbe(LDM_DEV *pDevice, const struct

pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX- new file +10 -0
+                 }
+         }
+         reset_control_put(rstc);
++#endif /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ 	return PVRSRVIONClientCreate();
+--
+1.9.1
+
(quoted diff) +0 -0

SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch b/recipes- bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass- am335x-am437x-fix-mutex-deadlock-wa.patch
new file mode 100644
index 0000000..0e2902d

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +12 -0
+++ displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch
@@ -0,0 +1,153 @@
+From cf5156ff82e14fe01a194f9fa9a9adc528ac72f0 Mon Sep 17 00:00:00 2001
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:39:56 -0500
+Subject: [PATCH 3/4] SGX: displayclass: am335x, am437x - fix mutex
+deadlock  warning
+
+Rearrange the locking semantics in the Unblank screen function to
+remove the kernel warning about a possible deadlock scenario.
+
+The warning presents itself on the console like this:
+[ 2976.202979]

======================================================
+[ 2976.202983] [ INFO: possible circular locking dependency detected ]
+[ 2976.202994] 3.14.11-00997-gb20d0ac-dirty #53 Tainted: G O
+[ 2976.202997] ------------------------------------------------------- +[ 2976.203005] OGLES2Chameleon/1203 is trying to acquire lock:
+[ 2976.203058] (console_lock){+.+.+.}, at: [<bf07a310>]

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +29 -0
+OMAPLFBUnblankDisplay+0x24/0xbc [omaplfb]
+[ 2976.203062]
+[ 2976.203062] but task is already holding lock:
+[ 2976.203087]  (&fb_info->lock){+.+.+.}, at: [<c0312358>]
+lock_fb_info+0x18/0x3c [ 2976.203090] [ 2976.203090] which lock already
+depends on the new lock.
+[ 2976.203090]
+[ 2976.203093]
+[ 2976.203093] the existing dependency chain (in reverse order) is:
+[ 2976.203101]
+[ 2976.203101] -> #1 (&fb_info->lock){+.+.+.}:
+[ 2976.203112]        [<c0312358>] lock_fb_info+0x18/0x3c
+[ 2976.203124]        [<c0313a7c>] register_framebuffer+0x174/0x26c
+[ 2976.203146]        [<c033c314>] omapfb_create_framebuffers+0x48c/0x7ac
+[ 2976.203157]        [<c033d3c4>] omapfb_probe+0x4d4/0x848
+[ 2976.203170]        [<c0381cc8>] platform_drv_probe+0x18/0x48
+[ 2976.203189]        [<c038096c>] driver_probe_device+0x10c/0x238
+[ 2976.203199]        [<c0380b2c>] __driver_attach+0x94/0x98
+[ 2976.203208]        [<c037f0f0>] bus_for_each_dev+0x54/0x88
+[ 2976.203216]        [<c03800f0>] bus_add_driver+0xd8/0x1d8
+[ 2976.203223]        [<c038115c>] driver_register+0x78/0xf4
+[ 2976.203234]        [<c0008968>] do_one_initcall+0xe4/0x144
+[ 2976.203250]        [<c07d3c18>] kernel_init_freeable+0xfc/0x1cc
+[ 2976.203261]        [<c0563260>] kernel_init+0x8/0xec
+[ 2976.203275]        [<c000e648>] ret_from_fork+0x14/0x2c
+[ 2976.203284]
+[ 2976.203284] -> #0 (console_lock){+.+.+.}:
+[ 2976.203301]        [<c008bc00>] console_lock+0x4c/0x60
+[ 2976.203328]        [<bf07a310>] OMAPLFBUnblankDisplay+0x24/0xbc

[omaplfb]
+[ 2976.203340] [<bf0797f4>] OpenDCDevice+0x60/0x78 [omaplfb]
+[ 2976.203459] [<bf041ac0>] PVRSRVOpenDCDeviceKM+0xec/0x178
[pvrsrvkm]
+[ 2976.203654] [<bf05645c>] PVRSRVOpenDCDeviceBW+0x6c/0xac
[pvrsrvkm]
+[ 2976.203811] [<bf056d10>] BridgedDispatchKM+0xf4/0x14c [pvrsrvkm]
+[ 2976.203966] [<bf04f304>] PVRSRV_BridgeDispatchKM+0xf0/0x204
+[pvrsrvkm]

+[ 2976.203987]        [<c0129500>] do_vfs_ioctl+0x78/0x61c
+[ 2976.203997]        [<c0129b08>] SyS_ioctl+0x64/0x74
+[ 2976.204013]        [<c000e580>] ret_fast_syscall+0x0/0x48

+[ 2976.204016]
+[ 2976.204016] other info that might help us debug this:
+[ 2976.204016]
+[ 2976.204019] Possible unsafe locking scenario:
+[ 2976.204019]

+[ 2976.204022]        CPU0                    CPU1
+[ 2976.204024]        ----                    ----

+[ 2976.204030] lock(&fb_info->lock);
+[ 2976.204036] lock(console_lock);
+[ 2976.204041] lock(&fb_info->lock);
+[ 2976.204046] lock(console_lock);
+[ 2976.204048]
+[ 2976.204048] *** DEADLOCK ***
+[ 2976.204048]
+[ 2976.204055] 2 locks held by OGLES2Chameleon/1203:
+[ 2976.204217] #0: (psPVRSRVMutex#2/1){+.+.+.}, at: [<bf04f238>]

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +19 -0
+PVRSRV_BridgeDispatchKM+0x24/0x204 [pvrsrvkm] [ 2976.204240]  #1:
+(&fb_info->lock){+.+.+.}, at: [<c0312358>] lock_fb_info+0x18/0x3c
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 8
++++++---
+GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c | 7
++++++--
+ 2 files changed, 10 insertions(+), 5 deletions(-)
+
+diff --git
+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+index 3857b95..a5cc7d0 100644
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+@@ -812,10 +812,13 @@ static OMAPLFB_ERROR
+OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM  {

#ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +8 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 			": %s: Device %u: Couldn't lock FB info\n",

__FUNCTION__,
+ psDevInfo->uiFBDevID);
++ OMAPLFB_CONSOLE_UNLOCK();

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +4 -0
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
+
+@@ -825,14 +828,13 @@ static OMAPLFB_ERROR

OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +24 -0
+ 	* notification.
+ 	*/
+
+-
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |= FBINFO_MISC_USEREVENT;
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 : 0);
+ 	psDevInfo->psLINFBInfo->flags &= ~FBINFO_MISC_USEREVENT;
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
++
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+diff --git
+a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c
+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c
+index c79dbd0..58b8640 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c
+@@ -948,10 +948,13 @@ static OMAPLFB_ERROR
+OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM  {

#ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +14 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 		": %s: Device %u: Couldn't lock FB info\n", __FUNCTION__,
+ psDevInfo->uiFBDevID);
++		OMAPLFB_CONSOLE_UNLOCK();
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
+
+@@ -961,13 +964,13 @@ static OMAPLFB_ERROR

OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX- new file +18 -0
+ 	* notification.
+ 	*/
+
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |= FBINFO_MISC_USEREVENT;
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 : 0);
+ 	psDevInfo->psLINFBInfo->flags &= ~FBINFO_MISC_USEREVENT;
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
++
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+--
+1.9.1
+
(quoted diff) +0 -0

SGX-linux-make-it-building-against-ti-linux-3.14.y.patch b/recipes- bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it- building-against-ti-linux-3.14.y.patch
new file mode 100644
index 0000000..b9c004f

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX- new file +2 -0
+++ linux-make-it-building-against-ti-linux-3.14.y.patch
@@ -0,0 +1,44 @@
+From 21e14daefe16351320e01392f188cf473f67702f Mon Sep 17 00:00:00

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX- new file +46 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:54:14 -0500
+Subject: [PATCH 4/4] SGX: linux: make it building against
+ti-linux-3.14.y
+
+The fbdev drivers moved into their own directory under drivers/video.
+All of the omap2 dss stuff moved there as well so update the Makefile
+to point to the right place.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild | 2 +-
+GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \
+-		-I$(KERNELDIR)/drivers/video/omap2 \
++		-I$(KERNELDIR)/drivers/video/fbdev/omap2 \
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+diff --git a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \
+-		-I$(KERNELDIR)/drivers/video/omap2 \
++		-I$(KERNELDIR)/drivers/video/fbdev/omap2 \
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+--
+1.9.1
+
recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb +1 -1
index 40bf8c0..0b1c06f 100644
@@ -10,7 +10,7 @@ IMGPV = "1.10.2359475"
 
 inherit module
 
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 PR = "${MACHINE_KERNEL_PR}"
 
 BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
@@ -33,6 +33,11 @@ BINFILE := "${BINFILE_HARDFP}"
 
 SRC_URI = "http://software-

dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"

+SRC_URI += "file://0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14- LTS.patch;striplevel=2 \
+ file://0002-SGX-linux-use-platform-data-to-provide-reset-
info.patch;striplevel=2 \
+ file://0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-
wa.patch;striplevel=2 \
+ file://0004-SGX-linux-make-it-building-against-ti-linux-
3.14.y.patch;striplevel=2"
+
SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"

--
2.0.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#3 lore raw

Re: [PATCH 2/2] omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Wednesday, July 30, 2014 1:38 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-ti] [PATCH 2/2] omap3-sgx-modules 5.01.01.01:
add Darren's patches to work with 3.14 kernel

Quoted 7 lines

It might be a good idea to run sourceipk (meta-arago) on this so that the version of the Graphics SDK we bundle already have these patches included.
Nothing we need to do here in meta-ti but just something to keep track of in meta-arago.

Well, until the graphics SDK splits out into drivers and libraries this would be everything. That may not be such a big deal overall if we then drop the graphics SDK installer binary from the backend packaging. This is something we have always wanted to do, but I was hoping that with a clean split of libraries and drivers we could then package drivers in the board-support directory and libraries elsewhere that makes more sense.

Quoted 634 lines
Quoted 7 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 29, 2014 8:35 PM
To: [email protected]
Subject: [meta-ti] [PATCH 2/2] omap3-sgx-modules 5.01.01.01: add

Darren's

Quoted 7 lines

patches to work with 3.14 kernel

From: Denys Dmytriyenko <[email protected]>

---
 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52

+++++++ ...x-use-

Quoted 1 line

platform-data-to-provide-reset-info.patch | 121 ++++++++++++++++

...class-

Quoted 1 line

am335x-am437x-fix-mutex-deadlock-wa.patch | 153

+++++++++++++++++++++

Quoted 3 lines

...-make-it-building-against-ti-linux-3.14.y.patch | 44 ++++++

 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 376 insertions(+), 1 deletion(-)  create mode

100644 recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-

SDK-Make-

Quoted 2 lines

5_01_01_01-work-against-3.14-LTS.patch

 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-

info.patch

Quoted 1 line
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-

deadlock-

Quoted 2 lines

wa.patch

 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-

3.14.y.patch

Review

Quoted 2 lines
(quoted diff) +0 -0

5.01.01.01/0001-

Quoted 1 line

PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-

SDK-Make-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

5_01_01_01-work-against-3.14-LTS.patch
new file mode 100644
index 0000000..e541079

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0001-PoC-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,52 @@
+From e2db38959a70d1be604a297276a0b0c2ac219bf5 Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:06:17 -0500
+Subject: [PATCH 1/4] PoC: GFX: SDK: Make 5_01_01_01 work

against 3.14

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+LTS
+
+An API rename is the main change.  Also hacked in some function
+prototypes for enabling use of the tilcdc DRM driver instead of

the

Quoted 1 line

+fbdev driver on AM335x. However this all really needs a good

cleanup

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+as it is hacky at the moment.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+

GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 5

Quoted 2 lines

+++++
+ GFX_Linux_KM/services4/srvkm/env/linux/mutils.h

| 6 +++++-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

+ 2 files changed, 10 insertions(+), 1 deletion(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 2 lines

+index 5c3fc48..3857b95 100644
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 8 lines

+@@ -93,6 +93,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #include <linux/mutex.h>
+
+ #include <video/da8xx-fb.h>
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg); int ++register_vsync_cb(vsync_callback_t handler, void *arg, int

idx); int

Quoted 1 line

++unregister_vsync_cb(vsync_callback_t handler, void *arg, int

idx);

Quoted 14 lines

++
+ #if defined(PVR_OMAPLFB_DRM_FB)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)) #include +<plat/display.h> diff --git

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+index 31e0dac..90ec41c 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+@@ -79,7 +79,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR

OTHER DEALINGS IN THE SOFTWARE.

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+ 	#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
+ #else
+ 	#if defined(__arm__) && (LINUX_VERSION_CODE >=
Quoted 2 lines

KERNEL_VERSION(2,6,0))
+- #define IOREMAP(pa, bytes) ioremap_cached(pa,

bytes)

Quoted 2 lines

++ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
++ #define IOREMAP(pa, bytes)

ioremap_cache(pa,

Quoted 3 lines

bytes)
++ #else
++ #define IOREMAP(pa, bytes)

ioremap_cached(pa,

Review

Quoted 9 lines

bytes)
++ #endif

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+ 	#else
+ 		#define IOREMAP(pa, bytes)	ioremap(pa, bytes)
+ 	#endif
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0002-

Quoted 1 line

SGX-linux-use-platform-data-to-provide-reset-info.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-

use-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

platform-data-to-provide-reset-info.patch
new file mode 100644
index 0000000..22b73fd

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0002-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ linux-use-platform-data-to-provide-reset-info.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,121 @@
+From 30a695502496302f804e14eeca90568f067b2db2 Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 25 Jul 2014 16:03:14 -0500
+Subject: [PATCH 2/4] SGX: linux: use platform data to provide

reset

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+info
+
+In ti-linux-3.14.y we will not have a reset driver unlike
+ti-linux-3.12.y so this commit removes the dependency on the

reset

Quoted 1 line

+driver and instead uses the platform data that in a dt

environment is

Quoted 14 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +14 -0
+configured in mach-omap2/pdata-quirks.c
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/srvkm/env/linux/module.c | 34
+++++++++++++++++++++-----
+ 1 file changed, 28 insertions(+), 6 deletions(-)
+
+diff --git a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+index e03dc00..82d07f4 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+@@ -47,6 +47,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR
Quoted 8 lines

OTHER DEALINGS IN THE SOFTWARE.
+ #endif
+ #endif
+
++#ifndef CONFIG_RESET_CONTROLLER
++#include <linux/platform_data/gfx-sgx.h> #endif
++
+ #if defined(SUPPORT_DRI_DRM) &&

!defined(SUPPORT_DRI_DRM_PLUGIN)

Quoted 5 lines

+ #define PVR_MOD_STATIC
+ #else
+@@ -344,9 +348,11 @@ static LDM_DRV powervr_driver = { LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+*gpsPVRLDMDev;
+

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+ struct reset_control *rstc;
+ bool already_deasserted = false;
+ #endif
++#endif
+
+ #if defined(MODULE) && defined(PVR_LDM_PLATFORM_MODULE) && \
+ 	!defined(PVR_USE_PRE_REGISTERED_PLATFORM_DEV)
+@@ -388,11 +394,14 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

Quoted 5 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+*pDevice, const struct pci_device  #endif  {
+ 	SYS_DATA *psSysData;
+-	int ret;
++	int ret;
++	struct device *dev = &pDevice->dev;

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
++	struct gfx_sgx_platform_data *pdata = dev->platform_data;
++
+ 	PVR_TRACE(("PVRSRVDriverProbe(pDevice=%p)", pDevice)); #if
+ (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+ 	rstc = reset_control_get(&pDevice->dev, NULL);
+-
+ 	if (IS_ERR(rstc))
+ 	{
+ 		dev_err(&pDevice->dev, "%s: error:

reset_control_get\n",

Quoted 2 lines

__func__);
+@@ -403,7 +412,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 12 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+*pDevice, const struct pci_device
+
+ 	if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error:

reset_control_clear_reset\n", __func__);
++ dev_err(dev, "%s: error: reset_control_clear_reset\n",
__func__);

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		return ret;
+ 	}
+
+@@ -413,11 +422,22 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 	{
+ 		already_deasserted = true;
+ 	}
+-	else if (ret < 0)
++	else if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error:

reset_control_deassert\n",

Quoted 2 lines

__func__);
++ dev_err(dev, "%s: error: reset_control_deassert\n",

__func__);

Quoted 11 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+ 		return ret;
+ 	}
++#else
++	if (pdata && pdata->deassert_reset) {
++		ret = pdata->deassert_reset(pDevice, pdata-

reset_name);
++ if (ret) {
++ dev_err(dev, "Unable to reset SGX!\n");
++ }
++ } else {
++ dev_err(dev, "SGX Platform data missing

deassert_reset!\n");

Quoted 7 lines

++ return -ENODEV;
++ }
++#endif /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ #if 0 /* INTEGRATION_POINT */
+@@ -432,7 +452,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +9 -0
+ 	{
+ 		return -EINVAL;
+ 	}
+-#endif
++#endif
+ 	/* SysInitialise only designed to be called once.
+ 	 */
+ 	psSysData = SysAcquireDataNoCheck();
+@@ -445,6 +465,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 		}
+ 	}
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+         if (!already_deasserted)
+         {
+                 ret = reset_control_is_reset(rstc); @@ -454,6

+475,7

Quoted 1 line

+@@ static int __devinit PVRSRVDriverProbe(LDM_DEV *pDevice,

const struct

Review

Quoted 12 lines

pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+                 }
+         }
+         reset_control_put(rstc);
++#endif /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ 	return PVRSRVIONClientCreate();
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0003-

Quoted 1 line

SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-

displayclass-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

am335x-am437x-fix-mutex-deadlock-wa.patch
new file mode 100644
index 0000000..0e2902d

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0003-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,153 @@
+From cf5156ff82e14fe01a194f9fa9a9adc528ac72f0 Mon Sep 17

00:00:00 2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 4

Quoted 3 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:39:56 -0500
+Subject: [PATCH 3/4] SGX: displayclass: am335x, am437x - fix

mutex

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 7

Quoted 3 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+deadlock  warning
+
+Rearrange the locking semantics in the Unblank screen function

to

Quoted 6 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+remove the kernel warning about a possible deadlock scenario.
+
+The warning presents itself on the console like this:
+[ 2976.202979]

======================================================
+[ 2976.202983] [ INFO: possible circular locking dependency

detected ]

Quoted 1 line

+[ 2976.202994] 3.14.11-00997-gb20d0ac-dirty #53 Tainted: G

O

Quoted 1 line

+[ 2976.202997] ------------------------------------------------

-------

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 7 lines

+[ 2976.203005] OGLES2Chameleon/1203 is trying to acquire lock:
+[ 2976.203058] (console_lock){+.+.+.}, at: [<bf07a310>]

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+OMAPLFBUnblankDisplay+0x24/0xbc [omaplfb]
+[ 2976.203062]
+[ 2976.203062] but task is already holding lock:
+[ 2976.203087]  (&fb_info->lock){+.+.+.}, at: [<c0312358>]
+lock_fb_info+0x18/0x3c [ 2976.203090] [ 2976.203090] which lock

already

Quoted 4 lines

+depends on the new lock.
+[ 2976.203090]
+[ 2976.203093]
+[ 2976.203093] the existing dependency chain (in reverse order)

is:

Quoted 4 lines

+[ 2976.203101]
+[ 2976.203101] -> #1 (&fb_info->lock){+.+.+.}:
+[ 2976.203112] [<c0312358>] lock_fb_info+0x18/0x3c
+[ 2976.203124] [<c0313a7c>]

register_framebuffer+0x174/0x26c

Quoted 1 line

+[ 2976.203146] [<c033c314>]

omapfb_create_framebuffers+0x48c/0x7ac
> +[ 2976.203157]        [<c033d3c4>] omapfb_probe+0x4d4/0x848
> +[ 2976.203170]        [<c0381cc8>] platform_drv_probe+0x18/0x48
Quoted 1 line

+[ 2976.203189] [<c038096c>]

driver_probe_device+0x10c/0x238
> +[ 2976.203199]        [<c0380b2c>] __driver_attach+0x94/0x98
> +[ 2976.203208]        [<c037f0f0>] bus_for_each_dev+0x54/0x88
> +[ 2976.203216]        [<c03800f0>] bus_add_driver+0xd8/0x1d8
> +[ 2976.203223]        [<c038115c>] driver_register+0x78/0xf4
> +[ 2976.203234]        [<c0008968>] do_one_initcall+0xe4/0x144
Quoted 1 line

+[ 2976.203250] [<c07d3c18>]

kernel_init_freeable+0xfc/0x1cc
> +[ 2976.203261]        [<c0563260>] kernel_init+0x8/0xec
> +[ 2976.203275]        [<c000e648>] ret_from_fork+0x14/0x2c
Quoted 4 lines

+[ 2976.203284]
+[ 2976.203284] -> #0 (console_lock){+.+.+.}:
+[ 2976.203301] [<c008bc00>] console_lock+0x4c/0x60
+[ 2976.203328] [<bf07a310>]

OMAPLFBUnblankDisplay+0x24/0xbc

Quoted 2 lines

[omaplfb]
+[ 2976.203340] [<bf0797f4>] OpenDCDevice+0x60/0x78

[omaplfb]

Quoted 1 line

+[ 2976.203459] [<bf041ac0>]

PVRSRVOpenDCDeviceKM+0xec/0x178

Quoted 2 lines

[pvrsrvkm]
+[ 2976.203654] [<bf05645c>]

PVRSRVOpenDCDeviceBW+0x6c/0xac

Quoted 2 lines

[pvrsrvkm]
+[ 2976.203811] [<bf056d10>] BridgedDispatchKM+0xf4/0x14c

[pvrsrvkm]

Quoted 1 line

+[ 2976.203966] [<bf04f304>]

PVRSRV_BridgeDispatchKM+0xf0/0x204

Quoted 9 lines

+[pvrsrvkm]

+[ 2976.203987]        [<c0129500>] do_vfs_ioctl+0x78/0x61c
+[ 2976.203997]        [<c0129b08>] SyS_ioctl+0x64/0x74
+[ 2976.204013]        [<c000e580>] ret_fast_syscall+0x0/0x48

+[ 2976.204016]
+[ 2976.204016] other info that might help us debug this:
+[ 2976.204016]
+[ 2976.204019] Possible unsafe locking scenario:
+[ 2976.204019]

Quoted 4 lines
+[ 2976.204022]        CPU0                    CPU1
+[ 2976.204024]        ----                    ----

+[ 2976.204030] lock(&fb_info->lock);
+[ 2976.204036]

lock(console_lock);

Quoted 8 lines

+[ 2976.204041] lock(&fb_info-
lock);
+[ 2976.204046] lock(console_lock);
+[ 2976.204048]
+[ 2976.204048] *** DEADLOCK ***
+[ 2976.204048]
+[ 2976.204055] 2 locks held by OGLES2Chameleon/1203:
+[ 2976.204217] #0: (psPVRSRVMutex#2/1){+.+.+.}, at:

[<bf04f238>]

Quoted 1 line

+PVRSRV_BridgeDispatchKM+0x24/0x204 [pvrsrvkm] [ 2976.204240]

#1:

Quoted 1 line

+(&fb_info->lock){+.+.+.}, at: [<c0312358>]

lock_fb_info+0x18/0x3c

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+

GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 8

Quoted 2 lines

++++++---
+GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

| 7

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

++++++--
+ 2 files changed, 10 insertions(+), 5 deletions(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 2 lines

+index 3857b95..a5cc7d0 100644
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 27 lines

+@@ -812,10 +812,13 @@ static OMAPLFB_ERROR +OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM { #ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 			": %s: Device %u: Couldn't lock FB info\n",

__FUNCTION__,
+ psDevInfo->uiFBDevID);
++ OMAPLFB_CONSOLE_UNLOCK();

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
+
+@@ -825,14 +828,13 @@ static OMAPLFB_ERROR

OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 	* notification.
+ 	*/
+
+-
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |= FBINFO_MISC_USEREVENT;
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 : 0);

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+ 	psDevInfo->psLINFBInfo->flags &= ~FBINFO_MISC_USEREVENT;
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
++
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 2 lines

+index c79dbd0..58b8640 100755
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 11 lines

+@@ -948,10 +948,13 @@ static OMAPLFB_ERROR +OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM { #ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 		": %s: Device %u: Couldn't lock FB info\n",

__FUNCTION__,

Review

Quoted 26 lines

+ psDevInfo->uiFBDevID);
++ OMAPLFB_CONSOLE_UNLOCK();

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
+
+@@ -961,13 +964,13 @@ static OMAPLFB_ERROR

OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +18 -0
+ 	* notification.
+ 	*/
+
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |= FBINFO_MISC_USEREVENT;
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 : 0);
+ 	psDevInfo->psLINFBInfo->flags &= ~FBINFO_MISC_USEREVENT;
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
++
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0004-

Quoted 1 line

SGX-linux-make-it-building-against-ti-linux-3.14.y.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-

make-it-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

building-against-ti-linux-3.14.y.patch
new file mode 100644
index 0000000..b9c004f

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0004-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ linux-make-it-building-against-ti-linux-3.14.y.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,44 @@
+From 21e14daefe16351320e01392f188cf473f67702f Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 7 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:54:14 -0500
+Subject: [PATCH 4/4] SGX: linux: make it building against
+ti-linux-3.14.y
+
+The fbdev drivers moved into their own directory under

drivers/video.

Quoted 1 line

+All of the omap2 dss stuff moved there as well so update the

Makefile

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 9 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +9 -0
+to point to the right place.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild | 2 +-
+GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \
+-		-I$(KERNELDIR)/drivers/video/omap2 \
++		-I$(KERNELDIR)/drivers/video/fbdev/omap2 \
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+diff --git

a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild

Review

Quoted 17 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +16 -0
+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \
+-		-I$(KERNELDIR)/drivers/video/omap2 \
++		-I$(KERNELDIR)/drivers/video/fbdev/omap2 \
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+--
+1.9.1
+
(quoted diff) +0 -0

modules_5.01.01.01.bb

Quoted 3 lines

b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb index 40bf8c0..0b1c06f 100644
--- a/recipes-bsp/powervr-drivers/omap3-sgx-

modules_5.01.01.01.bb

Quoted 1 line

+++ b/recipes-bsp/powervr-drivers/omap3-sgx-

modules_5.01.01.01.bb

recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb BINFILE := "${BINFILE_HARDFP}" · line 35

Quoted 13 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb +1 -1
@@ -10,7 +10,7 @@ IMGPV = "1.10.2359475"
 
 inherit module
 
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 PR = "${MACHINE_KERNEL_PR}"
 
 BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
@@ -33,6 +33,11 @@ BINFILE := "${BINFILE_HARDFP}"
 
 SRC_URI = "http://software-
 

dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"

Review BINFILE := "${BINFILE_HARDFP}" · line 36

Quoted 2 lines
(quoted diff) +1 -0
+SRC_URI += "file://0001-PoC-GFX-SDK-Make-5_01_01_01-work-

against-3.14-

Review BINFILE := "${BINFILE_HARDFP}" · line 38

Quoted 2 lines
(quoted diff) +1 -0
 LTS.patch;striplevel=2 \
+            file://0002-SGX-linux-use-platform-data-to-provide-

reset-

Review BINFILE := "${BINFILE_HARDFP}" · line 40

Quoted 2 lines
(quoted diff) +1 -0
 info.patch;striplevel=2 \
+            file://0003-SGX-displayclass-am335x-am437x-fix-

mutex-deadlock-

Review BINFILE := "${BINFILE_HARDFP}" · line 42

Quoted 2 lines
(quoted diff) +1 -0
 wa.patch;striplevel=2 \
+            file://0004-SGX-linux-make-it-building-against-ti-

linux-

Quoted 5 lines

3.14.y.patch;striplevel=2"
+
SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"

Quoted 8 lines

--
2.0.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#4 lore raw

Re: [PATCH 2/2] omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

Quoted 16 lines · Chase
Quoted 8 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Wednesday, July 30, 2014 1:38 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-ti] [PATCH 2/2] omap3-sgx-modules 5.01.01.01:
add Darren's patches to work with 3.14 kernel

Quoted 7 lines

It might be a good idea to run sourceipk (meta-arago) on this so that the version of the Graphics SDK we bundle already have these patches included.
Nothing we need to do here in meta-ti but just something to keep track of in meta-arago.

Quoted 6 lines

Well, until the graphics SDK splits out into drivers and libraries this would be everything. That may not be such a big deal overall if we then drop the graphics SDK installer binary from the backend packaging. This is something we have always wanted to do, but I was hoping that with a clean split of libraries and drivers we could then package drivers in the board-support directory and libraries elsewhere that makes more sense.

+1
Any ETA on when that's coming?

Quoted 638 lines
Quoted 633 lines
Quoted 6 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 29, 2014 8:35 PM
To: [email protected]
Subject: [meta-ti] [PATCH 2/2] omap3-sgx-modules 5.01.01.01: add

Darren's

Quoted 7 lines

patches to work with 3.14 kernel

From: Denys Dmytriyenko <[email protected]>

---
 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52

+++++++ ...x-use-

Quoted 1 line

platform-data-to-provide-reset-info.patch | 121 ++++++++++++++++

...class-

Quoted 1 line

am335x-am437x-fix-mutex-deadlock-wa.patch | 153

+++++++++++++++++++++

Quoted 3 lines

...-make-it-building-against-ti-linux-3.14.y.patch | 44 ++++++

 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 376 insertions(+), 1 deletion(-)  create mode

100644 recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-

SDK-Make-

Quoted 2 lines

5_01_01_01-work-against-3.14-LTS.patch

 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-

info.patch

Quoted 1 line
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-

deadlock-

Quoted 2 lines

wa.patch

 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-

3.14.y.patch

Review

Quoted 2 lines
(quoted diff) +0 -0

5.01.01.01/0001-

Quoted 1 line

PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-

SDK-Make-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

5_01_01_01-work-against-3.14-LTS.patch
new file mode 100644
index 0000000..e541079

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0001-PoC-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,52 @@
+From e2db38959a70d1be604a297276a0b0c2ac219bf5 Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:06:17 -0500
+Subject: [PATCH 1/4] PoC: GFX: SDK: Make 5_01_01_01 work

against 3.14

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+LTS
+
+An API rename is the main change.  Also hacked in some function
+prototypes for enabling use of the tilcdc DRM driver instead of

the

Quoted 1 line

+fbdev driver on AM335x. However this all really needs a good

cleanup

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+as it is hacky at the moment.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+

GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 5

Quoted 2 lines

+++++
+ GFX_Linux_KM/services4/srvkm/env/linux/mutils.h

| 6 +++++-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

+ 2 files changed, 10 insertions(+), 1 deletion(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 2 lines

+index 5c3fc48..3857b95 100644
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 8 lines

+@@ -93,6 +93,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #include <linux/mutex.h>
+
+ #include <video/da8xx-fb.h>
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg); int ++register_vsync_cb(vsync_callback_t handler, void *arg, int

idx); int

Quoted 1 line

++unregister_vsync_cb(vsync_callback_t handler, void *arg, int

idx);

Quoted 14 lines

++
+ #if defined(PVR_OMAPLFB_DRM_FB)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)) #include +<plat/display.h> diff --git

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+index 31e0dac..90ec41c 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+@@ -79,7 +79,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR

OTHER DEALINGS IN THE SOFTWARE.

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+ 	#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
+ #else
+ 	#if defined(__arm__) && (LINUX_VERSION_CODE >=
Quoted 2 lines

KERNEL_VERSION(2,6,0))
+- #define IOREMAP(pa, bytes) ioremap_cached(pa,

bytes)

Quoted 2 lines

++ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
++ #define IOREMAP(pa, bytes)

ioremap_cache(pa,

Quoted 3 lines

bytes)
++ #else
++ #define IOREMAP(pa, bytes)

ioremap_cached(pa,

Review

Quoted 9 lines

bytes)
++ #endif

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+ 	#else
+ 		#define IOREMAP(pa, bytes)	ioremap(pa, bytes)
+ 	#endif
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0002-

Quoted 1 line

SGX-linux-use-platform-data-to-provide-reset-info.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-

use-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

platform-data-to-provide-reset-info.patch
new file mode 100644
index 0000000..22b73fd

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0002-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ linux-use-platform-data-to-provide-reset-info.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,121 @@
+From 30a695502496302f804e14eeca90568f067b2db2 Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 25 Jul 2014 16:03:14 -0500
+Subject: [PATCH 2/4] SGX: linux: use platform data to provide

reset

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+info
+
+In ti-linux-3.14.y we will not have a reset driver unlike
+ti-linux-3.12.y so this commit removes the dependency on the

reset

Quoted 1 line

+driver and instead uses the platform data that in a dt

environment is

Quoted 14 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +14 -0
+configured in mach-omap2/pdata-quirks.c
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/srvkm/env/linux/module.c | 34
+++++++++++++++++++++-----
+ 1 file changed, 28 insertions(+), 6 deletions(-)
+
+diff --git a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+index e03dc00..82d07f4 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+@@ -47,6 +47,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR
Quoted 8 lines

OTHER DEALINGS IN THE SOFTWARE.
+ #endif
+ #endif
+
++#ifndef CONFIG_RESET_CONTROLLER
++#include <linux/platform_data/gfx-sgx.h> #endif
++
+ #if defined(SUPPORT_DRI_DRM) &&

!defined(SUPPORT_DRI_DRM_PLUGIN)

Quoted 5 lines

+ #define PVR_MOD_STATIC
+ #else
+@@ -344,9 +348,11 @@ static LDM_DRV powervr_driver = { LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+*gpsPVRLDMDev;
+

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+ struct reset_control *rstc;
+ bool already_deasserted = false;
+ #endif
++#endif
+
+ #if defined(MODULE) && defined(PVR_LDM_PLATFORM_MODULE) && \
+ 	!defined(PVR_USE_PRE_REGISTERED_PLATFORM_DEV)
+@@ -388,11 +394,14 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

Quoted 5 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+*pDevice, const struct pci_device  #endif  {
+ 	SYS_DATA *psSysData;
+-	int ret;
++	int ret;
++	struct device *dev = &pDevice->dev;

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
++	struct gfx_sgx_platform_data *pdata = dev->platform_data;
++
+ 	PVR_TRACE(("PVRSRVDriverProbe(pDevice=%p)", pDevice)); #if
+ (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+ 	rstc = reset_control_get(&pDevice->dev, NULL);
+-
+ 	if (IS_ERR(rstc))
+ 	{
+ 		dev_err(&pDevice->dev, "%s: error:

reset_control_get\n",

Quoted 2 lines

__func__);
+@@ -403,7 +412,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 12 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+*pDevice, const struct pci_device
+
+ 	if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error:

reset_control_clear_reset\n", __func__);
++ dev_err(dev, "%s: error: reset_control_clear_reset\n",
__func__);

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		return ret;
+ 	}
+
+@@ -413,11 +422,22 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 	{
+ 		already_deasserted = true;
+ 	}
+-	else if (ret < 0)
++	else if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error:

reset_control_deassert\n",

Quoted 2 lines

__func__);
++ dev_err(dev, "%s: error: reset_control_deassert\n",

__func__);

Quoted 11 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+ 		return ret;
+ 	}
++#else
++	if (pdata && pdata->deassert_reset) {
++		ret = pdata->deassert_reset(pDevice, pdata-

reset_name);
++ if (ret) {
++ dev_err(dev, "Unable to reset SGX!\n");
++ }
++ } else {
++ dev_err(dev, "SGX Platform data missing

deassert_reset!\n");

Quoted 7 lines

++ return -ENODEV;
++ }
++#endif /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ #if 0 /* INTEGRATION_POINT */
+@@ -432,7 +452,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +9 -0
+ 	{
+ 		return -EINVAL;
+ 	}
+-#endif
++#endif
+ 	/* SysInitialise only designed to be called once.
+ 	 */
+ 	psSysData = SysAcquireDataNoCheck();
+@@ -445,6 +465,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 		}
+ 	}
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+         if (!already_deasserted)
+         {
+                 ret = reset_control_is_reset(rstc); @@ -454,6

+475,7

Quoted 1 line

+@@ static int __devinit PVRSRVDriverProbe(LDM_DEV *pDevice,

const struct

Review

Quoted 12 lines

pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+                 }
+         }
+         reset_control_put(rstc);
++#endif /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ 	return PVRSRVIONClientCreate();
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0003-

Quoted 1 line

SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-

displayclass-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

am335x-am437x-fix-mutex-deadlock-wa.patch
new file mode 100644
index 0000000..0e2902d

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0003-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,153 @@
+From cf5156ff82e14fe01a194f9fa9a9adc528ac72f0 Mon Sep 17

00:00:00 2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 4

Quoted 3 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:39:56 -0500
+Subject: [PATCH 3/4] SGX: displayclass: am335x, am437x - fix

mutex

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 7

Quoted 3 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+deadlock  warning
+
+Rearrange the locking semantics in the Unblank screen function

to

Quoted 6 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+remove the kernel warning about a possible deadlock scenario.
+
+The warning presents itself on the console like this:
+[ 2976.202979]

======================================================
+[ 2976.202983] [ INFO: possible circular locking dependency

detected ]

Quoted 1 line

+[ 2976.202994] 3.14.11-00997-gb20d0ac-dirty #53 Tainted: G

O

Quoted 1 line

+[ 2976.202997] ------------------------------------------------

-------

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 7 lines

+[ 2976.203005] OGLES2Chameleon/1203 is trying to acquire lock:
+[ 2976.203058] (console_lock){+.+.+.}, at: [<bf07a310>]

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+OMAPLFBUnblankDisplay+0x24/0xbc [omaplfb]
+[ 2976.203062]
+[ 2976.203062] but task is already holding lock:
+[ 2976.203087]  (&fb_info->lock){+.+.+.}, at: [<c0312358>]
+lock_fb_info+0x18/0x3c [ 2976.203090] [ 2976.203090] which lock

already

Quoted 4 lines

+depends on the new lock.
+[ 2976.203090]
+[ 2976.203093]
+[ 2976.203093] the existing dependency chain (in reverse order)

is:

Quoted 4 lines

+[ 2976.203101]
+[ 2976.203101] -> #1 (&fb_info->lock){+.+.+.}:
+[ 2976.203112] [<c0312358>] lock_fb_info+0x18/0x3c
+[ 2976.203124] [<c0313a7c>]

register_framebuffer+0x174/0x26c

Quoted 1 line

+[ 2976.203146] [<c033c314>]

omapfb_create_framebuffers+0x48c/0x7ac
> +[ 2976.203157]        [<c033d3c4>] omapfb_probe+0x4d4/0x848
> +[ 2976.203170]        [<c0381cc8>] platform_drv_probe+0x18/0x48
Quoted 1 line

+[ 2976.203189] [<c038096c>]

driver_probe_device+0x10c/0x238
> +[ 2976.203199]        [<c0380b2c>] __driver_attach+0x94/0x98
> +[ 2976.203208]        [<c037f0f0>] bus_for_each_dev+0x54/0x88
> +[ 2976.203216]        [<c03800f0>] bus_add_driver+0xd8/0x1d8
> +[ 2976.203223]        [<c038115c>] driver_register+0x78/0xf4
> +[ 2976.203234]        [<c0008968>] do_one_initcall+0xe4/0x144
Quoted 1 line

+[ 2976.203250] [<c07d3c18>]

kernel_init_freeable+0xfc/0x1cc
> +[ 2976.203261]        [<c0563260>] kernel_init+0x8/0xec
> +[ 2976.203275]        [<c000e648>] ret_from_fork+0x14/0x2c
Quoted 4 lines

+[ 2976.203284]
+[ 2976.203284] -> #0 (console_lock){+.+.+.}:
+[ 2976.203301] [<c008bc00>] console_lock+0x4c/0x60
+[ 2976.203328] [<bf07a310>]

OMAPLFBUnblankDisplay+0x24/0xbc

Quoted 2 lines

[omaplfb]
+[ 2976.203340] [<bf0797f4>] OpenDCDevice+0x60/0x78

[omaplfb]

Quoted 1 line

+[ 2976.203459] [<bf041ac0>]

PVRSRVOpenDCDeviceKM+0xec/0x178

Quoted 2 lines

[pvrsrvkm]
+[ 2976.203654] [<bf05645c>]

PVRSRVOpenDCDeviceBW+0x6c/0xac

Quoted 2 lines

[pvrsrvkm]
+[ 2976.203811] [<bf056d10>] BridgedDispatchKM+0xf4/0x14c

[pvrsrvkm]

Quoted 1 line

+[ 2976.203966] [<bf04f304>]

PVRSRV_BridgeDispatchKM+0xf0/0x204

Quoted 9 lines

+[pvrsrvkm]

+[ 2976.203987]        [<c0129500>] do_vfs_ioctl+0x78/0x61c
+[ 2976.203997]        [<c0129b08>] SyS_ioctl+0x64/0x74
+[ 2976.204013]        [<c000e580>] ret_fast_syscall+0x0/0x48

+[ 2976.204016]
+[ 2976.204016] other info that might help us debug this:
+[ 2976.204016]
+[ 2976.204019] Possible unsafe locking scenario:
+[ 2976.204019]

Quoted 4 lines
+[ 2976.204022]        CPU0                    CPU1
+[ 2976.204024]        ----                    ----

+[ 2976.204030] lock(&fb_info->lock);
+[ 2976.204036]

lock(console_lock);

Quoted 8 lines

+[ 2976.204041] lock(&fb_info-
lock);
+[ 2976.204046] lock(console_lock);
+[ 2976.204048]
+[ 2976.204048] *** DEADLOCK ***
+[ 2976.204048]
+[ 2976.204055] 2 locks held by OGLES2Chameleon/1203:
+[ 2976.204217] #0: (psPVRSRVMutex#2/1){+.+.+.}, at:

[<bf04f238>]

Quoted 1 line

+PVRSRV_BridgeDispatchKM+0x24/0x204 [pvrsrvkm] [ 2976.204240]

#1:

Quoted 1 line

+(&fb_info->lock){+.+.+.}, at: [<c0312358>]

lock_fb_info+0x18/0x3c

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+

GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 8

Quoted 2 lines

++++++---
+GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

| 7

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

++++++--
+ 2 files changed, 10 insertions(+), 5 deletions(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 2 lines

+index 3857b95..a5cc7d0 100644
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 27 lines

+@@ -812,10 +812,13 @@ static OMAPLFB_ERROR +OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM { #ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 			": %s: Device %u: Couldn't lock FB info\n",

__FUNCTION__,
+ psDevInfo->uiFBDevID);
++ OMAPLFB_CONSOLE_UNLOCK();

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
+
+@@ -825,14 +828,13 @@ static OMAPLFB_ERROR

OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 	* notification.
+ 	*/
+
+-
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |= FBINFO_MISC_USEREVENT;
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 : 0);

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+ 	psDevInfo->psLINFBInfo->flags &= ~FBINFO_MISC_USEREVENT;
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
++
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 2 lines

+index c79dbd0..58b8640 100755
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 11 lines

+@@ -948,10 +948,13 @@ static OMAPLFB_ERROR +OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM { #ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 		": %s: Device %u: Couldn't lock FB info\n",

__FUNCTION__,

Review

Quoted 26 lines

+ psDevInfo->uiFBDevID);
++ OMAPLFB_CONSOLE_UNLOCK();

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
+
+@@ -961,13 +964,13 @@ static OMAPLFB_ERROR

OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +18 -0
+ 	* notification.
+ 	*/
+
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |= FBINFO_MISC_USEREVENT;
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 : 0);
+ 	psDevInfo->psLINFBInfo->flags &= ~FBINFO_MISC_USEREVENT;
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
++
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0004-

Quoted 1 line

SGX-linux-make-it-building-against-ti-linux-3.14.y.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-

make-it-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

building-against-ti-linux-3.14.y.patch
new file mode 100644
index 0000000..b9c004f

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0004-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ linux-make-it-building-against-ti-linux-3.14.y.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,44 @@
+From 21e14daefe16351320e01392f188cf473f67702f Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 7 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:54:14 -0500
+Subject: [PATCH 4/4] SGX: linux: make it building against
+ti-linux-3.14.y
+
+The fbdev drivers moved into their own directory under

drivers/video.

Quoted 1 line

+All of the omap2 dss stuff moved there as well so update the

Makefile

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 9 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +9 -0
+to point to the right place.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild | 2 +-
+GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \
+-		-I$(KERNELDIR)/drivers/video/omap2 \
++		-I$(KERNELDIR)/drivers/video/fbdev/omap2 \
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+diff --git

a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild

Review

Quoted 17 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +16 -0
+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \
+-		-I$(KERNELDIR)/drivers/video/omap2 \
++		-I$(KERNELDIR)/drivers/video/fbdev/omap2 \
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+--
+1.9.1
+
(quoted diff) +0 -0

modules_5.01.01.01.bb

Quoted 3 lines

b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb index 40bf8c0..0b1c06f 100644
--- a/recipes-bsp/powervr-drivers/omap3-sgx-

modules_5.01.01.01.bb

Quoted 1 line

+++ b/recipes-bsp/powervr-drivers/omap3-sgx-

modules_5.01.01.01.bb

recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb BINFILE := "${BINFILE_HARDFP}" · line 35

Quoted 13 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb +1 -1
@@ -10,7 +10,7 @@ IMGPV = "1.10.2359475"
 
 inherit module
 
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 PR = "${MACHINE_KERNEL_PR}"
 
 BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
@@ -33,6 +33,11 @@ BINFILE := "${BINFILE_HARDFP}"
 
 SRC_URI = "http://software-
 

dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"

Review BINFILE := "${BINFILE_HARDFP}" · line 36

Quoted 2 lines
(quoted diff) +1 -0
+SRC_URI += "file://0001-PoC-GFX-SDK-Make-5_01_01_01-work-

against-3.14-

Review BINFILE := "${BINFILE_HARDFP}" · line 38

Quoted 2 lines
(quoted diff) +1 -0
 LTS.patch;striplevel=2 \
+            file://0002-SGX-linux-use-platform-data-to-provide-

reset-

Review BINFILE := "${BINFILE_HARDFP}" · line 40

Quoted 2 lines
(quoted diff) +1 -0
 info.patch;striplevel=2 \
+            file://0003-SGX-displayclass-am335x-am437x-fix-

mutex-deadlock-

Review BINFILE := "${BINFILE_HARDFP}" · line 42

Quoted 2 lines
(quoted diff) +1 -0
 wa.patch;striplevel=2 \
+            file://0004-SGX-linux-make-it-building-against-ti-

linux-

Quoted 5 lines

3.14.y.patch;striplevel=2"
+
SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"

Quoted 8 lines

--
2.0.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#5 lore raw

Re: [PATCH 2/2] omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

Adding Naga so he can comment :)

Quoted 759 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, July 30, 2014 1:44 PM
To: Maupin, Chase
Cc: Cooper Jr., Franklin; Denys Dmytriyenko; meta- [email protected]
Subject: Re: [meta-ti] [PATCH 2/2] omap3-sgx-modules 5.01.01.01:
add Darren's patches to work with 3.14 kernel

Quoted 6 lines · Chase
Quoted 6 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Cooper Jr., Franklin
Sent: Wednesday, July 30, 2014 1:38 PM
To: Denys Dmytriyenko; [email protected]
Subject: Re: [meta-ti] [PATCH 2/2] omap3-sgx-modules

5.01.01.01:

Quoted 5 lines
Quoted 5 lines

add Darren's patches to work with 3.14 kernel

It might be a good idea to run sourceipk (meta-arago) on this

so

Quoted 1 line
Quoted 1 line

that the version of the Graphics SDK we bundle already have

these

Quoted 2 lines
Quoted 2 lines

patches included.
Nothing we need to do here in meta-ti but just something to

keep

Quoted 3 lines
Quoted 1 line

track of in meta-arago.

Well, until the graphics SDK splits out into drivers and

libraries this

Quoted 1 line

would be everything. That may not be such a big deal overall if

we then

Quoted 1 line

drop the graphics SDK installer binary from the backend

packaging. This is

Quoted 1 line

something we have always wanted to do, but I was hoping that

with a clean

Quoted 1 line

split of libraries and drivers we could then package drivers in

the

Quoted 1 line

board-support directory and libraries elsewhere that makes more

sense.

+1
Any ETA on when that's coming?

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 29, 2014 8:35 PM
To: [email protected]
Subject: [meta-ti] [PATCH 2/2] omap3-sgx-modules 5.01.01.01:

add

Quoted 10 lines
Quoted 10 lines

Darren's

Quoted 7 lines

patches to work with 3.14 kernel

From: Denys Dmytriyenko <[email protected]>

---
 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52

+++++++ ...x-use-

Quoted 1 line

platform-data-to-provide-reset-info.patch | 121

++++++++++++++++

Quoted 4 lines
Quoted 4 lines

...class-

Quoted 1 line

am335x-am437x-fix-mutex-deadlock-wa.patch | 153

+++++++++++++++++++++

Quoted 1 line

...-make-it-building-against-ti-linux-3.14.y.patch | 44

++++++

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 376 insertions(+), 1 deletion(-)  create

mode

Quoted 2 lines
Quoted 2 lines

100644 recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-

GFX-

Quoted 13 lines
Quoted 13 lines

SDK-Make-

Quoted 2 lines

5_01_01_01-work-against-3.14-LTS.patch

 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-

info.patch

Quoted 1 line
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 1 line

5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-

deadlock-

Quoted 2 lines

wa.patch

 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-

modules-

Quoted 8 lines
Quoted 8 lines
Quoted 1 line

5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-

3.14.y.patch

Review

Quoted 2 lines
(quoted diff) +0 -0

5.01.01.01/0001-

Quoted 1 line

PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-

GFX-

Quoted 11 lines
Quoted 11 lines

SDK-Make-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

5_01_01_01-work-against-3.14-LTS.patch
new file mode 100644
index 0000000..e541079

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0001-PoC-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,52 @@
+From e2db38959a70d1be604a297276a0b0c2ac219bf5 Mon Sep 17

00:00:00

Quoted 8 lines
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:06:17 -0500
+Subject: [PATCH 1/4] PoC: GFX: SDK: Make 5_01_01_01 work

against 3.14

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 3 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+LTS
+
+An API rename is the main change.  Also hacked in some

function

Quoted 1 line
Quoted 1 line
Quoted 1 line

+prototypes for enabling use of the tilcdc DRM driver instead

of

Quoted 2 lines
Quoted 2 lines

the

Quoted 1 line

+fbdev driver on AM335x. However this all really needs a

good

Quoted 7 lines
Quoted 7 lines

cleanup

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+as it is hacky at the moment.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+

GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

|

Quoted 10 lines
Quoted 8 lines

5

Quoted 2 lines

+++++
+ GFX_Linux_KM/services4/srvkm/env/linux/mutils.h

| 6 +++++-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

+ 2 files changed, 10 insertions(+), 1 deletion(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.

c

Quoted 3 lines
Quoted 1 line
Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.

c

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

+index 5c3fc48..3857b95 100644
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line
Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line
Quoted 1 line

+@@ -93,6 +93,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE

OR

Quoted 9 lines
Quoted 9 lines
Quoted 7 lines

OTHER DEALINGS IN THE SOFTWARE.
+ #include <linux/mutex.h>
+
+ #include <video/da8xx-fb.h>
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg); int ++register_vsync_cb(vsync_callback_t handler, void *arg, int

idx); int

Quoted 1 line

++unregister_vsync_cb(vsync_callback_t handler, void *arg,

int

Quoted 11 lines
Quoted 11 lines

idx);

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines

++
+ #if defined(PVR_OMAPLFB_DRM_FB)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)) #include +<plat/display.h> diff --git

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+index 31e0dac..90ec41c 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+@@ -79,7 +79,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE

OR

Quoted 2 lines
Quoted 2 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 2 lines

OTHER DEALINGS IN THE SOFTWARE.

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+ 	#define	IOREMAP(pa, bytes)	ioremap_cache(pa,

bytes)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

+ #else

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+ 	#if defined(__arm__) && (LINUX_VERSION_CODE >=

KERNEL_VERSION(2,6,0))
+- #define IOREMAP(pa, bytes)

ioremap_cached(pa,

Quoted 2 lines
Quoted 2 lines

bytes)

Quoted 1 line

++ #if (LINUX_VERSION_CODE >=

KERNEL_VERSION(3,13,0))

Quoted 16 lines
Quoted 16 lines
Quoted 1 line

++ #define IOREMAP(pa, bytes)

ioremap_cache(pa,

Quoted 3 lines

bytes)
++ #else
++ #define IOREMAP(pa, bytes)

ioremap_cached(pa,

Review

Quoted 9 lines

bytes)
++ #endif

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+ 	#else
+ 		#define IOREMAP(pa, bytes)	ioremap(pa, bytes)
+ 	#endif
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0002-

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

SGX-linux-use-platform-data-to-provide-reset-info.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-

linux-

Quoted 7 lines
Quoted 7 lines

use-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

platform-data-to-provide-reset-info.patch
new file mode 100644
index 0000000..22b73fd

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0002-SGX-

Quoted 8 lines
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ linux-use-platform-data-to-provide-reset-info.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,121 @@
+From 30a695502496302f804e14eeca90568f067b2db2 Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 25 Jul 2014 16:03:14 -0500
+Subject: [PATCH 2/4] SGX: linux: use platform data to

provide

Quoted 8 lines
Quoted 8 lines

reset

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+info
+
+In ti-linux-3.14.y we will not have a reset driver unlike
+ti-linux-3.12.y so this commit removes the dependency on the

reset

Quoted 1 line

+driver and instead uses the platform data that in a dt

environment is

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+configured in mach-omap2/pdata-quirks.c
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/srvkm/env/linux/module.c | 34
+++++++++++++++++++++-----
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

+ 1 file changed, 28 insertions(+), 6 deletions(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+
+diff --git a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+index e03dc00..82d07f4 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/module.c
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/module.c
+@@ -47,6 +47,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE

OR

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

OTHER DEALINGS IN THE SOFTWARE.
+ #endif
+ #endif
+
++#ifndef CONFIG_RESET_CONTROLLER
++#include <linux/platform_data/gfx-sgx.h> #endif
++
+ #if defined(SUPPORT_DRI_DRM) &&

Quoted 4 lines
Quoted 4 lines

!defined(SUPPORT_DRI_DRM_PLUGIN)

Quoted 3 lines

+ #define PVR_MOD_STATIC
+ #else
+@@ -344,9 +348,11 @@ static LDM_DRV powervr_driver = {

LDM_DEV

Quoted 10 lines
Quoted 10 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+*gpsPVRLDMDev;
+
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+ struct reset_control *rstc;
+ bool already_deasserted = false;
+ #endif
++#endif
+
+ #if defined(MODULE) && defined(PVR_LDM_PLATFORM_MODULE) &&

\

Quoted 12 lines
Quoted 9 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 2 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+ 	!defined(PVR_USE_PRE_REGISTERED_PLATFORM_DEV)
+@@ -388,11 +394,14 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

Quoted 6 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+*pDevice, const struct pci_device  #endif  {
+ 	SYS_DATA *psSysData;
+-	int ret;
++	int ret;
++	struct device *dev = &pDevice->dev;
++	struct gfx_sgx_platform_data *pdata = dev-

platform_data;

Quoted 2 lines
Quoted 2 lines

++

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+ 	PVR_TRACE(("PVRSRVDriverProbe(pDevice=%p)", pDevice));

#if

Quoted 10 lines
Quoted 10 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 7 lines

+ (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+ 	rstc = reset_control_get(&pDevice->dev, NULL);
+-
+ 	if (IS_ERR(rstc))
+ 	{
+ 		dev_err(&pDevice->dev, "%s: error:

reset_control_get\n",

Quoted 2 lines

__func__);
+@@ -403,7 +412,7 @@ static int __devinit

Quoted 8 lines
Quoted 8 lines

PVRSRVDriverProbe(LDM_DEV

Quoted 7 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+*pDevice, const struct pci_device
+
+ 	if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error:

reset_control_clear_reset\n", __func__);
++ dev_err(dev, "%s: error:

reset_control_clear_reset\n",

Quoted 14 lines
Quoted 14 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

__func__);

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		return ret;
+ 	}
+
+@@ -413,11 +422,22 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

Quoted 8 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 	{
+ 		already_deasserted = true;
+ 	}
+-	else if (ret < 0)
++	else if (ret < 0)
+ 	{
+-		dev_err(&pDevice->dev, "%s: error:
Quoted 3 lines
Quoted 3 lines

reset_control_deassert\n",

Quoted 2 lines

__func__);
++ dev_err(dev, "%s: error:

reset_control_deassert\n",

Quoted 32 lines
Quoted 32 lines

__func__);

Quoted 11 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+ 		return ret;
+ 	}
++#else
++	if (pdata && pdata->deassert_reset) {
++		ret = pdata->deassert_reset(pDevice, pdata-

reset_name);
++ if (ret) {
++ dev_err(dev, "Unable to reset SGX!\n");
++ }
++ } else {
++ dev_err(dev, "SGX Platform data missing

deassert_reset!\n");

Quoted 7 lines

++ return -ENODEV;
++ }
++#endif /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ #if 0 /* INTEGRATION_POINT */
+@@ -432,7 +452,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 10 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +9 -0
+ 	{
+ 		return -EINVAL;
+ 	}
+-#endif
++#endif
+ 	/* SysInitialise only designed to be called once.
+ 	 */
+ 	psSysData = SysAcquireDataNoCheck();
+@@ -445,6 +465,7 @@ static int __devinit

PVRSRVDriverProbe(LDM_DEV

Quoted 8 lines
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

*pDevice, const struct pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +7 -0
+ 		}
+ 	}
+ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
++#ifdef CONFIG_RESET_CONTROLLER
+         if (!already_deasserted)
+         {
+                 ret = reset_control_is_reset(rstc); @@ -

454,6

Quoted 30 lines
Quoted 30 lines

+475,7

Quoted 1 line

+@@ static int __devinit PVRSRVDriverProbe(LDM_DEV *pDevice,

const struct

Review

Quoted 12 lines

pci_device

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +10 -0
+                 }
+         }
+         reset_control_put(rstc);
++#endif /* CONFIG_RESET_CONTROLLER */
+ #endif
+
+ 	return PVRSRVIONClientCreate();
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0003-

Quoted 1 line

SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-

displayclass-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

am335x-am437x-fix-mutex-deadlock-wa.patch
new file mode 100644
index 0000000..0e2902d

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0003-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,153 @@
+From cf5156ff82e14fe01a194f9fa9a9adc528ac72f0 Mon Sep 17

00:00:00 2001

Quoted 7 lines
Quoted 7 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 4

Quoted 3 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:39:56 -0500
+Subject: [PATCH 3/4] SGX: displayclass: am335x, am437x - fix

mutex

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 7

Quoted 3 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+deadlock  warning
+
+Rearrange the locking semantics in the Unblank screen

function

Quoted 2 lines
Quoted 2 lines

to

Quoted 1 line
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+remove the kernel warning about a possible deadlock

scenario.

Quoted 9 lines
Quoted 9 lines
Quoted 5 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+
+The warning presents itself on the console like this:
+[ 2976.202979]

======================================================
+[ 2976.202983] [ INFO: possible circular locking dependency

detected ]

Quoted 1 line

+[ 2976.202994] 3.14.11-00997-gb20d0ac-dirty #53 Tainted: G

O

Quoted 1 line

+[ 2976.202997] ---------------------------------------------

---

Quoted 2 lines
Quoted 2 lines

-------

Quoted 1 line

+[ 2976.203005] OGLES2Chameleon/1203 is trying to acquire

lock:

Quoted 6 lines
Quoted 6 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 6 lines

+[ 2976.203058] (console_lock){+.+.+.}, at: [<bf07a310>]

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+OMAPLFBUnblankDisplay+0x24/0xbc [omaplfb]
+[ 2976.203062]
+[ 2976.203062] but task is already holding lock:
+[ 2976.203087]  (&fb_info->lock){+.+.+.}, at: [<c0312358>]
+lock_fb_info+0x18/0x3c [ 2976.203090] [ 2976.203090] which

lock

Quoted 5 lines
Quoted 5 lines

already

Quoted 4 lines

+depends on the new lock.
+[ 2976.203090]
+[ 2976.203093]
+[ 2976.203093] the existing dependency chain (in reverse

order)

Quoted 10 lines
Quoted 10 lines

is:

Quoted 4 lines

+[ 2976.203101]
+[ 2976.203101] -> #1 (&fb_info->lock){+.+.+.}:
+[ 2976.203112] [<c0312358>] lock_fb_info+0x18/0x3c
+[ 2976.203124] [<c0313a7c>]

register_framebuffer+0x174/0x26c

Quoted 1 line

+[ 2976.203146] [<c033c314>]

omapfb_create_framebuffers+0x48c/0x7ac
> +[ 2976.203157]        [<c033d3c4>] omapfb_probe+0x4d4/0x848
Quoted 1 line

+[ 2976.203170] [<c0381cc8>]

platform_drv_probe+0x18/0x48

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

+[ 2976.203189] [<c038096c>]

driver_probe_device+0x10c/0x238
> +[ 2976.203199]        [<c0380b2c>] __driver_attach+0x94/0x98
Quoted 1 line

+[ 2976.203208] [<c037f0f0>]

bus_for_each_dev+0x54/0x88
> >> +[ 2976.203216]        [<c03800f0>] bus_add_driver+0xd8/0x1d8
> >> +[ 2976.203223]        [<c038115c>] driver_register+0x78/0xf4
Quoted 1 line
Quoted 1 line
Quoted 1 line

+[ 2976.203234] [<c0008968>]

do_one_initcall+0xe4/0x144

Quoted 11 lines
Quoted 11 lines
Quoted 1 line

+[ 2976.203250] [<c07d3c18>]

kernel_init_freeable+0xfc/0x1cc
> +[ 2976.203261]        [<c0563260>] kernel_init+0x8/0xec
> +[ 2976.203275]        [<c000e648>] ret_from_fork+0x14/0x2c
Quoted 4 lines

+[ 2976.203284]
+[ 2976.203284] -> #0 (console_lock){+.+.+.}:
+[ 2976.203301] [<c008bc00>] console_lock+0x4c/0x60
+[ 2976.203328] [<bf07a310>]

OMAPLFBUnblankDisplay+0x24/0xbc

Quoted 2 lines

[omaplfb]
+[ 2976.203340] [<bf0797f4>] OpenDCDevice+0x60/0x78

Quoted 8 lines
Quoted 8 lines

[omaplfb]

Quoted 1 line

+[ 2976.203459] [<bf041ac0>]

PVRSRVOpenDCDeviceKM+0xec/0x178

Quoted 2 lines

[pvrsrvkm]
+[ 2976.203654] [<bf05645c>]

PVRSRVOpenDCDeviceBW+0x6c/0xac

Quoted 2 lines

[pvrsrvkm]
+[ 2976.203811] [<bf056d10>]

BridgedDispatchKM+0xf4/0x14c

Quoted 27 lines
Quoted 27 lines

[pvrsrvkm]

Quoted 1 line

+[ 2976.203966] [<bf04f304>]

PVRSRV_BridgeDispatchKM+0xf0/0x204

Quoted 9 lines

+[pvrsrvkm]

+[ 2976.203987]        [<c0129500>] do_vfs_ioctl+0x78/0x61c
+[ 2976.203997]        [<c0129b08>] SyS_ioctl+0x64/0x74
+[ 2976.204013]        [<c000e580>] ret_fast_syscall+0x0/0x48

+[ 2976.204016]
+[ 2976.204016] other info that might help us debug this:
+[ 2976.204016]
+[ 2976.204019] Possible unsafe locking scenario:
+[ 2976.204019]

Quoted 4 lines
+[ 2976.204022]        CPU0                    CPU1
+[ 2976.204024]        ----                    ----

+[ 2976.204030] lock(&fb_info->lock);
+[ 2976.204036]

lock(console_lock);

Quoted 8 lines

+[ 2976.204041] lock(&fb_info-
lock);
+[ 2976.204046] lock(console_lock);
+[ 2976.204048]
+[ 2976.204048] *** DEADLOCK ***
+[ 2976.204048]
+[ 2976.204055] 2 locks held by OGLES2Chameleon/1203:
+[ 2976.204217] #0: (psPVRSRVMutex#2/1){+.+.+.}, at:

[<bf04f238>]

Quoted 1 line

+PVRSRV_BridgeDispatchKM+0x24/0x204 [pvrsrvkm] [ 2976.204240]

Quoted 8 lines
Quoted 8 lines

#1:

Quoted 1 line

+(&fb_info->lock){+.+.+.}, at: [<c0312358>]

lock_fb_info+0x18/0x3c

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+

GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

|

Quoted 3 lines
Quoted 3 lines

8

Quoted 2 lines

++++++---

+GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 8 lines
Quoted 6 lines

| 7

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

++++++--
+ 2 files changed, 10 insertions(+), 5 deletions(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.

c

Quoted 3 lines
Quoted 1 line
Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.

c

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

+index 3857b95..a5cc7d0 100644
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 1 line
Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c

Quoted 2 lines
Quoted 2 lines

+@@ -812,10 +812,13 @@ static OMAPLFB_ERROR +OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

{

Quoted 9 lines
Quoted 9 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 9 lines

#ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 			": %s: Device %u: Couldn't lock FB

info\n",

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

__FUNCTION__,
+ psDevInfo->uiFBDevID);
++ OMAPLFB_CONSOLE_UNLOCK();

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +3 -0
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
+
Quoted 8 lines
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

+@@ -825,14 +828,13 @@ static OMAPLFB_ERROR OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+ 	* notification.
+ 	*/
+
+-
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |=

FBINFO_MISC_USEREVENT;

Quoted 1 line
Quoted 1 line

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 1 line
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 :

0);

Quoted 1 line
Quoted 1 line

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 1 line
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+ 	psDevInfo->psLINFBInfo->flags &=

~FBINFO_MISC_USEREVENT;

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
Quoted 8 lines
Quoted 6 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 6 lines

++

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+diff --git

+a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.

c

Quoted 3 lines
Quoted 1 line
Quoted 1 line

+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.

c

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

+index c79dbd0..58b8640 100755
+---

a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 1 line
Quoted 1 line

++++

b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/omaplfb_linux.c

Quoted 2 lines
Quoted 2 lines

+@@ -948,10 +948,13 @@ static OMAPLFB_ERROR +OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

{

Quoted 10 lines
Quoted 10 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 9 lines

#ifdef

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+FBDEV_PRESENT
+ 	int res;
++
++	OMAPLFB_CONSOLE_LOCK();
+ 	if (!lock_fb_info(psDevInfo->psLINFBInfo))
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+ 		": %s: Device %u: Couldn't lock FB info\n",

__FUNCTION__,

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines

+ psDevInfo->uiFBDevID);
++ OMAPLFB_CONSOLE_UNLOCK();

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+ 		return (OMAPLFB_ERROR_GENERIC);
+ 	}
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines

+
+@@ -961,13 +964,13 @@ static OMAPLFB_ERROR OMAPLFBBlankOrUnblankDisplay(OMAPLFB_DEVINFO *psDevInfo, IM

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+ 	* notification.
+ 	*/
+
+-	OMAPLFB_CONSOLE_LOCK();
+ 	psDevInfo->psLINFBInfo->flags |=

FBINFO_MISC_USEREVENT;

Quoted 1 line
Quoted 1 line

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 1 line
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+ 	res = fb_blank(psDevInfo->psLINFBInfo, bBlank ? 1 :

0);

Quoted 1 line
Quoted 1 line

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 1 line
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
+ 	psDevInfo->psLINFBInfo->flags &=

~FBINFO_MISC_USEREVENT;

Quoted 13 lines
Quoted 13 lines

Review

Quoted 12 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +11 -0
+
+-	OMAPLFB_CONSOLE_UNLOCK();
+ 	unlock_fb_info(psDevInfo->psLINFBInfo);
++	OMAPLFB_CONSOLE_UNLOCK();
++
+ 	if (res != 0 && res != -EINVAL)
+ 	{
+ 		printk(KERN_ERR DRIVER_PREFIX
+--
+1.9.1
+
(quoted diff) +0 -0

5.01.01.01/0004-

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

SGX-linux-make-it-building-against-ti-linux-3.14.y.patch

b/recipes-

Quoted 1 line

bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-

linux-

Quoted 19 lines
Quoted 19 lines

make-it-

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines

building-against-ti-linux-3.14.y.patch
new file mode 100644
index 0000000..b9c004f

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +0 -0

5.01.01.01/0004-SGX-

recipes-bsp/powervr-drivers/omap3-sgx-modules- line 1

Quoted 3 lines

+++ linux-make-it-building-against-ti-linux-3.14.y.patch

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +1 -0
@@ -0,0 +1,44 @@
+From 21e14daefe16351320e01392f188cf473f67702f Mon Sep 17

00:00:00

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 7 lines

2001

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 15:54:14 -0500
+Subject: [PATCH 4/4] SGX: linux: make it building against
+ti-linux-3.14.y
+
+The fbdev drivers moved into their own directory under

drivers/video.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

+All of the omap2 dss stuff moved there as well so update the

Makefile

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 5 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +5 -0
+to point to the right place.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild | 2
+-
> >> +GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild | 2
+-
Quoted 4 lines
Quoted 4 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 3 lines

+ 2 files changed, 2 insertions(+), 2 deletions(-)

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +2 -0
+
+diff --git

a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild

Quoted 8 lines
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/Kbuild
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-

I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \

Quoted 7 lines
Quoted 7 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 6 lines

+- -I$(KERNELDIR)/drivers/video/omap2 \
++ -I$(KERNELDIR)/drivers/video/fbdev/omap2 \

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +4 -0
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+diff --git

a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild

Quoted 8 lines
Quoted 8 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules-

Quoted 8 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +8 -0
+b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+index 1ae2359..7c2a39d 100755
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti43xx_linux/Kbuild
+@@ -14,7 +14,7 @@ EXTRA_CFLAGS =	-DLINUX \
+ 		-I$(PVR_BUILD_DIR)/include4 \
+ 		-I$(PVR_BUILD_DIR)/services4/include \
+ 		-

I$(PVR_BUILD_DIR)/services4/system/$(PVR_SYSTEM) \

Quoted 18 lines
Quoted 18 lines

Review

Quoted 9 lines

+- -I$(KERNELDIR)/drivers/video/omap2 \
++ -I$(KERNELDIR)/drivers/video/fbdev/omap2 \

recipes-bsp/powervr-drivers/omap3-sgx-modules- new file +6 -0
+ 		-I$(PVR_BUILD_DIR)/services4/system/include \
+ 		$(SYS_CFLAGS.1) \
+
+--
+1.9.1
+
(quoted diff) +0 -0

modules_5.01.01.01.bb

Quoted 3 lines

b/recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb index 40bf8c0..0b1c06f 100644
--- a/recipes-bsp/powervr-drivers/omap3-sgx-

modules_5.01.01.01.bb

Quoted 1 line

+++ b/recipes-bsp/powervr-drivers/omap3-sgx-

modules_5.01.01.01.bb

Quoted 2 lines
(quoted diff) +0 -0
@@ -10,7 +10,7 @@ IMGPV = "1.10.2359475"
 
Quoted 7 lines
Quoted 7 lines

recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb IMGPV = "1.10.2359475"

Quoted 7 lines
recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb +1 -1
 inherit module
 
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 PR = "${MACHINE_KERNEL_PR}"
 
 BINFILE_HARDFP =

"Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"

Quoted 11 lines
Quoted 4 lines

Review BINFILE := "${BINFILE_HARDFP}" · line 35

Quoted 4 lines
(quoted diff) +0 -0
@@ -33,6 +33,11 @@ BINFILE := "${BINFILE_HARDFP}"
 
 SRC_URI = "http://software-
 

dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"

Quoted 5 lines

Review BINFILE := "${BINFILE_HARDFP}" · line 36

Quoted 2 lines
(quoted diff) +1 -0
+SRC_URI += "file://0001-PoC-GFX-SDK-Make-5_01_01_01-work-

against-3.14-

Quoted 2 lines
(quoted diff) +1 -0
 LTS.patch;striplevel=2 \
+            file://0002-SGX-linux-use-platform-data-to-

provide-

Quoted 6 lines
Quoted 6 lines

reset-

Review BINFILE := "${BINFILE_HARDFP}" · line 40

Quoted 2 lines
(quoted diff) +1 -0
 info.patch;striplevel=2 \
+            file://0003-SGX-displayclass-am335x-am437x-fix-

mutex-deadlock-

Quoted 2 lines
(quoted diff) +1 -0
 wa.patch;striplevel=2 \
+            file://0004-SGX-linux-make-it-building-against-

ti-

Quoted 24 lines
Quoted 14 lines

linux-

Quoted 5 lines

3.14.y.patch;striplevel=2"
+
SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"

Quoted 8 lines

--
2.0.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Quoted 5 lines

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#6 lore raw

PATCH v2 2/2 omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

In reply to Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
v2 - update patch #4 to not break builds against 3.12 kernel

 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52 +++++++
 ...x-use-platform-data-to-provide-reset-info.patch | 121 ++++++++++++++++
 ...class-am335x-am437x-fix-mutex-deadlock-wa.patch | 153 +++++++++++++++++++++
 ...-make-it-building-against-ti-linux-3.14.y.patch |  45 ++++++
 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 377 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch
recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch new file +52 -0
new file mode 100644
index 0000000..e541079
@@ -0,0 +1,52 @@
+From e2db38959a70d1be604a297276a0b0c2ac219bf5 Mon Sep 17 00:00:00 2001
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:06:17 -0500
+Subject: [PATCH 1/4] PoC: GFX: SDK: Make 5_01_01_01 work against 3.14 LTS
+
+An API rename is the main change.  Also hacked in some function prototypes
+for enabling use of the tilcdc DRM driver instead of the fbdev driver on
+AM335x.  However this all really needs a good cleanup as it is hacky at
+the moment.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c | 5 +++++
+ GFX_Linux_KM/services4/srvkm/env/linux/mutils.h                 | 6 +++++-
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+index 5c3fc48..3857b95 100644
+--- a/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
++++ b/GFX_Linux_KM/services4/3rdparty/dc_ti335x_linux/omaplfb_linux.c
+@@ -93,6 +93,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #include <linux/mutex.h>
+ 
+ #include <video/da8xx-fb.h>
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg);
++int register_vsync_cb(vsync_callback_t handler, void *arg, int idx);
++int unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx);
++
+ #if defined(PVR_OMAPLFB_DRM_FB)
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0))
+ #include <plat/display.h>
+diff --git a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+index 31e0dac..90ec41c 100644
+--- a/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
++++ b/GFX_Linux_KM/services4/srvkm/env/linux/mutils.h
+@@ -79,7 +79,11 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ 	#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
+ #else	
+ 	#if defined(__arm__) && (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0))
+-		#define	IOREMAP(pa, bytes)	ioremap_cached(pa, bytes)
++		#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,13,0))
++			#define	IOREMAP(pa, bytes)	ioremap_cache(pa, bytes)
++		#else
++			#define	IOREMAP(pa, bytes)	ioremap_cached(pa, bytes)
++		#endif
+ 	#else
+ 		#define IOREMAP(pa, bytes)	ioremap(pa, bytes)
+ 	#endif
+-- 
+1.9.1
+
recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch new file +121 -0

121 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch new file +153 -0

153 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch new file +45 -0

45 lines not on this page · raw message

recipes-bsp/powervr-drivers/omap3-sgx-modules_5.01.01.01.bb +6 -1
index 40bf8c0..0b1c06f 100644
@@ -10,7 +10,7 @@ IMGPV = "1.10.2359475"
 
 inherit module
 
-MACHINE_KERNEL_PR_append = "a"
+MACHINE_KERNEL_PR_append = "b"
 PR = "${MACHINE_KERNEL_PR}"
 
 BINFILE_HARDFP = "Graphics_SDK_setuplinux_hardfp_${SGXPV}.bin"
@@ -33,6 +33,11 @@ BINFILE := "${BINFILE_HARDFP}"
 
 SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/gfxsdk/${SGXPV}/exports/${BINFILE}"
 
+SRC_URI += "file://0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch;striplevel=2 \
+            file://0002-SGX-linux-use-platform-data-to-provide-reset-info.patch;striplevel=2 \
+            file://0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch;striplevel=2 \
+            file://0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch;striplevel=2"
+
 SRC_URI[md5sum] := "${MD5SUM_HARDFP}"
 SRC_URI[sha256sum] := "${SHA256SUM_HARDFP}"
 
Signature · 1 line
2.0.2
#7 lore raw

Re: [PATCH v2 2/2] omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

Quoted 6 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
v2 - update patch #4 to not break builds against 3.12 kernel

Quoted 11 lines
 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52 +++++++
 ...x-use-platform-data-to-provide-reset-info.patch | 121 ++++++++++++++++
 ...class-am335x-am437x-fix-mutex-deadlock-wa.patch | 153 +++++++++++++++++++++
 ...-make-it-building-against-ti-linux-3.14.y.patch |  45 ++++++
 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 377 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch

[snip]

It looks like the new 5.01.01.02 also needs some of these patches:

| /home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.c:411:2:
error: implicit declaration of function 'reset_control_clear_reset'
[-Werror=implicit-function-declaration]

|   ret = reset_control_clear_reset(rstc);
|   ^
| /home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.c:471:17:
error: implicit declaration of function 'reset_control_is_reset'
[-Werror=implicit-function-declaration]
|                  ret = reset_control_is_reset(rstc);
|                  ^
| /home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.c:399:32:
warning: unused variable 'pdata' [-Wunused-variable]
|   struct gfx_sgx_platform_data *pdata = dev->platform_data;
|                                 ^
| cc1: some warnings being treated as errors
| /home/cody/obj/y/tmp/work-shared/beaglebone/kernel-source/scripts/Makefile.build:257:

recipe for target '/home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.o' failed

#8 lore raw

Re: [PATCH v2 2/2] omap3-sgx-modules 5.01.01.01: add Darren's patches to work with 3.14 kernel

Quoted 18 lines · Cody P Schafer
Quoted 6 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

---
v2 - update patch #4 to not break builds against 3.12 kernel

Quoted 11 lines
 ...SDK-Make-5_01_01_01-work-against-3.14-LTS.patch |  52 +++++++
 ...x-use-platform-data-to-provide-reset-info.patch | 121 ++++++++++++++++
 ...class-am335x-am437x-fix-mutex-deadlock-wa.patch | 153 +++++++++++++++++++++
 ...-make-it-building-against-ti-linux-3.14.y.patch |  45 ++++++
 .../omap3-sgx-modules_5.01.01.01.bb                |   7 +-
 5 files changed, 377 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0001-PoC-GFX-SDK-Make-5_01_01_01-work-against-3.14-LTS.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0002-SGX-linux-use-platform-data-to-provide-reset-info.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0003-SGX-displayclass-am335x-am437x-fix-mutex-deadlock-wa.patch
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules-5.01.01.01/0004-SGX-linux-make-it-building-against-ti-linux-3.14.y.patch
Quoted 3 lines

[snip]

It looks like the new 5.01.01.02 also needs some of these patches:

Those patches got merged into the recent staging kernel. So, no, they are no longer needed.

Quoted 24 lines

| /home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.c:411:2:
error: implicit declaration of function 'reset_control_clear_reset'
[-Werror=implicit-function-declaration]

|   ret = reset_control_clear_reset(rstc);
|   ^
| /home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.c:471:17:
error: implicit declaration of function 'reset_control_is_reset'
[-Werror=implicit-function-declaration]
|                  ret = reset_control_is_reset(rstc);
|                  ^
| /home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.c:399:32:
warning: unused variable 'pdata' [-Wunused-variable]
|   struct gfx_sgx_platform_data *pdata = dev->platform_data;
|                                 ^
| cc1: some warnings being treated as errors
| /home/cody/obj/y/tmp/work-shared/beaglebone/kernel-source/scripts/Makefile.build:257:

recipe for target '/home/cody/obj/y/tmp/work/beaglebone-poky-linux-gnueabi/omap3-sgx-modules/5.01.01.02-b/Graphics_SDK_5_01_01_02/GFX_Linux_KM/services4/srvkm/env/linux/module.o' failed

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Acked-by on v1 1/2
#9 lore raw
In reply to Denys Dmytriyenko

Although we really need to move away from having these kernel config fragments within OE and not pushed back to the kernel. I understand the sgx stuff is currently a work in progress but just something for the future before we have an official "release".

Quoted 624 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 29, 2014 8:35 PM
To: [email protected]
Subject: [meta-ti] [PATCH 1/2] linux-ti-staging: add Darren's SGX patches to make graphics work with 3.14

From: Denys Dmytriyenko <[email protected]>

---
recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg | 24 ++++++ ...HACK-drm-
fb_helper-enable-panning-support.patch | 51 ++++++++++++ ...lcdc-add- vsync-callback-for-use-in-omaplf.patch | 96 +++++++++++++++++++++ ...fix- the-ping-pong-dma-tearing-issue-seen-.patch | 97 ++++++++++++++++++++++ ...se-pdata-quirks-for-sgx-deassert_hardrese.patch | 86 +++++++++++++++++++

 .../sgx/0005-ARM-dts-am437x-add-SGX-node.patch     | 41 +++++++++
 .../0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch  | 42 ++++++++++
 recipes-kernel/linux/linux-ti-staging_3.14.bb      | 20 +++--
 8 files changed, 452 insertions(+), 5 deletions(-)  create mode 100644 recipes-
kernel/linux/linux-ti-staging-3.14/sgx.cfg
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-
HACK-drm-fb_helper-enable-panning-support.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-
HACK-drm-tilcdc-add-vsync-callback-for-use-in-omaplf.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-
tilcdc-fix-the-ping-pong-dma-tearing-issue-seen-.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-
OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-
dts-am437x-add-SGX-node.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-

dts-am33xx-add-DT-node-for-gpu.patch

recipes- renamed from recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg +0 -0

kernel/linux/linux-ti-staging-3.14/sgx.cfg
new file mode 100644
index 0000000..0291779

recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg new file +24 -0
@@ -0,0 +1,24 @@
+##################################################
+# SGX Graphics config options
+##################################################
+CONFIG_DMA_SHARED_BUFFER=y
+CONFIG_TI_ST=n
+CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_TOUCHSCREEN_ADS7846=y
+CONFIG_I2C_ALGOBIT=y
+CONFIG_MFD_TPS65218=n
+CONFIG_DRM=y
+CONFIG_DRM_KMS_HELPER=y
+CONFIG_DRM_KMS_FB_HELPER=y
+CONFIG_DRM_GEM_CMA_HELPER=y
+CONFIG_DRM_KMS_CMA_HELPER=y
+CONFIG_DRM_I2C_NXP_TDA998X=y
+CONFIG_DRM_TILCDC=y
+CONFIG_FB_SYS_FILLRECT=y
+CONFIG_FB_SYS_COPYAREA=y
+CONFIG_FB_SYS_IMAGEBLIT=y
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+CONFIG_HDMI=y
+CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
+CONFIG_SND_DAVINCI_SOC=m
+CONFIG_SND_SIMPLE_CARD=n
(quoted diff) +0 -0

fb_helper-enable-panning-support.patch b/recipes-kernel/linux/linux-ti- staging-3.14/sgx/0001-HACK-drm-fb_helper-enable-panning-support.patch new file mode 100644
index 0000000..e760248

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +2 -0
+++ lper-enable-panning-support.patch
@@ -0,0 +1,51 @@
+From d9d8fea4c60b3a44e8660408eb9337413b108b15 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +31 -0
+From: Darren Etheridge <[email protected]>
+Date: Thu, 24 Jul 2014 11:49:28 -0500
+Subject: [PATCH 1/6] HACK: drm/fb_helper: enable panning support
+
+Increase the size of the buffer that is created in the fbdev emulation
+helpers.  And fill in the var structure with the amount that was allocated.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ drivers/gpu/drm/drm_fb_cma_helper.c | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c
+b/drivers/gpu/drm/drm_fb_cma_helper.c
+index 61b5a47..2e2c489 100644
+--- a/drivers/gpu/drm/drm_fb_cma_helper.c
++++ b/drivers/gpu/drm/drm_fb_cma_helper.c
+@@ -25,6 +25,12 @@
+ #include <drm/drm_fb_cma_helper.h>
+ #include <linux/module.h>
+
++/*
++ * number of buffers to allocate from CMA pool, often increased for
++ * double/triple buffering
++ */
++#define DRM_NUM_FBDEV_BUFFERS 3
++
+ struct drm_fb_cma {
+ 	struct drm_framebuffer		fb;
+ 	struct drm_gem_cma_object	*obj[4];
+@@ -265,7 +271,7 @@ static int drm_fbdev_cma_create(struct

drm_fb_helper *helper,

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +5 -0
+ 	bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8);
+
+ 	mode_cmd.width = sizes->surface_width;
+-	mode_cmd.height = sizes->surface_height;
++	mode_cmd.height = sizes->surface_height *

DRM_NUM_FBDEV_BUFFERS;

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +2 -0
+ 	mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel;
+ 	mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes-
Quoted 1 line

surface_bpp,

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +2 -0
+ 		sizes->surface_depth);
+@@ -304,7 +310,7 @@ static int drm_fbdev_cma_create(struct

drm_fb_helper *helper,

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +12 -0
+ 	}
+
+ 	drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
+-	drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);
++	drm_fb_helper_fill_var(fbi, helper, fb->width,
++sizes->surface_height);
+
+ 	offset = fbi->var.xoffset * bytes_per_pixel;
+ 	offset += fbi->var.yoffset * fb->pitches[0];
+--
+1.9.1
+
(quoted diff) +0 -0

tilcdc-add-vsync-callback-for-use-in-omaplf.patch b/recipes-kernel/linux/linux- ti-staging-3.14/sgx/0002-HACK-drm-tilcdc-add-vsync-callback-for-use-in- omaplf.patch
new file mode 100644
index 0000000..d154508

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-HACK-drm-tilcd new file +2 -0
+++ c-add-vsync-callback-for-use-in-omaplf.patch
@@ -0,0 +1,96 @@
+From eaf6ac95a81612250d6bd5e2ed9da41e52aac444 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-HACK-drm-tilcd new file +96 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 11 Jul 2014 09:15:25 -0500
+Subject: [PATCH 2/6] HACK: drm/tilcdc: add vsync callback for use in
+omaplfb  for gpu
+
+Add a vsync callback registration API that is identical to what was
+done for da8xx-fb.c.
+
+Need to find if there is a better way using the DRM infrastructure from
+kernel space.  Either that or change the userspace window manager stuff
+in the gpu libraries to make use of the DRM provided syncronization
+mechanisms.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 34
+++++++++++++++++++++++++++++++++++
+ drivers/gpu/drm/tilcdc/tilcdc_drv.h  |  5 +++++
+ 2 files changed, 39 insertions(+)
+
+diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+index 4b6b139..bf94a0f 100644
+--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
++++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+@@ -37,6 +37,10 @@ struct tilcdc_crtc {
+ 	/* for deferred fb unref's: */
+ 	struct drm_flip_work unref_work;
+ };
++
++static vsync_callback_t vsync_cb_handler; static void *vsync_cb_arg;
++
+ #define to_tilcdc_crtc(x) container_of(x, struct tilcdc_crtc, base)
+
+ static void unref_worker(struct drm_flip_work *work, void *val) @@
+-576,6 +580,32 @@ out:
+ 	pm_runtime_put_sync(dev->dev);
+ }
+
++int register_vsync_cb(vsync_callback_t handler, void *arg, int idx) {
++	if ((vsync_cb_handler == NULL) && (vsync_cb_arg == NULL)) {
++		vsync_cb_arg = arg;
++		vsync_cb_handler = handler;
++	} else {
++		return -EEXIST;
++	}
++
++	return 0;
++}
++EXPORT_SYMBOL(register_vsync_cb);
++
++int unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx)
++{
++	if ((vsync_cb_handler == handler) && (vsync_cb_arg == arg)) {
++		vsync_cb_handler = NULL;
++		vsync_cb_arg = NULL;
++	} else {
++		return -ENXIO;
++	}
++
++	return 0;
++}
++EXPORT_SYMBOL(unregister_vsync_cb);
++
+ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc)  {
+ 	struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); @@ -610,6
++640,10 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc)
+ 		tilcdc_crtc->event = NULL;
+ 		if (event)
+ 			drm_send_vblank_event(dev, 0, event);
++
++		if (vsync_cb_handler)
++			vsync_cb_handler(vsync_cb_arg);
++
+ 		spin_unlock_irqrestore(&dev->event_lock, flags);
+
+ 		if (dirty && !tilcdc_crtc->dirty)
+diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.h
+b/drivers/gpu/drm/tilcdc/tilcdc_drv.h
+index 0938036..05269be 100644
+--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.h
++++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.h
+@@ -170,4 +170,9 @@ void tilcdc_crtc_set_panel_info(struct drm_crtc
+*crtc,  int tilcdc_crtc_mode_valid(struct drm_crtc *crtc, struct
+drm_display_mode *mode);  int tilcdc_crtc_max_width(struct drm_crtc
+*crtc);
+
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg); int
++register_vsync_cb(vsync_callback_t handler, void *arg, int idx); int
++unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx);
++
+ #endif /* __TILCDC_DRV_H__ */
+--
+1.9.1
+
(quoted diff) +0 -0

the-ping-pong-dma-tearing-issue-seen-.patch b/recipes-kernel/linux/linux-ti- staging-3.14/sgx/0003-drm-tilcdc-fix-the-ping-pong-dma-tearing-issue-seen- .patch
new file mode 100644
index 0000000..b3d0466

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +2 -0
+++ -the-ping-pong-dma-tearing-issue-seen-.patch
@@ -0,0 +1,97 @@
+From 7b4400287144101f8c7bdf2a9fa45c82859177e2 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +43 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 18 Jul 2014 16:21:46 -0500
+Subject: [PATCH 3/6] drm/tilcdc: fix the ping-pong dma tearing issue
+seen on  buffer flipping
+
+Update the DMA pointers during the pan display ioctl.  Borrowed from
+da8xx_fb.c update the scanout buffers immediately so the DMA ping/pong
+doesn't end up out of sync with what we really want it to DMA.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 36
++++++++++++++++++++++++++++++++-----
+ 1 file changed, 31 insertions(+), 5 deletions(-)
+
+diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+index bf94a0f..cdea159 100644
+--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
++++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+@@ -30,6 +30,8 @@ struct tilcdc_crtc {
+ 	int dpms;
+ 	wait_queue_head_t frame_done_wq;
+ 	bool frame_done;
++	spinlock_t irq_lock;
++	int dma_completed_channel;
+
+ 	/* fb currently set to scanout 0/1: */
+ 	struct drm_framebuffer *scanout[2];
+@@ -102,10 +104,23 @@ static void update_scanout(struct drm_crtc *crtc)
+ 			(crtc->mode.vdisplay * fb->pitches[0]);
+
+ 	if (tilcdc_crtc->dpms == DRM_MODE_DPMS_ON) {
+-		/* already enabled, so just mark the frames that need
+-		 * updating and they will be updated on vblank:
++		/*
++		 * already enabled, so just mark the frames that need
++		 * updating and they will be updated on vblank
++		 * and update the inactive DMA channel immediately
++		 * to avoid any tearing due to the DMA already starting
++		 * on the pending dma buffer when we hit the vblank IRQ
+ 		 */
+-		tilcdc_crtc->dirty |= LCDC_END_OF_FRAME0 |

LCDC_END_OF_FRAME1;
++ if (tilcdc_crtc->dma_completed_channel == 0) {
++ tilcdc_crtc->dirty |= LCDC_END_OF_FRAME1;
++ set_scanout(crtc, 0);
++ }
++
++ if (tilcdc_crtc->dma_completed_channel == 1) {
++ tilcdc_crtc->dirty |= LCDC_END_OF_FRAME0;
++ set_scanout(crtc, 1);
++ }
++

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +3 -0
+ 		drm_vblank_get(dev, 0);
+ 	} else {
+ 		/* not enabled yet, so update registers immediately: */ @@ -

612,6
++627,7 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc)

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +31 -0
+ 	struct drm_device *dev = crtc->dev;
+ 	struct tilcdc_drm_private *priv = dev->dev_private;
+ 	uint32_t stat = tilcdc_read_irqstatus(dev);
++	unsigned long irq_flags;
+
+ 	if ((stat & LCDC_SYNC_LOST) && (stat & LCDC_FIFO_UNDERFLOW)) {
+ 		stop(crtc);
+@@ -627,11 +643,19 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc
+*crtc)
+
+ 		tilcdc_clear_irqstatus(dev, stat);
+
+-		if (dirty & LCDC_END_OF_FRAME0)
++		spin_lock_irqsave(&tilcdc_crtc->irq_lock, irq_flags);
++
++		if (dirty & LCDC_END_OF_FRAME0) {
+ 			set_scanout(crtc, 0);
++			tilcdc_crtc->dma_completed_channel = 0;
++		}
+
+-		if (dirty & LCDC_END_OF_FRAME1)
++		if (dirty & LCDC_END_OF_FRAME1) {
+ 			set_scanout(crtc, 1);
++			tilcdc_crtc->dma_completed_channel = 1;
++		}
++
++		spin_unlock_irqrestore(&tilcdc_crtc->irq_lock, irq_flags);
+
+ 		drm_handle_vblank(dev, 0);
+
+@@ -707,6 +731,8 @@ struct drm_crtc *tilcdc_crtc_create(struct drm_device

*dev)

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +11 -0
+ 		goto fail;
+ 	}
+
++	spin_lock_init(&tilcdc_crtc->irq_lock);
++
+ 	ret = drm_crtc_init(dev, crtc, &tilcdc_crtc_funcs);
+ 	if (ret < 0)
+ 		goto fail;
+--
+1.9.1
+
(quoted diff) +0 -0

Use-pdata-quirks-for-sgx-deassert_hardrese.patch b/recipes- kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use-pdata-quirks-for- sgx-deassert_hardrese.patch
new file mode 100644
index 0000000..b0d5d40

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +2 -0
+++ pdata-quirks-for-sgx-deassert_hardrese.patch
@@ -0,0 +1,86 @@
+From 761dbda366d46ff007e04c09dd2deeee5073d090 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +51 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 25 Jul 2014 16:09:53 -0500
+Subject: [PATCH 4/6] ARM: OMAP2+: Use pdata-quirks for sgx
+deassert_hardreset
+
+Use pdata_quirks to provide platform data to the sgx driver.
+The data that is provided includes:
+
+1) Function pointers for the driver to use to reset the h/w block.
+2) The reset name that matches with what is used in hwmod.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ arch/arm/mach-omap2/pdata-quirks.c    | 12 ++++++++++++
+ include/linux/platform_data/gfx-sgx.h | 22 ++++++++++++++++++++++
+ 2 files changed, 34 insertions(+)
+ create mode 100644 include/linux/platform_data/gfx-sgx.h
+
+diff --git a/arch/arm/mach-omap2/pdata-quirks.c
+b/arch/arm/mach-omap2/pdata-quirks.c
+index a1fb5aa..945dd61 100644
+--- a/arch/arm/mach-omap2/pdata-quirks.c
++++ b/arch/arm/mach-omap2/pdata-quirks.c
+@@ -17,6 +17,7 @@
+
+ #include <linux/platform_data/pinctrl-single.h>
+ #include <linux/platform_data/iommu-omap.h>
++#include <linux/platform_data/gfx-sgx.h>
+
+ #include "am35xx.h"
+ #include "common.h"
+@@ -63,6 +64,13 @@ static inline void legacy_init_wl12xx(unsigned
+ref_clock,  }  #endif
+
++#if defined(CONFIG_SOC_AM33XX) || defined(CONFIG_SOC_AM43XX) static
++struct gfx_sgx_platform_data gfx_pdata = {
++	.reset_name = "gfx",
++	.deassert_reset = omap_device_deassert_hardreset, }; #endif
++
+ #ifdef CONFIG_MACH_NOKIA_N8X0
+ static void __init omap2420_n8x0_legacy_init(void)  { @@ -270,6
++278,10 @@ struct of_dev_auxdata omap_auxdata_lookup[] __initdata = {
+ 	OF_DEV_AUXDATA("ti,am3517-emac", 0x5c000000, "davinci_emac.0",
+ 		       &am35xx_emac_pdata),
+ #endif
++#if defined(CONFIG_SOC_AM33XX) || defined(CONFIG_SOC_AM43XX)
++	OF_DEV_AUXDATA("ti,sgx", 0x56000000, "56000000.sgx",
++			&gfx_pdata),
++#endif
+ #ifdef CONFIG_ARCH_OMAP4
+ 	OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a100040,

"4a100040.pinmux", &pcs_pdata),

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +1 -0
+ 	OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a31e040,

"4a31e040.pinmux",
+&pcs_pdata), diff --git a/include/linux/platform_data/gfx-sgx.h

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +32 -0
+b/include/linux/platform_data/gfx-sgx.h
+new file mode 100644
+index 0000000..aa59b2c
+--- /dev/null
++++ b/include/linux/platform_data/gfx-sgx.h
+@@ -0,0 +1,22 @@
++/*
++ * SGX Graphics Driver Platform Data
++ *
++ * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
++ *	Darren Etheridge <[email protected]>
++ *
++ * This program is free software; you can redistribute it and/or
++modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
++ * kind, whether express or implied; without even the implied warranty
++ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ */
++#include <linux/platform_device.h>
++
++struct gfx_sgx_platform_data {
++	const char *reset_name;
++
++	int (*deassert_reset)(struct platform_device *pdev, const char
++*name); };
+--
+1.9.1
+
(quoted diff) +0 -0

am437x-add-SGX-node.patch b/recipes-kernel/linux/linux-ti-staging- 3.14/sgx/0005-ARM-dts-am437x-add-SGX-node.patch
new file mode 100644
index 0000000..e18581a

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-dts-am437x new file +2 -0
+++ -add-SGX-node.patch
@@ -0,0 +1,41 @@
+From c921fe043facef3bd6649170fb6130f18e9367b7 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-dts-am437x new file +40 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:27:59 -0500
+Subject: [PATCH 5/6] ARM: dts: am437x: add SGX node
+
+Add dt node to enable SGX PowerVR driver.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ arch/arm/boot/dts/am4372.dtsi | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/arch/arm/boot/dts/am4372.dtsi
+b/arch/arm/boot/dts/am4372.dtsi index d36af42..d963a60 100644
+--- a/arch/arm/boot/dts/am4372.dtsi
++++ b/arch/arm/boot/dts/am4372.dtsi
+@@ -707,6 +707,13 @@
+ 			dma-names = "tx", "rx";
+ 		};
+
++		sgx@0x56000000 {
++			compatible = "ti,sgx";
++			ti,hwmods = "gfx";
++			reg = <0x56000000 0x1000000>;
++			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
++		};
++
+ 		mcasp1: mcasp@4803C000 {
+ 			compatible = "ti,am33xx-mcasp-audio";
+ 			ti,hwmods = "mcasp1";
+@@ -891,6 +898,7 @@
+ 				clocks = <&disp_clk>;
+ 				clock-names = "fck";
+ 			};
++
+ 		};
+ 	};
+ };
+--
+1.9.1
+
(quoted diff) +0 -0

am33xx-add-DT-node-for-gpu.patch b/recipes-kernel/linux/linux-ti-staging- 3.14/sgx/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch
new file mode 100644
index 0000000..d4d0f13

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-dts-am33xx new file +2 -0
+++ -add-DT-node-for-gpu.patch
@@ -0,0 +1,42 @@
+From 0ef34332c3400b211a047eaca751d00c97f5104c Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-dts-am33xx new file +41 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 18 Jul 2014 16:19:54 -0500
+Subject: [PATCH 6/6] ARM: dts: am33xx: add DT node for gpu
+
+Add the node into the am33xx.dtsi file for the SGX GPU that is found in
+some variants of the SoC.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ arch/arm/boot/dts/am33xx.dtsi | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/arch/arm/boot/dts/am33xx.dtsi
+b/arch/arm/boot/dts/am33xx.dtsi index 2cfd694..df6ae9c 100644
+--- a/arch/arm/boot/dts/am33xx.dtsi
++++ b/arch/arm/boot/dts/am33xx.dtsi
+@@ -109,7 +109,6 @@
+ 		prcm: prcm@44e00000 {
+ 			compatible = "ti,am3-prcm";
+ 			reg = <0x44e00000 0x4000>;
+-
+ 			prcm_clocks: clocks {
+ 				#address-cells = <1>;
+ 				#size-cells = <0>;
+@@ -822,6 +821,13 @@
+ 			reg = <0x48310000 0x2000>;
+ 			interrupts = <111>;
+ 		};
++
++		sgx@0x56000000 {
++			compatible = "ti,sgx";
++			ti,hwmods = "gfx";
++			reg = <0x56000000 0x1000000>;
++			interrupts = <37>;
++		};
+ 	};
+ };
+
+--
+1.9.1
+
recipes- renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0

kernel/linux/linux-ti-staging_3.14.bb
index b505640..c223c88 100644

recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0
@@ -3,8 +3,6 @@ DESCRIPTION = "Linux kernel for TI devices"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM =

"file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
-DEFAULT_PREFERENCE = "-1"
-
 inherit kernel
 
 require recipes-kernel/linux/linux-dtb.inc
@@ -49,7 +47,7 @@ SRCREV =

"b0fa4f08d72c8723219b5174b5749151b5acaee0"
PV = "3.14.14"

# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a
rebuild -MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"

recipes-kernel/linux/linux-ti-staging_3.14.bb +1 -0
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
 KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
@@ -57,10 +55,22 @@ KERNEL_CONFIG_FRAGMENTS =

"${KERNEL_CONFIG_DIR}/audio_display.cfg ${KERNEL_CONFI

                            ${KERNEL_CONFIG_DIR}/connectivity.cfg
${KERNEL_CONFIG_DIR}/ipc.cfg \
                            ${KERNEL_CONFIG_DIR}/power.cfg"
recipes-kernel/linux/linux-ti-staging_3.14.bb +1 -2
-KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg"
-KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg"
+KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg

${WORKDIR}/sgx.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg ${WORKDIR}/sgx.cfg"

recipes-kernel/linux/linux-ti-staging_3.14.bb +3 -0
+
+# Patches necessary to make SGX graphics work with this kernel version
+SGX_PATCHES = "file://sgx/0001-HACK-drm-fb_helper-enable-panning-

support.patch \
+ file://sgx/0002-HACK-drm-tilcdc-add-vsync-callback-for-use-in-
omaplf.patch \
+ file://sgx/0003-drm-tilcdc-fix-the-ping-pong-dma-tearing-issue-seen-
.patch \
+ file://sgx/0004-ARM-OMAP2-Use-pdata-quirks-for-sgx-
deassert_hardrese.patch \

recipes-kernel/linux/linux-ti-staging_3.14.bb +2 -0
+               file://sgx/0005-ARM-dts-am437x-add-SGX-node.patch \
+               file://sgx/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch"
 
 SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-
kernel.git;protocol=git;branch=${BRANCH} \
            file://defconfig \
            file://non-smp.cfg \
recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -1
+           file://sgx.cfg \
           "
+
+SRC_URI_append_ti33x = " ${SGX_PATCHES}"
+SRC_URI_append_ti43x = " ${SGX_PATCHES}"
--

2.0.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#10 lore raw
Quoted 6 lines · Franklin

Although we really need to move away from having these kernel config fragments within OE and not pushed back to the kernel. I understand the sgx stuff is currently a work in progress but just something for the future before we have an official "release".

All the other config fragments are in the kernel, BTW. This is an external patching, hence the external config fragments. Unless all the changes are accepted to the kernel, we can't have the config in there.

Quoted 629 lines
Quoted 624 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Denys Dmytriyenko
Sent: Tuesday, July 29, 2014 8:35 PM
To: [email protected]
Subject: [meta-ti] [PATCH 1/2] linux-ti-staging: add Darren's SGX patches to make graphics work with 3.14

From: Denys Dmytriyenko <[email protected]>

---
recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg | 24 ++++++ ...HACK-drm-
fb_helper-enable-panning-support.patch | 51 ++++++++++++ ...lcdc-add- vsync-callback-for-use-in-omaplf.patch | 96 +++++++++++++++++++++ ...fix- the-ping-pong-dma-tearing-issue-seen-.patch | 97 ++++++++++++++++++++++ ...se-pdata-quirks-for-sgx-deassert_hardrese.patch | 86 +++++++++++++++++++

 .../sgx/0005-ARM-dts-am437x-add-SGX-node.patch     | 41 +++++++++
 .../0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch  | 42 ++++++++++
 recipes-kernel/linux/linux-ti-staging_3.14.bb      | 20 +++--
 8 files changed, 452 insertions(+), 5 deletions(-)  create mode 100644 recipes-
kernel/linux/linux-ti-staging-3.14/sgx.cfg
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-
HACK-drm-fb_helper-enable-panning-support.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-
HACK-drm-tilcdc-add-vsync-callback-for-use-in-omaplf.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-
tilcdc-fix-the-ping-pong-dma-tearing-issue-seen-.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-
OMAP2-Use-pdata-quirks-for-sgx-deassert_hardrese.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-
dts-am437x-add-SGX-node.patch
 create mode 100644 recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-

dts-am33xx-add-DT-node-for-gpu.patch

recipes- renamed from recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg +0 -0

kernel/linux/linux-ti-staging-3.14/sgx.cfg
new file mode 100644
index 0000000..0291779

recipes-kernel/linux/linux-ti-staging-3.14/sgx.cfg new file +24 -0
@@ -0,0 +1,24 @@
+##################################################
+# SGX Graphics config options
+##################################################
+CONFIG_DMA_SHARED_BUFFER=y
+CONFIG_TI_ST=n
+CONFIG_INPUT_TOUCHSCREEN=y
+CONFIG_TOUCHSCREEN_ADS7846=y
+CONFIG_I2C_ALGOBIT=y
+CONFIG_MFD_TPS65218=n
+CONFIG_DRM=y
+CONFIG_DRM_KMS_HELPER=y
+CONFIG_DRM_KMS_FB_HELPER=y
+CONFIG_DRM_GEM_CMA_HELPER=y
+CONFIG_DRM_KMS_CMA_HELPER=y
+CONFIG_DRM_I2C_NXP_TDA998X=y
+CONFIG_DRM_TILCDC=y
+CONFIG_FB_SYS_FILLRECT=y
+CONFIG_FB_SYS_COPYAREA=y
+CONFIG_FB_SYS_IMAGEBLIT=y
+CONFIG_BACKLIGHT_CLASS_DEVICE=y
+CONFIG_HDMI=y
+CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
+CONFIG_SND_DAVINCI_SOC=m
+CONFIG_SND_SIMPLE_CARD=n
(quoted diff) +0 -0

fb_helper-enable-panning-support.patch b/recipes-kernel/linux/linux-ti- staging-3.14/sgx/0001-HACK-drm-fb_helper-enable-panning-support.patch new file mode 100644
index 0000000..e760248

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +2 -0
+++ lper-enable-panning-support.patch
@@ -0,0 +1,51 @@
+From d9d8fea4c60b3a44e8660408eb9337413b108b15 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +31 -0
+From: Darren Etheridge <[email protected]>
+Date: Thu, 24 Jul 2014 11:49:28 -0500
+Subject: [PATCH 1/6] HACK: drm/fb_helper: enable panning support
+
+Increase the size of the buffer that is created in the fbdev emulation
+helpers.  And fill in the var structure with the amount that was allocated.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ drivers/gpu/drm/drm_fb_cma_helper.c | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c
+b/drivers/gpu/drm/drm_fb_cma_helper.c
+index 61b5a47..2e2c489 100644
+--- a/drivers/gpu/drm/drm_fb_cma_helper.c
++++ b/drivers/gpu/drm/drm_fb_cma_helper.c
+@@ -25,6 +25,12 @@
+ #include <drm/drm_fb_cma_helper.h>
+ #include <linux/module.h>
+
++/*
++ * number of buffers to allocate from CMA pool, often increased for
++ * double/triple buffering
++ */
++#define DRM_NUM_FBDEV_BUFFERS 3
++
+ struct drm_fb_cma {
+ 	struct drm_framebuffer		fb;
+ 	struct drm_gem_cma_object	*obj[4];
+@@ -265,7 +271,7 @@ static int drm_fbdev_cma_create(struct

drm_fb_helper *helper,

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +5 -0
+ 	bytes_per_pixel = DIV_ROUND_UP(sizes->surface_bpp, 8);
+
+ 	mode_cmd.width = sizes->surface_width;
+-	mode_cmd.height = sizes->surface_height;
++	mode_cmd.height = sizes->surface_height *

DRM_NUM_FBDEV_BUFFERS;

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +2 -0
+ 	mode_cmd.pitches[0] = sizes->surface_width * bytes_per_pixel;
+ 	mode_cmd.pixel_format = drm_mode_legacy_fb_format(sizes-
Quoted 1 line

surface_bpp,

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +2 -0
+ 		sizes->surface_depth);
+@@ -304,7 +310,7 @@ static int drm_fbdev_cma_create(struct

drm_fb_helper *helper,

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0001-HACK-drm-fb_he new file +12 -0
+ 	}
+
+ 	drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
+-	drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);
++	drm_fb_helper_fill_var(fbi, helper, fb->width,
++sizes->surface_height);
+
+ 	offset = fbi->var.xoffset * bytes_per_pixel;
+ 	offset += fbi->var.yoffset * fb->pitches[0];
+--
+1.9.1
+
(quoted diff) +0 -0

tilcdc-add-vsync-callback-for-use-in-omaplf.patch b/recipes-kernel/linux/linux- ti-staging-3.14/sgx/0002-HACK-drm-tilcdc-add-vsync-callback-for-use-in- omaplf.patch
new file mode 100644
index 0000000..d154508

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-HACK-drm-tilcd new file +2 -0
+++ c-add-vsync-callback-for-use-in-omaplf.patch
@@ -0,0 +1,96 @@
+From eaf6ac95a81612250d6bd5e2ed9da41e52aac444 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0002-HACK-drm-tilcd new file +96 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 11 Jul 2014 09:15:25 -0500
+Subject: [PATCH 2/6] HACK: drm/tilcdc: add vsync callback for use in
+omaplfb  for gpu
+
+Add a vsync callback registration API that is identical to what was
+done for da8xx-fb.c.
+
+Need to find if there is a better way using the DRM infrastructure from
+kernel space.  Either that or change the userspace window manager stuff
+in the gpu libraries to make use of the DRM provided syncronization
+mechanisms.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 34
+++++++++++++++++++++++++++++++++++
+ drivers/gpu/drm/tilcdc/tilcdc_drv.h  |  5 +++++
+ 2 files changed, 39 insertions(+)
+
+diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+index 4b6b139..bf94a0f 100644
+--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
++++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+@@ -37,6 +37,10 @@ struct tilcdc_crtc {
+ 	/* for deferred fb unref's: */
+ 	struct drm_flip_work unref_work;
+ };
++
++static vsync_callback_t vsync_cb_handler; static void *vsync_cb_arg;
++
+ #define to_tilcdc_crtc(x) container_of(x, struct tilcdc_crtc, base)
+
+ static void unref_worker(struct drm_flip_work *work, void *val) @@
+-576,6 +580,32 @@ out:
+ 	pm_runtime_put_sync(dev->dev);
+ }
+
++int register_vsync_cb(vsync_callback_t handler, void *arg, int idx) {
++	if ((vsync_cb_handler == NULL) && (vsync_cb_arg == NULL)) {
++		vsync_cb_arg = arg;
++		vsync_cb_handler = handler;
++	} else {
++		return -EEXIST;
++	}
++
++	return 0;
++}
++EXPORT_SYMBOL(register_vsync_cb);
++
++int unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx)
++{
++	if ((vsync_cb_handler == handler) && (vsync_cb_arg == arg)) {
++		vsync_cb_handler = NULL;
++		vsync_cb_arg = NULL;
++	} else {
++		return -ENXIO;
++	}
++
++	return 0;
++}
++EXPORT_SYMBOL(unregister_vsync_cb);
++
+ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc)  {
+ 	struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); @@ -610,6
++640,10 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc)
+ 		tilcdc_crtc->event = NULL;
+ 		if (event)
+ 			drm_send_vblank_event(dev, 0, event);
++
++		if (vsync_cb_handler)
++			vsync_cb_handler(vsync_cb_arg);
++
+ 		spin_unlock_irqrestore(&dev->event_lock, flags);
+
+ 		if (dirty && !tilcdc_crtc->dirty)
+diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.h
+b/drivers/gpu/drm/tilcdc/tilcdc_drv.h
+index 0938036..05269be 100644
+--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.h
++++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.h
+@@ -170,4 +170,9 @@ void tilcdc_crtc_set_panel_info(struct drm_crtc
+*crtc,  int tilcdc_crtc_mode_valid(struct drm_crtc *crtc, struct
+drm_display_mode *mode);  int tilcdc_crtc_max_width(struct drm_crtc
+*crtc);
+
++/* used by SGX OMAPLFB drvier */
++typedef void (*vsync_callback_t)(void *arg); int
++register_vsync_cb(vsync_callback_t handler, void *arg, int idx); int
++unregister_vsync_cb(vsync_callback_t handler, void *arg, int idx);
++
+ #endif /* __TILCDC_DRV_H__ */
+--
+1.9.1
+
(quoted diff) +0 -0

the-ping-pong-dma-tearing-issue-seen-.patch b/recipes-kernel/linux/linux-ti- staging-3.14/sgx/0003-drm-tilcdc-fix-the-ping-pong-dma-tearing-issue-seen- .patch
new file mode 100644
index 0000000..b3d0466

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +2 -0
+++ -the-ping-pong-dma-tearing-issue-seen-.patch
@@ -0,0 +1,97 @@
+From 7b4400287144101f8c7bdf2a9fa45c82859177e2 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +43 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 18 Jul 2014 16:21:46 -0500
+Subject: [PATCH 3/6] drm/tilcdc: fix the ping-pong dma tearing issue
+seen on  buffer flipping
+
+Update the DMA pointers during the pan display ioctl.  Borrowed from
+da8xx_fb.c update the scanout buffers immediately so the DMA ping/pong
+doesn't end up out of sync with what we really want it to DMA.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 36
++++++++++++++++++++++++++++++++-----
+ 1 file changed, 31 insertions(+), 5 deletions(-)
+
+diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+index bf94a0f..cdea159 100644
+--- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
++++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c
+@@ -30,6 +30,8 @@ struct tilcdc_crtc {
+ 	int dpms;
+ 	wait_queue_head_t frame_done_wq;
+ 	bool frame_done;
++	spinlock_t irq_lock;
++	int dma_completed_channel;
+
+ 	/* fb currently set to scanout 0/1: */
+ 	struct drm_framebuffer *scanout[2];
+@@ -102,10 +104,23 @@ static void update_scanout(struct drm_crtc *crtc)
+ 			(crtc->mode.vdisplay * fb->pitches[0]);
+
+ 	if (tilcdc_crtc->dpms == DRM_MODE_DPMS_ON) {
+-		/* already enabled, so just mark the frames that need
+-		 * updating and they will be updated on vblank:
++		/*
++		 * already enabled, so just mark the frames that need
++		 * updating and they will be updated on vblank
++		 * and update the inactive DMA channel immediately
++		 * to avoid any tearing due to the DMA already starting
++		 * on the pending dma buffer when we hit the vblank IRQ
+ 		 */
+-		tilcdc_crtc->dirty |= LCDC_END_OF_FRAME0 |

LCDC_END_OF_FRAME1;
++ if (tilcdc_crtc->dma_completed_channel == 0) {
++ tilcdc_crtc->dirty |= LCDC_END_OF_FRAME1;
++ set_scanout(crtc, 0);
++ }
++
++ if (tilcdc_crtc->dma_completed_channel == 1) {
++ tilcdc_crtc->dirty |= LCDC_END_OF_FRAME0;
++ set_scanout(crtc, 1);
++ }
++

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +3 -0
+ 		drm_vblank_get(dev, 0);
+ 	} else {
+ 		/* not enabled yet, so update registers immediately: */ @@ -

612,6
++627,7 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc *crtc)

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +31 -0
+ 	struct drm_device *dev = crtc->dev;
+ 	struct tilcdc_drm_private *priv = dev->dev_private;
+ 	uint32_t stat = tilcdc_read_irqstatus(dev);
++	unsigned long irq_flags;
+
+ 	if ((stat & LCDC_SYNC_LOST) && (stat & LCDC_FIFO_UNDERFLOW)) {
+ 		stop(crtc);
+@@ -627,11 +643,19 @@ irqreturn_t tilcdc_crtc_irq(struct drm_crtc
+*crtc)
+
+ 		tilcdc_clear_irqstatus(dev, stat);
+
+-		if (dirty & LCDC_END_OF_FRAME0)
++		spin_lock_irqsave(&tilcdc_crtc->irq_lock, irq_flags);
++
++		if (dirty & LCDC_END_OF_FRAME0) {
+ 			set_scanout(crtc, 0);
++			tilcdc_crtc->dma_completed_channel = 0;
++		}
+
+-		if (dirty & LCDC_END_OF_FRAME1)
++		if (dirty & LCDC_END_OF_FRAME1) {
+ 			set_scanout(crtc, 1);
++			tilcdc_crtc->dma_completed_channel = 1;
++		}
++
++		spin_unlock_irqrestore(&tilcdc_crtc->irq_lock, irq_flags);
+
+ 		drm_handle_vblank(dev, 0);
+
+@@ -707,6 +731,8 @@ struct drm_crtc *tilcdc_crtc_create(struct drm_device

*dev)

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0003-drm-tilcdc-fix new file +11 -0
+ 		goto fail;
+ 	}
+
++	spin_lock_init(&tilcdc_crtc->irq_lock);
++
+ 	ret = drm_crtc_init(dev, crtc, &tilcdc_crtc_funcs);
+ 	if (ret < 0)
+ 		goto fail;
+--
+1.9.1
+
(quoted diff) +0 -0

Use-pdata-quirks-for-sgx-deassert_hardrese.patch b/recipes- kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use-pdata-quirks-for- sgx-deassert_hardrese.patch
new file mode 100644
index 0000000..b0d5d40

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +2 -0
+++ pdata-quirks-for-sgx-deassert_hardrese.patch
@@ -0,0 +1,86 @@
+From 761dbda366d46ff007e04c09dd2deeee5073d090 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +51 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 25 Jul 2014 16:09:53 -0500
+Subject: [PATCH 4/6] ARM: OMAP2+: Use pdata-quirks for sgx
+deassert_hardreset
+
+Use pdata_quirks to provide platform data to the sgx driver.
+The data that is provided includes:
+
+1) Function pointers for the driver to use to reset the h/w block.
+2) The reset name that matches with what is used in hwmod.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ arch/arm/mach-omap2/pdata-quirks.c    | 12 ++++++++++++
+ include/linux/platform_data/gfx-sgx.h | 22 ++++++++++++++++++++++
+ 2 files changed, 34 insertions(+)
+ create mode 100644 include/linux/platform_data/gfx-sgx.h
+
+diff --git a/arch/arm/mach-omap2/pdata-quirks.c
+b/arch/arm/mach-omap2/pdata-quirks.c
+index a1fb5aa..945dd61 100644
+--- a/arch/arm/mach-omap2/pdata-quirks.c
++++ b/arch/arm/mach-omap2/pdata-quirks.c
+@@ -17,6 +17,7 @@
+
+ #include <linux/platform_data/pinctrl-single.h>
+ #include <linux/platform_data/iommu-omap.h>
++#include <linux/platform_data/gfx-sgx.h>
+
+ #include "am35xx.h"
+ #include "common.h"
+@@ -63,6 +64,13 @@ static inline void legacy_init_wl12xx(unsigned
+ref_clock,  }  #endif
+
++#if defined(CONFIG_SOC_AM33XX) || defined(CONFIG_SOC_AM43XX) static
++struct gfx_sgx_platform_data gfx_pdata = {
++	.reset_name = "gfx",
++	.deassert_reset = omap_device_deassert_hardreset, }; #endif
++
+ #ifdef CONFIG_MACH_NOKIA_N8X0
+ static void __init omap2420_n8x0_legacy_init(void)  { @@ -270,6
++278,10 @@ struct of_dev_auxdata omap_auxdata_lookup[] __initdata = {
+ 	OF_DEV_AUXDATA("ti,am3517-emac", 0x5c000000, "davinci_emac.0",
+ 		       &am35xx_emac_pdata),
+ #endif
++#if defined(CONFIG_SOC_AM33XX) || defined(CONFIG_SOC_AM43XX)
++	OF_DEV_AUXDATA("ti,sgx", 0x56000000, "56000000.sgx",
++			&gfx_pdata),
++#endif
+ #ifdef CONFIG_ARCH_OMAP4
+ 	OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a100040,

"4a100040.pinmux", &pcs_pdata),

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +1 -0
+ 	OF_DEV_AUXDATA("ti,omap4-padconf", 0x4a31e040,

"4a31e040.pinmux",
+&pcs_pdata), diff --git a/include/linux/platform_data/gfx-sgx.h

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0004-ARM-OMAP2-Use- new file +32 -0
+b/include/linux/platform_data/gfx-sgx.h
+new file mode 100644
+index 0000000..aa59b2c
+--- /dev/null
++++ b/include/linux/platform_data/gfx-sgx.h
+@@ -0,0 +1,22 @@
++/*
++ * SGX Graphics Driver Platform Data
++ *
++ * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
++ *	Darren Etheridge <[email protected]>
++ *
++ * This program is free software; you can redistribute it and/or
++modify
++ * it under the terms of the GNU General Public License version 2 as
++ * published by the Free Software Foundation.
++ *
++ * This program is distributed "as is" WITHOUT ANY WARRANTY of any
++ * kind, whether express or implied; without even the implied warranty
++ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ */
++#include <linux/platform_device.h>
++
++struct gfx_sgx_platform_data {
++	const char *reset_name;
++
++	int (*deassert_reset)(struct platform_device *pdev, const char
++*name); };
+--
+1.9.1
+
(quoted diff) +0 -0

am437x-add-SGX-node.patch b/recipes-kernel/linux/linux-ti-staging- 3.14/sgx/0005-ARM-dts-am437x-add-SGX-node.patch
new file mode 100644
index 0000000..e18581a

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-dts-am437x new file +2 -0
+++ -add-SGX-node.patch
@@ -0,0 +1,41 @@
+From c921fe043facef3bd6649170fb6130f18e9367b7 Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0005-ARM-dts-am437x new file +40 -0
+From: Darren Etheridge <[email protected]>
+Date: Tue, 29 Jul 2014 16:27:59 -0500
+Subject: [PATCH 5/6] ARM: dts: am437x: add SGX node
+
+Add dt node to enable SGX PowerVR driver.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ arch/arm/boot/dts/am4372.dtsi | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/arch/arm/boot/dts/am4372.dtsi
+b/arch/arm/boot/dts/am4372.dtsi index d36af42..d963a60 100644
+--- a/arch/arm/boot/dts/am4372.dtsi
++++ b/arch/arm/boot/dts/am4372.dtsi
+@@ -707,6 +707,13 @@
+ 			dma-names = "tx", "rx";
+ 		};
+
++		sgx@0x56000000 {
++			compatible = "ti,sgx";
++			ti,hwmods = "gfx";
++			reg = <0x56000000 0x1000000>;
++			interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
++		};
++
+ 		mcasp1: mcasp@4803C000 {
+ 			compatible = "ti,am33xx-mcasp-audio";
+ 			ti,hwmods = "mcasp1";
+@@ -891,6 +898,7 @@
+ 				clocks = <&disp_clk>;
+ 				clock-names = "fck";
+ 			};
++
+ 		};
+ 	};
+ };
+--
+1.9.1
+
(quoted diff) +0 -0

am33xx-add-DT-node-for-gpu.patch b/recipes-kernel/linux/linux-ti-staging- 3.14/sgx/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch
new file mode 100644
index 0000000..d4d0f13

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-dts-am33xx new file +2 -0
+++ -add-DT-node-for-gpu.patch
@@ -0,0 +1,42 @@
+From 0ef34332c3400b211a047eaca751d00c97f5104c Mon Sep 17 00:00:00

2001

recipes-kernel/linux/linux-ti-staging-3.14/sgx/0006-ARM-dts-am33xx new file +41 -0
+From: Darren Etheridge <[email protected]>
+Date: Fri, 18 Jul 2014 16:19:54 -0500
+Subject: [PATCH 6/6] ARM: dts: am33xx: add DT node for gpu
+
+Add the node into the am33xx.dtsi file for the SGX GPU that is found in
+some variants of the SoC.
+
+Signed-off-by: Darren Etheridge <[email protected]>
+---
+ arch/arm/boot/dts/am33xx.dtsi | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/arch/arm/boot/dts/am33xx.dtsi
+b/arch/arm/boot/dts/am33xx.dtsi index 2cfd694..df6ae9c 100644
+--- a/arch/arm/boot/dts/am33xx.dtsi
++++ b/arch/arm/boot/dts/am33xx.dtsi
+@@ -109,7 +109,6 @@
+ 		prcm: prcm@44e00000 {
+ 			compatible = "ti,am3-prcm";
+ 			reg = <0x44e00000 0x4000>;
+-
+ 			prcm_clocks: clocks {
+ 				#address-cells = <1>;
+ 				#size-cells = <0>;
+@@ -822,6 +821,13 @@
+ 			reg = <0x48310000 0x2000>;
+ 			interrupts = <111>;
+ 		};
++
++		sgx@0x56000000 {
++			compatible = "ti,sgx";
++			ti,hwmods = "gfx";
++			reg = <0x56000000 0x1000000>;
++			interrupts = <37>;
++		};
+ 	};
+ };
+
+--
+1.9.1
+
recipes- renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0

kernel/linux/linux-ti-staging_3.14.bb
index b505640..c223c88 100644

recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0
@@ -3,8 +3,6 @@ DESCRIPTION = "Linux kernel for TI devices"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM =

"file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
-DEFAULT_PREFERENCE = "-1"
-
 inherit kernel
 
 require recipes-kernel/linux/linux-dtb.inc
@@ -49,7 +47,7 @@ SRCREV =

"b0fa4f08d72c8723219b5174b5749151b5acaee0"
PV = "3.14.14"

# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a
rebuild -MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}"

recipes-kernel/linux/linux-ti-staging_3.14.bb +1 -0
+MACHINE_KERNEL_PR_append = "b+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
 KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
@@ -57,10 +55,22 @@ KERNEL_CONFIG_FRAGMENTS =

"${KERNEL_CONFIG_DIR}/audio_display.cfg ${KERNEL_CONFI

                            ${KERNEL_CONFIG_DIR}/connectivity.cfg
${KERNEL_CONFIG_DIR}/ipc.cfg \
                            ${KERNEL_CONFIG_DIR}/power.cfg"
recipes-kernel/linux/linux-ti-staging_3.14.bb +1 -2
-KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg"
-KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg"
+KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${WORKDIR}/non-smp.cfg

${WORKDIR}/sgx.cfg" +KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${WORKDIR}/non-smp.cfg ${WORKDIR}/sgx.cfg"

recipes-kernel/linux/linux-ti-staging_3.14.bb +3 -0
+
+# Patches necessary to make SGX graphics work with this kernel version
+SGX_PATCHES = "file://sgx/0001-HACK-drm-fb_helper-enable-panning-

support.patch \
+ file://sgx/0002-HACK-drm-tilcdc-add-vsync-callback-for-use-in-
omaplf.patch \
+ file://sgx/0003-drm-tilcdc-fix-the-ping-pong-dma-tearing-issue-seen-
.patch \
+ file://sgx/0004-ARM-OMAP2-Use-pdata-quirks-for-sgx-
deassert_hardrese.patch \

recipes-kernel/linux/linux-ti-staging_3.14.bb +2 -0
+               file://sgx/0005-ARM-dts-am437x-add-SGX-node.patch \
+               file://sgx/0006-ARM-dts-am33xx-add-DT-node-for-gpu.patch"
 
 SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-
kernel.git;protocol=git;branch=${BRANCH} \
            file://defconfig \
            file://non-smp.cfg \
recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -1
+           file://sgx.cfg \
           "
+
+SRC_URI_append_ti33x = " ${SGX_PATCHES}"
+SRC_URI_append_ti43x = " ${SGX_PATCHES}"
--

2.0.2

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#11 lore raw
In reply to Denys Dmytriyenko

Hi,

recipes-kernel/linux/linux-ti-staging_3.14.bb DESCRIPTION = "Linux kernel for TI devices" · line 7

Quoted 10 lines · Denys Dmytriyenko
recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
index b505640..c223c88 100644
@@ -3,8 +3,6 @@ DESCRIPTION = "Linux kernel for TI devices"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
-DEFAULT_PREFERENCE = "-1"
-

i just noticed this change ^^. Was this intentional? This is a big change which could have been in its own commit, or at least should have been mentioned in the commit log... as it is it was lost in the noise..

cheers
nico

#12 lore raw
Quoted 11 lines · Nicolas Dechesne

Hi,

Quoted 8 lines · Denys Dmytriyenko
recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0
index b505640..c223c88 100644
@@ -3,8 +3,6 @@ DESCRIPTION = "Linux kernel for TI devices"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
Quoted 7 lines

recipes-kernel/linux/linux-ti-staging_3.14.bb DESCRIPTION = "Linux kernel for TI devices" · line 7

Quoted 2 lines
recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
-DEFAULT_PREFERENCE = "-1"
-

i just noticed this change ^^. Was this intentional? This is a big change which could have been in its own commit, or at least should have been mentioned in the commit log... as it is it was lost in the noise..

Yes, it was intentional.

As a matter of fact, it was always a goal to have the latest kernel as the default in meta-ti, to help with testing and stabilizing. The only reason it was temporarily set at lower priority is to the breakacge with SGX drivers:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/commit/?id=15b808a92754e242018e456dfa56738e3075c7ce

Since SGX breakage was resolved recently, it was again marked as default. Was there anything else broken for you?

Signature · 1 line
Denys
#13 lore raw
Quoted 20 lines · Denys Dmytriyenko
Quoted 11 lines · Nicolas Dechesne

Hi,

Quoted 8 lines · Denys Dmytriyenko
recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0
index b505640..c223c88 100644
@@ -3,8 +3,6 @@ DESCRIPTION = "Linux kernel for TI devices"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
Quoted 7 lines

recipes-kernel/linux/linux-ti-staging_3.14.bb DESCRIPTION = "Linux kernel for TI devices" · line 7

Quoted 2 lines
recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
-DEFAULT_PREFERENCE = "-1"
-

i just noticed this change ^^. Was this intentional? This is a big change which could have been in its own commit, or at least should have been mentioned in the commit log... as it is it was lost in the noise..

Quoted 2 lines

Yes, it was intentional.

Wouldnt hurt if it was mentioned in commit log

#14 lore raw
Quoted 21 lines · Khem Raj
Quoted 20 lines · Denys Dmytriyenko
Quoted 18 lines · Nicolas Dechesne

Hi,

recipes-kernel/linux/linux-ti-staging_3.14.bb DESCRIPTION = "Linux kernel for TI devices" · line 7

Quoted 10 lines · Denys Dmytriyenko
recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
index b505640..c223c88 100644
@@ -3,8 +3,6 @@ DESCRIPTION = "Linux kernel for TI devices"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
-DEFAULT_PREFERENCE = "-1"
-

i just noticed this change ^^. Was this intentional? This is a big change which could have been in its own commit, or at least should have been mentioned in the commit log... as it is it was lost in the noise..

Quoted 4 lines
Quoted 2 lines

Yes, it was intentional.

Wouldnt hurt if it was mentioned in commit log

Ok, will try to remember next time :)

Which SoC are you guys using?

Signature · 1 line
Denys
#15 lore raw
Quoted 3 lines · Denys Dmytriyenko

Ok, will try to remember next time :)

Which SoC are you guys using?

i am using BBB. i was just surprised to see the sudden (unnotified) change. so i though it might have been a typo.. no real issue. it would have been nicer to see it in the log, indeed.