Skip to contentSkip to conversation

imx-gpu-viv: Update to 5.0.11-p7.4 version

PATCH In review Neena Busireddy 4 participants 17 messages Jan 5, 2016 – Jan 11, 2016 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/5 imx-gpu-viv: Update to 5.0.11-p7.4 version

From: Neena Busireddy <[email protected]>

This version is released with 3.14.52-1.1.0_ga release.

Includes many of the bug fixes and stability improvements.
For more information refer to i.MX Linux Release Notes from following link:
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx-6-processors/i.mx6qp/i.mx-6quad-processors-high-performance-3d-graphics-hd-video-arm-cortex-a9-core:i.MX6Q?fpsp=1&tab=Documentation_Tab#nogo

L3.14.52_1.1.0_LINUX_DOCS package is under Supporting Information.

---
 ...{imx-gpu-viv_5.0.11.p7.1-hfp.bb => imx-gpu-viv_5.0.11.p7.4-hfp.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-graphics/imx-gpu-viv/{imx-gpu-viv_5.0.11.p7.1-hfp.bb => imx-gpu-viv_5.0.11.p7.4-hfp.bb} (54%)
recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb renamed from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb +2 -2
similarity index 54%
rename from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb
rename to recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb
index 22f097b..7895b6a 100644
@@ -3,7 +3,7 @@
 
 require imx-gpu-viv.inc
 
-SRC_URI[md5sum] = "b26211f322c325e76f912f432989f2ee"
-SRC_URI[sha256sum] = "e49ca1d31ca83bb50f6672325db37ae3754eb9073ad98a37790ab1209ea5cba8"
+SRC_URI[md5sum] = "d348def4c050e215efe970828752e5b9"
+SRC_URI[sha256sum] = "b80838104f2f2e3b0baf2f1aacdca263c1c92589ce919b3be40aaad23f686b7f"
 
 PACKAGE_FP_TYPE = "hardfp"
Signature · 1 line
1.9.1
#1 lore raw

PATCH v3 2/5 imx-gpu-viv: Upgrade sfp to 5.0.11.p7.4 version

From: Neena Busireddy <[email protected]>

---
 ...{imx-gpu-viv_5.0.11.p7.1-sfp.bb => imx-gpu-viv_5.0.11.p7.4-sfp.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-graphics/imx-gpu-viv/{imx-gpu-viv_5.0.11.p7.1-sfp.bb => imx-gpu-viv_5.0.11.p7.4-sfp.bb} (63%)
recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-sfp.bb renamed from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-sfp.bb +2 -2
similarity index 63%
rename from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-sfp.bb
rename to recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-sfp.bb
index 610f7ce..ace3d5f 100644
@@ -3,8 +3,8 @@
 
 require imx-gpu-viv.inc
 
-SRC_URI[md5sum] = "5dbe194e87e4092379b195e866cdb687"
-SRC_URI[sha256sum] = "43fea6ebbb1222e0f594fff3b48147f4bb6173b85f2caa9fa6bf04a1c85ee93a"
+SRC_URI[md5sum] = "6423b4a803106e7a3fff0911daaff410"
+SRC_URI[sha256sum] = "3ea201f91ce9b56455e4983ab1055e8175415fbbf2800dc097d47e78ceefba34"
 
 # FIXME skip the QA error for viv-samples
 INSANE_SKIP_${PN} += "rpaths"
Signature · 1 line
1.9.1
#2 lore raw

PATCH v3 3/5 kernel-module-imx-gpu-viv: Upgrade to 5.0.11.p7.4 version

In reply to Neena Busireddy

From: Neena Busireddy <[email protected]>

---
 ....0.11.p7.1+fslc.bb => kernel-module-imx-gpu-viv_5.0.11.p7.4+fslc.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename recipes-kernel/kernel-modules/{kernel-module-imx-gpu-viv_5.0.11.p7.1+fslc.bb => kernel-module-imx-gpu-viv_5.0.11.p7.4+fslc.bb} (91%)
recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.4+fslc.bb renamed from recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.1+fslc.bb +1 -1
similarity index 91%
rename from recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.1+fslc.bb
rename to recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p7.4+fslc.bb
index 0504cfa..3d545ed 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
 
 PV .= "+git${SRCPV}"
 
-SRCREV = "eeeb23c0fb1cee01318088d417025263479c44ac"
+SRCREV = "2b3290d1c1ce383e860a0fd6b53074848a848e65"
 SRC_URI = "git://github.com/Freescale/kernel-module-imx-gpu-viv.git;protocol=https"
 
 S = "${WORKDIR}/git"
Signature · 1 line
1.9.1
#3 lore raw

PATCH v3 4/5 weston: Add patches to fix bugs

In reply to Neena Busireddy

From: Neena Busireddy <[email protected]>

- Patch to fix setenv and clear environments.
- Patch to fix screen blur for Qt5 CinematicExperience.

---
 ...GS-1235-Fix-setenv-and-clear-environments.patch | 41 ++++++++++
 ...x-for-Qt5_CinematicExperience-will-meet-s.patch | 93 ++++++++++++++++++++++
 recipes-graphics/wayland/weston_%.bbappend         |  5 +-
 3 files changed, 138 insertions(+), 1 deletion(-)
 create mode 100644 recipes-graphics/wayland/weston/0004-MGS-1235-Fix-setenv-and-clear-environments.patch
 create mode 100644 recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch
recipes-graphics/wayland/weston/0004-MGS-1235-Fix-setenv-and-clear-environments.patch new file +41 -0
new file mode 100644
index 0000000..e4f8cd9
@@ -0,0 +1,41 @@
+From d09d0595b472d6bae35e78272fc670d494f6e408 Mon Sep 17 00:00:00 2001
+From: Prabhu <[email protected]>
+Date: Tue, 17 Nov 2015 22:00:42 -0600
+Subject: [PATCH] MGS-1235 : Fix setenv and clear environments
+
+When setenv is set with parameter null causing crash.
+Fixed with unsetenv to restore to previous state
+
+Date: Nov 17, 2015
+Signed-off-by: Prabhu <[email protected]>
+
+-1235
+---
+ src/compositor-fbdev.c | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c
+index ed25576..c6b8e5a 100644
+--- a/src/compositor-fbdev.c
++++ b/src/compositor-fbdev.c
+@@ -598,7 +598,16 @@ fbdev_output_create(struct fbdev_backend *backend,
+ 			fprintf(stderr, "failed to create window\n");
+ 			 return 0;
+ 		}
+-		setenv("FB_FRAMEBUFFER_0", fbenv, 1);
++		/* restore the previous value*/
++		if(fbenv != NULL)
++		{
++			setenv("FB_FRAMEBUFFER_0", fbenv, 1);
++		}
++		else
++		{
++			unsetenv("FB_FRAMEBUFFER_0");
++		}
++
+ 
+ 		if (gal2d_renderer->output_create(&output->base,
+ 					output->display,
+-- 
+2.5.1
+
recipes-graphics/wayland/weston/0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch new file +93 -0

93 lines not on this page · raw message

recipes-graphics/wayland/weston_%.bbappend +4 -1
index a7496da..6c8ba6d 100644
@@ -1,6 +1,9 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-SRC_URI_append_mx6 = " file://0001-MGS-840-Add-i.MX6-support-for-weston.patch"
+SRC_URI_append_mx6 = " \
+    file://0001-MGS-840-Add-i.MX6-support-for-weston.patch \
+    file://0004-MGS-1235-Fix-setenv-and-clear-environments.patch \
+    file://0005-MGS-1252-Fix-for-Qt5_CinematicExperience-will-meet-s.patch"
 
 PACKAGECONFIG_append_mx6q = " cairo-glesv2"
 PACKAGECONFIG_append_mx6dl = " cairo-glesv2"
Signature · 1 line
1.9.1
#4 lore raw

PATCH v3 5/5 xf86-video-imxfb-vivante: Upgrade to 5.0.11.p7.4 version

In reply to Neena Busireddy

From: Neena Busireddy <[email protected]>

- License changed to MIT.
- Remove the upstreamed patch.

---
 .../xorg-driver/xf86-video-imxfb-vivante.inc       |   2 +-
 ...-EXA-Warnings-causes-GCC5.2-build-to-fail.patch | 137 ---------------------
 ....bb => xf86-video-imxfb-vivante_5.0.11.p7.4.bb} |   7 +-
 3 files changed, 4 insertions(+), 142 deletions(-)
 delete mode 100644 recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch
 rename recipes-graphics/xorg-driver/{xf86-video-imxfb-vivante_5.0.11.p7.1.bb => xf86-video-imxfb-vivante_5.0.11.p7.4.bb} (48%)
recipes-graphics/xorg-driver/xf86-video-imxfb-vivante.inc +1 -1
index 9f856b3..aa37555 100644
@@ -10,7 +10,7 @@ inherit autotools-brokensep update-rc.d pkgconfig
 
 DEPENDS += "virtual/xserver virtual/libx11 virtual/libgal-x11 imx-gpu-viv pixman"
 
-LIC_FILES_CHKSUM = "file://COPYING-GPL-2;md5=59530bdf33659b29e73d4adb9f9f6552"
+LIC_FILES_CHKSUM = "file://COPYING-MIT;md5=b5e9d9f5c02ea831ab3ecf802bb7c4f3"
 
 SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz \
             file://rc.autohdmi"
recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch deleted +0 -137

137 lines not on this page · raw message

recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_5.0.11.p7.4.bb renamed from recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_5.0.11.p7.1.bb +3 -4
similarity index 48%
rename from recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_5.0.11.p7.1.bb
rename to recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_5.0.11.p7.4.bb
index 9fdd73a..4c8af46 100644
@@ -4,9 +4,8 @@
 
 require xf86-video-imxfb-vivante.inc
 
-SRC_URI += "file://0001-MGS-907-X11-EXA-Warnings-causes-GCC5.2-build-to-fail.patch \
-            file://Stop-using-Git-to-write-local-version.patch \
+SRC_URI += "file://Stop-using-Git-to-write-local-version.patch \
             file://Remove-dix-internal-header-usage.patch"
 
-SRC_URI[md5sum] = "05c54ed6d63e2a21dc18219e70869c29"
-SRC_URI[sha256sum] = "ab6a896cafba324105d26f52b7dad2c41d04d75cc9e48b66e8041a95660a04ee"
+SRC_URI[md5sum] = "6e2d8ee518e9eef8421e9dcdc1ea79c3"
+SRC_URI[sha256sum] = "3effaf42bde64da8fad2dfe0dcef12d1cfbbbe189511dbd4612442129fd832cc"
Signature · 1 line
1.9.1
#5 lore raw
In reply to Neena Busireddy

Hi Neena,

I tried this driver with weston.

When running with two framebuffers like this:
/usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb2,/dev/fb0

I get a crash in the second call to gcoOS_InitLocalDisplayInfo in gal2d_renderer_output_create (when the second output is to be setup). The interesting thing is that its the same display passed in as in the first call, which succeeds...

Does this work on your end?

Thanks in advance,
Richard

Quoted 42 lines · Neena Busireddy

From: Neena Busireddy <[email protected]>

This version is released with 3.14.52-1.1.0_ga release.

Includes many of the bug fixes and stability improvements.
For more information refer to i.MX Linux Release Notes from following link:
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx-6-processors/i.mx6qp/i.mx-6quad-processors-high-performance-3d-graphics-hd-video-arm-cortex-a9-core:i.MX6Q?fpsp=1&tab=Documentation_Tab#nogo

L3.14.52_1.1.0_LINUX_DOCS package is under Supporting Information.

---
 ...{imx-gpu-viv_5.0.11.p7.1-hfp.bb => imx-gpu-viv_5.0.11.p7.4-hfp.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-graphics/imx-gpu-viv/{imx-gpu-viv_5.0.11.p7.1-hfp.bb => imx-gpu-viv_5.0.11.p7.4-hfp.bb} (54%)
recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb renamed from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb +2 -3
similarity index 54%
rename from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb
rename to recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb
index 22f097b..7895b6a 100644
@@ -3,7 +3,7 @@
 
 require imx-gpu-viv.inc
 
-SRC_URI[md5sum] = "b26211f322c325e76f912f432989f2ee"
-SRC_URI[sha256sum] = "e49ca1d31ca83bb50f6672325db37ae3754eb9073ad98a37790ab1209ea5cba8"
+SRC_URI[md5sum] = "d348def4c050e215efe970828752e5b9"
+SRC_URI[sha256sum] = "b80838104f2f2e3b0baf2f1aacdca263c1c92589ce919b3be40aaad23f686b7f"
 
 PACKAGE_FP_TYPE = "hardfp"
--

1.9.1

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

#6 lore raw

Hi again,

I also hit a deadlock on exit when running on one framebuffer like
this: (and when pressing ctrl-c it hangs forever) /usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb2

The worker thread and cleanup code didn't look tight so I changed it a bit and avoid the deadlock.
Will you fix this our should I send a patch?

Here is what I did:

src/gal2d-renderer.c 2016-01-05 15:12:41.000000000 +0100 renamed from src/gal2d-renderer.c.org 2016-01-05 15:08:48.000000000 +0100 +3 -2
@@ -495,21 +495,21 @@
 {
     struct weston_output *output = (struct weston_output *)arg;
     struct gal2d_output_state *go = get_output_state(output);
+    int go_on = 1;
 
-    while(1)
+    while(go_on)
     {
-        if(gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE) == gcvSTATUS_OK )
+        int ok = gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE)

== gcvSTATUS_OK;
+

+        pthread_mutex_lock(&go->workerMutex);
+        go_on = go->exitWorker == 0;
+        pthread_mutex_unlock(&go->workerMutex);
+
+        if (ok && go_on)
         {
             gal2d_flip_surface(output);
             gcoOS_Signal(gcvNULL,go->busySignal, gcvTRUE);
         }
-        pthread_mutex_lock(&go->workerMutex);
-        if(go->exitWorker == 1)
-        {
-            pthread_mutex_unlock(&go->workerMutex);
-            break;
-        }
-        pthread_mutex_unlock(&go->workerMutex);
     }
     return 0;
 }
@@ -1169,10 +1169,10 @@
  }
     else
     {
-        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_mutex_lock(&go->workerMutex);
         go->exitWorker = 1;
         pthread_mutex_unlock(&go->workerMutex);
+        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_join(go->workerId, NULL);
     }
Quoted 62 lines · Richard Röjfors

Hi Neena,

I tried this driver with weston.

When running with two framebuffers like this:
/usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb2,/dev/fb0

I get a crash in the second call to gcoOS_InitLocalDisplayInfo in gal2d_renderer_output_create (when the second output is to be setup). The interesting thing is that its the same display passed in as in the first call, which succeeds...

Does this work on your end?

Thanks in advance,
Richard

Quoted 42 lines · Neena Busireddy

From: Neena Busireddy <[email protected]>

This version is released with 3.14.52-1.1.0_ga release.

Includes many of the bug fixes and stability improvements.
For more information refer to i.MX Linux Release Notes from following link:
http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx-6-processors/i.mx6qp/i.mx-6quad-processors-high-performance-3d-graphics-hd-video-arm-cortex-a9-core:i.MX6Q?fpsp=1&tab=Documentation_Tab#nogo

L3.14.52_1.1.0_LINUX_DOCS package is under Supporting Information.

---
 ...{imx-gpu-viv_5.0.11.p7.1-hfp.bb => imx-gpu-viv_5.0.11.p7.4-hfp.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-graphics/imx-gpu-viv/{imx-gpu-viv_5.0.11.p7.1-hfp.bb => imx-gpu-viv_5.0.11.p7.4-hfp.bb} (54%)
recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb renamed from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb +2 -3
similarity index 54%
rename from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb
rename to recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb
index 22f097b..7895b6a 100644
@@ -3,7 +3,7 @@
 
 require imx-gpu-viv.inc
 
-SRC_URI[md5sum] = "b26211f322c325e76f912f432989f2ee"
-SRC_URI[sha256sum] = "e49ca1d31ca83bb50f6672325db37ae3754eb9073ad98a37790ab1209ea5cba8"
+SRC_URI[md5sum] = "d348def4c050e215efe970828752e5b9"
+SRC_URI[sha256sum] = "b80838104f2f2e3b0baf2f1aacdca263c1c92589ce919b3be40aaad23f686b7f"
 
 PACKAGE_FP_TYPE = "hardfp"
--

1.9.1

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

#7 lore raw

Hi Richard,

Hi again,

I also hit a deadlock on exit when running on one framebuffer like
this: (and when pressing ctrl-c it hangs forever) /usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb2

The worker thread and cleanup code didn't look tight so I changed it a bit and avoid the deadlock. Will you fix this our should I send a patch?

Here is what I did:

--- weston-1.8.0/src/gal2d-renderer.c.org 2016-01-05 15:08:48.000000000 +0100 +++ weston-1.8.0/src/gal2d-renderer.c 2016-01-05 15:12:41.000000000 +++ +0100
@@ -495,21 +495,21 @@

 {
     struct weston_output *output = (struct weston_output *)arg;
     struct gal2d_output_state *go = get_output_state(output);

+ int go_on = 1;

- while(1)
+ while(go_on)

     {

- if(gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE) == gcvSTATUS_OK )
+ int ok = gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE)
== gcvSTATUS_OK;
+

+        pthread_mutex_lock(&go->workerMutex);
+        go_on = go->exitWorker == 0;
+        pthread_mutex_unlock(&go->workerMutex);
+
+        if (ok && go_on)
         {
             gal2d_flip_surface(output);
             gcoOS_Signal(gcvNULL,go->busySignal, gcvTRUE);
         }
-        pthread_mutex_lock(&go->workerMutex);
-        if(go->exitWorker == 1)
-        {
-            pthread_mutex_unlock(&go->workerMutex);
-            break;
-        }
-        pthread_mutex_unlock(&go->workerMutex);
     }
     return 0;
 }
