Patchwork [05/12] xf86-video-imxfb-vivante: Upgrade to 3.10.17-1.0.0_beta version

login
register
mail settings
Submitter Otavio Salvador
Date Jan. 25, 2014, 10:09 p.m.
Message ID <1390687761-13479-6-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/65813/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Jan. 25, 2014, 10:09 p.m.
From: Lauren Post <lauren.post@freescale.com>

Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

 ...alpha.2.bb => xf86-video-imxfb-vivante_3.10.17-1.0.0.bb} | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
 rename recipes-graphics/xorg-driver/{xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb => xf86-video-imxfb-vivante_3.10.17-1.0.0.bb} (80%)
Eric Nelson - Jan. 27, 2014, 11:43 p.m.
Thanks Otavio,

On 01/25/2014 03:09 PM, Otavio Salvador wrote:
> From: Lauren Post <lauren.post@freescale.com>
>
> Signed-off-by: Lauren Post <lauren.post@freescale.com>
> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
>
>   ...alpha.2.bb => xf86-video-imxfb-vivante_3.10.17-1.0.0.bb} | 13 +++++++------
>   1 file changed, 7 insertions(+), 6 deletions(-)
>   rename recipes-graphics/xorg-driver/{xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb => xf86-video-imxfb-vivante_3.10.17-1.0.0.bb} (80%)
>
> diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
> similarity index 80%
> rename from recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
> rename to recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
> index 35a5759..31f2747 100644
> --- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
> +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
> @@ -1,5 +1,5 @@
> -# Copyright (C) 2012-2013 Freescale Semiconductor
> -# Copyright (C) 2012-2013 O.S. Systems Software LTDA.
> +# Copyright (C) 2012-2014 Freescale Semiconductor
> +# Copyright (C) 2012-2014 O.S. Systems Software LTDA.
>   # Released under the MIT license (see COPYING.MIT for the terms)
>
>   require recipes-graphics/xorg-driver/xorg-driver-video.inc
> @@ -10,9 +10,10 @@ DEPENDS += "virtual/xserver virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q p
>
>   LIC_FILES_CHKSUM = "file://EXA/src/vivante_fbdev/vivante.h;endline=19;md5=641ac6e6d013833e36290797f4d7089c"
>
> -SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz"
> -SRC_URI[md5sum] = "3fc3d355d721656144920afd06fb1bff"
> -SRC_URI[sha256sum] = "49fab65a0a1ea74ec6b04700e035b1351244fbd363301d59d6d0cbffe37d6fb9"
> +# FIXME: Drop 'beta' suffix for GA release
> +SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}_beta.tar.gz"
> +SRC_URI[md5sum] = "fee0e4820fe3f89e5f36a0b343e4a33f"
> +SRC_URI[sha256sum] = "b65aef86943cb0fcd2dd7ded01215038dcf2761779ce39186ab3c8c2d4b010b1"
>
>   EXTRA_OEMAKE += "-C EXA/src -f makefile.linux prefix=${D}/usr \
>                    sysroot=${STAGING_DIR_TARGET} \
> @@ -24,7 +25,7 @@ CFLAGS += "-I${STAGING_INCDIR}/xorg \
>              -I${STAGING_INCDIR}/drm \
>              -I../../DRI_1.10.4/src"
>
> -S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}/"
> +S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}_beta/"
>

I'm not sure if this is the right patch to tag, but during my testing of
the Vivante/X integration, I saw some issues related to mode settings.

On Nitrogen6x Quad core, I'm seeing X start up with a mode of 640x480,
on the HDMI device even though the kernel command line is configured
for 720P.

The same is not true with the same monitor and Nitrogen6_Lite (Solo
processor):

The prime leads are these from Xorg.0.log (attached):