@@ -1169,10 +1169,10 @@
  }
     else
     {
-        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_mutex_lock(&go->workerMutex);
         go->exitWorker = 1;
         pthread_mutex_unlock(&go->workerMutex);
+        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_join(go->workerId, NULL);
     }

Thanks for bringing this up.

Hi Prabhu,

Could you please comment on this one?

Thanks,
Neena

Quoted 71 lines · Richard Röjfors

Hi Neena,

I tried this driver with weston.

When running with two framebuffers like this:
/usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0
--device=/dev/fb2,/dev/fb0

I get a crash in the second call to gcoOS_InitLocalDisplayInfo in gal2d_renderer_output_create (when the second output is to be setup). The interesting thing is that its the same display passed in as in the first call, which succeeds...

Does this work on your end?

Thanks in advance,
Richard

Quoted 50 lines · Neena Busireddy

From: Neena Busireddy <[email protected]>

This version is released with 3.14.52-1.1.0_ga release.

Includes many of the bug fixes and stability improvements.
For more information refer to i.MX Linux Release Notes from following link:
http://www.nxp.com/products/microcontrollers-and-processors/arm-proce
ssors/i.mx-applications-processors-based-on-arm-cores/i.mx-6-processo rs/i.mx6qp/i.mx-6quad-processors-high-performance-3d-graphics-hd-vide o-arm-cortex-a9-core:i.MX6Q?fpsp=1&tab=Documentation_Tab#nogo

L3.14.52_1.1.0_LINUX_DOCS package is under Supporting Information.

---
...{imx-gpu-viv_5.0.11.p7.1-hfp.bb =>
imx-gpu-viv_5.0.11.p7.4-hfp.bb} | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)  rename 

recipes-graphics/imx-gpu-viv/{imx-gpu-viv_5.0.11.p7.1-hfp.bb => imx-gpu-viv_5.0.11.p7.4-hfp.bb} (54%)

(quoted diff) +0 -0

a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb similarity index 54%
rename from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb rename to recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb index 22f097b..7895b6a 100644

recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.4-hfp.bb renamed from recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p7.1-hfp.bb +2 -3
@@ -3,7 +3,7 @@
 
 require imx-gpu-viv.inc
 
-SRC_URI[md5sum] = "b26211f322c325e76f912f432989f2ee"
-SRC_URI[sha256sum] = "e49ca1d31ca83bb50f6672325db37ae3754eb9073ad98a37790ab1209ea5cba8"
+SRC_URI[md5sum] = "d348def4c050e215efe970828752e5b9"
+SRC_URI[sha256sum] = "b80838104f2f2e3b0baf2f1aacdca263c1c92589ce919b3be40aaad23f686b7f"
 
 PACKAGE_FP_TYPE = "hardfp"