[3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 connected
[3585503.788] (II) VIVANTE(0): Using exact sizes for initial modes
[3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 using initial mode 
V:640x480p-60
[3585504.480] (II) VIVANTE(0): imxDisplayPreInit: virtual set 640 x 480, 
display width 0
[3585504.480] (II) VIVANTE(0): FBDevPreInit: adjust display width 640

Oddly, the display reverts to 720p (1280x720) if I stop X.

This appears using either kernel version 3.0.35 or 3.10.17.

I'm continuing to investigate, but thought I'd send out a note
in case others are seeing similar behaviour or know what might
be involved here.

Regards,


Eric
Otavio Salvador - Jan. 28, 2014, 12:40 a.m.
Hello Eric, Hello Lauren,

On Mon, Jan 27, 2014 at 9:43 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:
> On 01/25/2014 03:09 PM, Otavio Salvador wrote:
>>
>> From: Lauren Post <lauren.post@freescale.com>
>>
>> Signed-off-by: Lauren Post <lauren.post@freescale.com>
>> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
>> ---
>>
>>   ...alpha.2.bb => xf86-video-imxfb-vivante_3.10.17-1.0.0.bb} | 13
>> +++++++------
>>   1 file changed, 7 insertions(+), 6 deletions(-)
>>   rename
>> recipes-graphics/xorg-driver/{xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
>> => xf86-video-imxfb-vivante_3.10.17-1.0.0.bb} (80%)
>>
>> diff --git
>> a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
>> b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
>> similarity index 80%
>> rename from
>> recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
>> rename to
>> recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
>> index 35a5759..31f2747 100644
>> ---
>> a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
>> +++
>> b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
>> @@ -1,5 +1,5 @@
>> -# Copyright (C) 2012-2013 Freescale Semiconductor
>> -# Copyright (C) 2012-2013 O.S. Systems Software LTDA.
>> +# Copyright (C) 2012-2014 Freescale Semiconductor
>> +# Copyright (C) 2012-2014 O.S. Systems Software LTDA.
>>   # Released under the MIT license (see COPYING.MIT for the terms)
>>
>>   require recipes-graphics/xorg-driver/xorg-driver-video.inc
>> @@ -10,9 +10,10 @@ DEPENDS += "virtual/xserver virtual/libx11
>> virtual/libgal-x11 gpu-viv-bin-mx6q p
>>
>>   LIC_FILES_CHKSUM =
>> "file://EXA/src/vivante_fbdev/vivante.h;endline=19;md5=641ac6e6d013833e36290797f4d7089c"
>>
>> -SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz"
>> -SRC_URI[md5sum] = "3fc3d355d721656144920afd06fb1bff"
>> -SRC_URI[sha256sum] =
>> "49fab65a0a1ea74ec6b04700e035b1351244fbd363301d59d6d0cbffe37d6fb9"
>> +# FIXME: Drop 'beta' suffix for GA release
>> +SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}_beta.tar.gz"
>> +SRC_URI[md5sum] = "fee0e4820fe3f89e5f36a0b343e4a33f"
>> +SRC_URI[sha256sum] =
>> "b65aef86943cb0fcd2dd7ded01215038dcf2761779ce39186ab3c8c2d4b010b1"
>>
>>   EXTRA_OEMAKE += "-C EXA/src -f makefile.linux prefix=${D}/usr \
>>                    sysroot=${STAGING_DIR_TARGET} \
>> @@ -24,7 +25,7 @@ CFLAGS += "-I${STAGING_INCDIR}/xorg \
>>              -I${STAGING_INCDIR}/drm \
>>              -I../../DRI_1.10.4/src"
>>
>> -S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}/"
>> +S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}_beta/"
>>
>
> I'm not sure if this is the right patch to tag, but during my testing of
> the Vivante/X integration, I saw some issues related to mode settings.
>
> On Nitrogen6x Quad core, I'm seeing X start up with a mode of 640x480,
> on the HDMI device even though the kernel command line is configured
> for 720P.
>
> The same is not true with the same monitor and Nitrogen6_Lite (Solo
> processor):
>
> The prime leads are these from Xorg.0.log (attached):
>
> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 connected
> [3585503.788] (II) VIVANTE(0): Using exact sizes for initial modes
> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 using initial mode
> V:640x480p-60
> [3585504.480] (II) VIVANTE(0): imxDisplayPreInit: virtual set 640 x 480,
> display width 0
> [3585504.480] (II) VIVANTE(0): FBDevPreInit: adjust display width 640
>
> Oddly, the display reverts to 720p (1280x720) if I stop X.
>
> This appears using either kernel version 3.0.35 or 3.10.17.
>
> I'm continuing to investigate, but thought I'd send out a note
> in case others are seeing similar behaviour or know what might
> be involved here.