--

1.9.1

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

#8 lore raw
Quoted 61 lines · Neena Busireddy

Hi Richard,

Hi again,

I also hit a deadlock on exit when running on one framebuffer like
this: (and when pressing ctrl-c it hangs forever) /usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb2

The worker thread and cleanup code didn't look tight so I changed it a bit and avoid the deadlock. Will you fix this our should I send a patch?

Here is what I did:

src/gal2d-renderer.c 2016-01-05 15:12:41.000000000 renamed from src/gal2d-renderer.c.org 2016-01-05 15:08:48.000000000 +0100 +10 -9
+++ +0100
@@ -495,21 +495,21 @@
 {
     struct weston_output *output = (struct weston_output *)arg;
     struct gal2d_output_state *go = get_output_state(output);
+    int go_on = 1;
 
-    while(1)
+    while(go_on)
     {
-        if(gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE) == gcvSTATUS_OK )
+        int ok = gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE)
 == gcvSTATUS_OK;
+
+        pthread_mutex_lock(&go->workerMutex);
+        go_on = go->exitWorker == 0;
+        pthread_mutex_unlock(&go->workerMutex);
+
+        if (ok && go_on)
         {
             gal2d_flip_surface(output);
             gcoOS_Signal(gcvNULL,go->busySignal, gcvTRUE);
         }
-        pthread_mutex_lock(&go->workerMutex);
-        if(go->exitWorker == 1)
-        {
-            pthread_mutex_unlock(&go->workerMutex);
-            break;
-        }
-        pthread_mutex_unlock(&go->workerMutex);
     }
     return 0;

}

src/gal2d-renderer.c 2016-01-05 15:12:41.000000000 renamed from src/gal2d-renderer.c.org 2016-01-05 15:08:48.000000000 +0100 +1 -1
@@ -1169,10 +1169,10 @@
  }
     else
     {
-        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_mutex_lock(&go->workerMutex);
         go->exitWorker = 1;
         pthread_mutex_unlock(&go->workerMutex);
+        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_join(go->workerId, NULL);
     }
 

Thanks for bringing this up.

Quoted 3 lines

Hi Prabhu,

Could you please comment on this one?

Prabhu, please comment.

Richard, please send a formal patch on top of master-next (I applied the patches there for test).

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#9 lore raw

We have the patch but unfortunately not included to 5.0.11P7.4. so we provided a GPU driver binary patch to fix the issue as workaround.

Best Regards,
Prabhu

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Monday, January 11, 2016 10:19 AM
To: Neena Busireddy <[email protected]>
Cc: Richard Röjfors <[email protected]>; Prabhu Sundararaj <[email protected]>; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH v3 1/5] imx-gpu-viv: Update to 5.0.11-p7.4 version