Lauren, can you verify it with your three and also internally if it is
a known issue?
Eric Nelson - Jan. 28, 2014, 8:05 p.m.
Hi all,

On 01/27/2014 04:43 PM, Eric Nelson wrote:
> Thanks Otavio,
>
> On 01/25/2014 03:09 PM, Otavio Salvador wrote:
>> From: Lauren Post <lauren.post@freescale.com>
>>
>>  <snip>
>>
>>   EXTRA_OEMAKE += "-C EXA/src -f makefile.linux prefix=${D}/usr \
>>                    sysroot=${STAGING_DIR_TARGET} \
>> @@ -24,7 +25,7 @@ CFLAGS += "-I${STAGING_INCDIR}/xorg \
>>              -I${STAGING_INCDIR}/drm \
>>              -I../../DRI_1.10.4/src"
>>
>> -S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}/"
>> +S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}_beta/"
>>
>
> I'm not sure if this is the right patch to tag, but during my testing of
> the Vivante/X integration, I saw some issues related to mode settings.
>
> On Nitrogen6x Quad core, I'm seeing X start up with a mode of 640x480,
> on the HDMI device even though the kernel command line is configured
> for 720P.
>
> The same is not true with the same monitor and Nitrogen6_Lite (Solo
> processor):
>
> The prime leads are these from Xorg.0.log (attached):
>
> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 connected
> [3585503.788] (II) VIVANTE(0): Using exact sizes for initial modes
> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 using initial mode
> V:640x480p-60
> [3585504.480] (II) VIVANTE(0): imxDisplayPreInit: virtual set 640 x 480,
> display width 0
> [3585504.480] (II) VIVANTE(0): FBDevPreInit: adjust display width 640
>
> Oddly, the display reverts to 720p (1280x720) if I stop X.
>
> This appears using either kernel version 3.0.35 or 3.10.17.
>
> I'm continuing to investigate, but thought I'd send out a note
> in case others are seeing similar behaviour or know what might
> be involved here.
>

While I haven't figured out why the X startup isn't recognizing
the current video mode, I have figured out that I can switch
between modes using XRandR:

1080P:
	root@nitrogen6x-lite:~# xrandr --size 1920x1080 --rate 60
720P:
	root@nitrogen6x-lite:~# xrandr --size 1280x720 --rate 60

There's probably also a way to set this up inside xorg.conf,
but I don't know the secret(s) yet.

Regards,


Eric
Diego Rondini - Jan. 29, 2014, 3:56 p.m.
Eric Nelson wrote:
> I'm not sure if this is the right patch to tag, but during my testing of
> the Vivante/X integration, I saw some issues related to mode settings.
> 
> On Nitrogen6x Quad core, I'm seeing X start up with a mode of 640x480,
> on the HDMI device even though the kernel command line is configured
> for 720P.
> 
> The same is not true with the same monitor and Nitrogen6_Lite (Solo
> processor):
> 
> The prime leads are these from Xorg.0.log (attached):
> 
> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 connected
> [3585503.788] (II) VIVANTE(0): Using exact sizes for initial modes
> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 using initial mode
> V:640x480p-60
> [3585504.480] (II) VIVANTE(0): imxDisplayPreInit: virtual set 640 x 480,
> display width 0
> [3585504.480] (II) VIVANTE(0): FBDevPreInit: adjust display width 640
> 
> Oddly, the display reverts to 720p (1280x720) if I stop X.
> 
> This appears using either kernel version 3.0.35 or 3.10.17.
> 
> I'm continuing to investigate, but thought I'd send out a note
> in case others are seeing similar behaviour or know what might
> be involved here.

I confirm I have the same issue, X is starting per default at 640x480 on HDMI, 
which is not a good default.
I can subsequently change the resolution to 1280x720 or 1920x1080 with xrandr.

Diego
Eric Nelson - Jan. 29, 2014, 4:52 p.m.
Thanks Diego,