Quoted 63 lines · Neena Busireddy

Hi Richard,

Hi again,

I also hit a deadlock on exit when running on one framebuffer like
this: (and when pressing ctrl-c it hangs forever) /usr/bin/weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb2

The worker thread and cleanup code didn't look tight so I changed it a bit and avoid the deadlock. Will you fix this our should I send a patch?

Here is what I did:

--- weston-1.8.0/src/gal2d-renderer.c.org 2016-01-05 15:08:48.000000000 +0100
+++ weston-1.8.0/src/gal2d-renderer.c 2016-01-05 15:12:41.000000000 +++ +0100

(quoted diff) +9 -9
@@ -495,21 +495,21 @@
 {
     struct weston_output *output = (struct weston_output *)arg;
     struct gal2d_output_state *go = get_output_state(output);
+    int go_on = 1;
 
-    while(1)
+    while(go_on)
     {
-        if(gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE) == gcvSTATUS_OK )
+        int ok = gcoOS_WaitSignal(gcvNULL, go->signal, gcvINFINITE)
 == gcvSTATUS_OK;
+
+        pthread_mutex_lock(&go->workerMutex);
+        go_on = go->exitWorker == 0;
+        pthread_mutex_unlock(&go->workerMutex);
+
+        if (ok && go_on)
         {
             gal2d_flip_surface(output);
             gcoOS_Signal(gcvNULL,go->busySignal, gcvTRUE);
         }
-        pthread_mutex_lock(&go->workerMutex);
-        if(go->exitWorker == 1)
-        {
-            pthread_mutex_unlock(&go->workerMutex);
-            break;
-        }
-        pthread_mutex_unlock(&go->workerMutex);
     }
     return 0;

}

(quoted diff) +1 -1
@@ -1169,10 +1169,10 @@
  }
     else
     {
-        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_mutex_lock(&go->workerMutex);
         go->exitWorker = 1;
         pthread_mutex_unlock(&go->workerMutex);
+        gcoOS_Signal(gcvNULL,go->signal, gcvTRUE);
         pthread_join(go->workerId, NULL);
     }
 

Thanks for bringing this up.

Quoted 3 lines

Hi Prabhu,

Could you please comment on this one?

Prabhu, please comment.

Richard, please send a formal patch on top of master-next (I applied the patches there for test).

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#10 lore raw
Quoted 1 line · Prabhu Sundararaj

We have the patch but unfortunately not included to 5.0.11P7.4. so we provided a GPU driver binary patch to fix the issue as workaround.

Sorry but it does not make sense for me.

The patch here seems simple. What binary update are you talking about?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#11 lore raw

libGAL.so need to be updated which is part of imx-gpu-viv.5.0.11.p7.4.bin

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Monday, January 11, 2016 11:30 AM
To: Prabhu Sundararaj <[email protected]>
Cc: Neena Busireddy <[email protected]>; Richard Röjfors <[email protected]>; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH v3 1/5] imx-gpu-viv: Update to 5.0.11-p7.4 version

Quoted 1 line · Prabhu Sundararaj

We have the patch but unfortunately not included to 5.0.11P7.4. so we provided a GPU driver binary patch to fix the issue as workaround.

Sorry but it does not make sense for me.

The patch here seems simple. What binary update are you talking about?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#12 lore raw
Quoted 1 line · Prabhu Sundararaj

libGAL.so need to be updated which is part of imx-gpu-viv.5.0.11.p7.4.bin

So please make a new tarball release; we need to ensure the binaries are provided by NXP and are valid.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#13 lore raw
In reply to Otavio Salvador

Hi Otavio,
We identified the problem after 5.0.11P7.4 release.
Fix for the issue is part of the GPU driver binary. We need to get through the QA to release the fix. Planning to include the fix in the next release (1st quarter of 2016).

Best Regards,
Prabhu