On 01/29/2014 08:56 AM, Diego wrote:
> Eric Nelson wrote:
>> I'm not sure if this is the right patch to tag, but during my testing of
>> the Vivante/X integration, I saw some issues related to mode settings.
>>
>> On Nitrogen6x Quad core, I'm seeing X start up with a mode of 640x480,
>> on the HDMI device even though the kernel command line is configured
>> for 720P.
>>
>> The same is not true with the same monitor and Nitrogen6_Lite (Solo
>> processor):
>>
>> The prime leads are these from Xorg.0.log (attached):
>>
>> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 connected
>> [3585503.788] (II) VIVANTE(0): Using exact sizes for initial modes
>> [3585503.788] (II) VIVANTE(0): Output DISP3 BG - DI1 using initial mode
>> V:640x480p-60
>> [3585504.480] (II) VIVANTE(0): imxDisplayPreInit: virtual set 640 x 480,
>> display width 0
>> [3585504.480] (II) VIVANTE(0): FBDevPreInit: adjust display width 640
>>
>> Oddly, the display reverts to 720p (1280x720) if I stop X.
>>
>> This appears using either kernel version 3.0.35 or 3.10.17.
>>
>> I'm continuing to investigate, but thought I'd send out a note
>> in case others are seeing similar behaviour or know what might
>> be involved here.
>
> I confirm I have the same issue, X is starting per default at 640x480 on HDMI,
> which is not a good default.
> I can subsequently change the resolution to 1280x720 or 1920x1080 with xrandr.
>

I just tested on SABRE SD to remove the possibility that one of
our kernel patches was coming into play and found the same result:

root@imx6qsabresd:~# cat /proc/cmdline
video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:off 
video=mxcfb2:off video=mxcfb3:off console=ttymxc0,115200 
root=/dev/mmcblk0p2 rootwait rw
root@imx6qsabresd:~# cat /sys/class/graphics/fb0/mode
U:640x480p-60

Regards,


Eric

Patch

diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
similarity index 80%
rename from recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
rename to recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
index 35a5759..31f2747 100644
--- a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.5.7-1.0.0-alpha.2.bb
+++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante_3.10.17-1.0.0.bb
@@ -1,5 +1,5 @@ 
-# Copyright (C) 2012-2013 Freescale Semiconductor
-# Copyright (C) 2012-2013 O.S. Systems Software LTDA.
+# Copyright (C) 2012-2014 Freescale Semiconductor
+# Copyright (C) 2012-2014 O.S. Systems Software LTDA.
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 require recipes-graphics/xorg-driver/xorg-driver-video.inc
@@ -10,9 +10,10 @@  DEPENDS += "virtual/xserver virtual/libx11 virtual/libgal-x11 gpu-viv-bin-mx6q p
 
 LIC_FILES_CHKSUM = "file://EXA/src/vivante_fbdev/vivante.h;endline=19;md5=641ac6e6d013833e36290797f4d7089c"
 
-SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}.tar.gz"
-SRC_URI[md5sum] = "3fc3d355d721656144920afd06fb1bff"
-SRC_URI[sha256sum] = "49fab65a0a1ea74ec6b04700e035b1351244fbd363301d59d6d0cbffe37d6fb9"
+# FIXME: Drop 'beta' suffix for GA release
+SRC_URI = "${FSL_MIRROR}/xserver-xorg-video-imx-viv-${PV}_beta.tar.gz"
+SRC_URI[md5sum] = "fee0e4820fe3f89e5f36a0b343e4a33f"
+SRC_URI[sha256sum] = "b65aef86943cb0fcd2dd7ded01215038dcf2761779ce39186ab3c8c2d4b010b1"
 
 EXTRA_OEMAKE += "-C EXA/src -f makefile.linux prefix=${D}/usr \
                  sysroot=${STAGING_DIR_TARGET} \
@@ -24,7 +25,7 @@  CFLAGS += "-I${STAGING_INCDIR}/xorg \
            -I${STAGING_INCDIR}/drm \
            -I../../DRI_1.10.4/src"
 
-S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}/"
+S = "${WORKDIR}/xserver-xorg-video-imx-viv-${PV}_beta/"
 
 # FIXME: The Freescale provided Makefile has hardcodec include paths
 #        and this does not work in case prefix is different than /usr,