-----Original Message-----
From: Prabhu Sundararaj
Sent: Monday, January 11, 2016 12:32 PM
To: 'Otavio Salvador' <[email protected]>
Cc: Neena Busireddy <[email protected]>; Richard Röjfors <[email protected]>; [email protected]
Subject: RE: [meta-freescale] [meta-fsl-arm][PATCH v3 1/5] imx-gpu-viv: Update to 5.0.11-p7.4 version

libGAL.so need to be updated which is part of imx-gpu-viv.5.0.11.p7.4.bin

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Monday, January 11, 2016 11:30 AM
To: Prabhu Sundararaj <[email protected]>
Cc: Neena Busireddy <[email protected]>; Richard Röjfors <[email protected]>; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH v3 1/5] imx-gpu-viv: Update to 5.0.11-p7.4 version

Quoted 1 line · Prabhu Sundararaj

We have the patch but unfortunately not included to 5.0.11P7.4. so we provided a GPU driver binary patch to fix the issue as workaround.

Sorry but it does not make sense for me.

The patch here seems simple. What binary update are you talking about?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#14 lore raw
Quoted 3 lines · Prabhu Sundararaj

We identified the problem after 5.0.11P7.4 release.
Fix for the issue is part of the GPU driver binary. We need to get through the QA to release the fix. Planning to include the fix in the next release (1st quarter of 2016).

So Richard patch seems to be the best temporary fix; Richard, could you cook a patch for it?

When new package is out, we revert the change.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#15 lore raw
In reply to Prabhu Sundararaj

Hi Both,

Just to clarify, we are talking about two different issues.

I think Octavio talks about my patch to solve the dead lock on exit, while Prabhu talks about a patch needed to support multiple framebuffers.

"My" patch is on the open weston code (the gal2d-renderer), while the other is in the NXP blobs.

I think both are of interest for the anyone on the list.

I'm happy to provide a proper patch for the dead lock. If you don't have another solution Prabhu?

Thanks,
Richard

Quoted 43 lines · Prabhu Sundararaj

Hi Otavio,
We identified the problem after 5.0.11P7.4 release.
Fix for the issue is part of the GPU driver binary. We need to get through the QA to release the fix.
Planning to include the fix in the next release (1st quarter of 2016).

Best Regards,
Prabhu

-----Original Message-----
From: Prabhu Sundararaj
Sent: Monday, January 11, 2016 12:32 PM
To: 'Otavio Salvador' <[email protected]>
Cc: Neena Busireddy <[email protected]>; Richard Röjfors < [email protected]>; [email protected]
Subject: RE: [meta-freescale] [meta-fsl-arm][PATCH v3 1/5] imx-gpu-viv:
Update to 5.0.11-p7.4 version

libGAL.so need to be updated which is part of imx-gpu-viv.5.0.11.p7.4.bin

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Monday, January 11, 2016 11:30 AM
To: Prabhu Sundararaj <[email protected]>
Cc: Neena Busireddy <[email protected]>; Richard Röjfors < [email protected]>; [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH v3 1/5] imx-gpu-viv:
Update to 5.0.11-p7.4 version

Quoted 1 line · Prabhu Sundararaj

We have the patch but unfortunately not included to 5.0.11P7.4. so we

provided a GPU driver binary patch to fix the issue as workaround.

Sorry but it does not make sense for me.

The patch here seems simple. What binary update are you talking about?

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#16 lore raw
Quoted 5 lines · Richard Röjfors

Just to clarify, we are talking about two different issues.

I think Octavio talks about my patch to solve the dead lock on exit, while Prabhu talks about a patch needed to support multiple framebuffers.

Quoted 7 lines

"My" patch is on the open weston code (the gal2d-renderer), while the other is in the NXP blobs.

I think both are of interest for the anyone on the list.

I'm happy to provide a proper patch for the dead lock. If you don't have another solution Prabhu?

The patch, please prepare it. It is important indeed.

I think the binary fix need to be formally released so we can upgrade the packages and have it incorporated. There is no justification to drop a binary .so file without proper release as it removes all support responsibility and is clearly wrong.

Anyone using a patched binary will be using non-supported software; so a formal release of the binary should be done.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750