All of lore.kernel.org
 help / color / mirror / Atom feed
* etnaviv image
@ 2017-05-24  1:32 Trevor Woerner
  2017-05-24  8:23 ` Trevor Woerner
  0 siblings, 1 reply; 15+ messages in thread
From: Trevor Woerner @ 2017-05-24  1:32 UTC (permalink / raw)
  To: meta-freescale

Hi,

I would like to build and run an image that doesn't use (proprietary)
Vivante graphics and uses etanviv instead.

I looked through the meta-etnaviv layer and I get the impression this
is no longer needed. It appears as though all the pieces I need have
been upstreamed (mesa, kernel). meta-etnaviv appears to want to build
pre-upstream mesa and kernel as well as provide some tools for etnaviv
development. So as long as I don't want/need the tools, it looks as
though I don't need meta-etnaviv (?).

Looking at meta-freescale, it looks as though what I'm looking for is
the ":use-mainline-bsp" MACHINEOVERRIDE. The only "freescale" boards I
have are the imx53qsb and the wandboard dual. The qsb looks like its
out of the question, and I get the feeling the wandboard might be a
little too old as well (or maybe just needs more attention?).

With a regular wandboard build, MACHINEOVERRIDES looks like:

    MACHINEOVERRIDES="armv7a:imx:mx6:imxpxp:imxipu:imxvpu:imxgpu2d:imxgpu3d:imxepdc:mx6dl:mx6q:wandboard

Once I add 'MACHINEOVERRIDES .= ":use-mainline-bsp"' the build fails
because it doesn't know what bootloader to use. A quick addition to
meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-fscl_%.bbappend
seems to fix this. Afterwards MACHINEOVERRIDES is:

    MACHINEOVERRIDES="armv7a:imx:wandboard:use-mainline-bsp"

It makes sense that items such as imxvpu, imxgpu2d, and imxgpu3d would
be removed. I'm not sure imx6 should be removed.

Even with this "use-mainline-bsp" in place, my wandboard build still
insists on using the wandboard-4.1.15 kernel. Is wandboard supported
upstream?

Is anyone able to build an image with vivante removed and etnaviv
working? Or is there more work to do? Maybe an "etnaviv"
MACHINEOVERRIDE is needed for any final fixups?

Should I, perhaps, consider a (newer) board? Is wandboard maybe too
old or not supported upstream such that etnaviv could work on it?

Best regards,
    Trevor


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
  2017-05-24  1:32 etnaviv image Trevor Woerner
@ 2017-05-24  8:23 ` Trevor Woerner
  2017-05-25  8:48   ` Trevor Woerner
  0 siblings, 1 reply; 15+ messages in thread
From: Trevor Woerner @ 2017-05-24  8:23 UTC (permalink / raw)
  To: meta-freescale

On Tue, May 23, 2017 at 9:32 PM, Trevor Woerner <twoerner@gmail.com> wrote:
> I looked through the meta-etnaviv layer and I get the impression this
> is no longer needed.

With more poking around, this earlier statement doesn't appear to be
true. It looks like I still need many of the pieces from meta-etnaviv
(such as the armada driver). In fact the only thing I don't think I
need from meta-etnaviv is the mesa stuff.

Unfortunately the xf86-video-armada recipe doesn't appear to build
against master. First there are some "warnings treated as errors"
issues. Then there is a:

    git/etnaviv/etnaviv.c:821:2: error: too many arguments to function
'pScreen->BlockHandler'

> Even with this "use-mainline-bsp" in place, my wandboard build still
> insists on using the wandboard-4.1.15 kernel. Is wandboard supported
> upstream?

With more poking around, wandboard can build and boot linux-fslc
including version 4.11 (4.11.0-rc6-fslc+g1dc71733212c) which includes
etnaviv support. Is there any reason the wandboard BSP is still stuck
on linux-wandboard (4.1.15)?

I get the feeling it *should* be possible to use etnaviv with
wandboard, but I can't seem to figure out the magic incantations :-)
From the etnaviv mailing list it looks like others have it working.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
  2017-05-24  8:23 ` Trevor Woerner
@ 2017-05-25  8:48   ` Trevor Woerner
  2017-05-25  9:01     ` Gary Thomas
  2017-05-25 13:17       ` Andreas Müller
  0 siblings, 2 replies; 15+ messages in thread
From: Trevor Woerner @ 2017-05-25  8:48 UTC (permalink / raw)
  To: meta-freescale; +Cc: yocto

w00t!!

It took a lot of hacking, but I was able to build and run an image for
the wandboard dual that uses etnaviv :-D

Patches to follow.

I now have 4 dev boards using open-source graphics:
1) rpi3-32 with vc4
2) dragonboard-410c with freedreno
3) minnow (turbot) with Intel's stuff
4) wandboard with etnaviv

glmark2-es2:

root@wandboard:~# glmark2-es2; cat /proc/loadavg
=======================================================
    glmark2 2014.03
=======================================================
    OpenGL Information
    GL_VENDOR:     etnaviv
    GL_RENDERER:   Gallium 0.4 on Vivante GC880 rev 5106
    GL_VERSION:    OpenGL ES 2.0 Mesa 17.0.4
=======================================================
[build] use-vbo=false: FPS: 69 FrameTime: 14.493 ms
[build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms
[texture] texture-filter=nearest: FPS: 68 FrameTime: 14.706 ms
[texture] texture-filter=linear: FPS: 68 FrameTime: 14.706 ms
[texture] texture-filter=mipmap: FPS: 66 FrameTime: 15.152 ms
[shading] shading=gouraud: FPS: 70 FrameTime: 14.286 ms
[shading] shading=blinn-phong-inf: FPS: 61 FrameTime: 16.393 ms
[shading] shading=phong: FPS: 47 FrameTime: 21.277 ms
[shading] shading=cel: FPS: 39 FrameTime: 25.641 ms
[bump] bump-render=high-poly: FPS: 52 FrameTime: 19.231 ms
[bump] bump-render=normals: FPS: 67 FrameTime: 14.925 ms
[bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
libpng warning: iCCP: known incorrect sRGB profile
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 32 FrameTime: 31.250 ms
libpng warning: iCCP: known incorrect sRGB profile
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 14 FrameTime: 71.429 ms
[pulsar] light=false:quads=5:texture=false: FPS: 61 FrameTime: 16.393 ms
libpng warning: iCCP: known incorrect sRGB profile
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
FPS: 67 FrameTime: 14.925 ms
Error: RenderObject::init: glCheckFramebufferStatus failed (0x8cdd)
libpng warning: iCCP: known incorrect sRGB profile
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
[desktop] effect=shadow:windows=4: FPS: 68 FrameTime: 14.706 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
FPS: 29 FrameTime: 34.483 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
FPS: 29 FrameTime: 34.483 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
FPS: 31 FrameTime: 32.258 ms
[ideas] speed=duration:[ 2797.051681] etnaviv-gpu 130000.gpu:
hangcheck detected gpu lockup!
[ 2797.059575] etnaviv-gpu 130000.gpu:      completed fence: 50513
[ 2797.065622] etnaviv-gpu 130000.gpu:      active fence: 50514
[ 2797.072346] etnaviv-gpu 130000.gpu: hangcheck recover!
[ 2800.011603] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
[ 2800.017890] etnaviv-gpu 130000.gpu:      completed fence: 50514
[ 2800.023895] etnaviv-gpu 130000.gpu:      active fence: 50515
[ 2800.029752] etnaviv-gpu 130000.gpu: hangcheck recover!
[ 2803.051591] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
[ 2803.057899] etnaviv-gpu 130000.gpu:      completed fence: 50516
[ 2803.063874] etnaviv-gpu 130000.gpu:      active fence: 50518
[ 2803.069702] etnaviv-gpu 130000.gpu: hangcheck recover!
[ 2805.531626] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
[ 2805.537973] etnaviv-gpu 130000.gpu:      completed fence: 50518
[ 2805.544052] etnaviv-gpu 130000.gpu:      active fence: 50520
[ 2805.551826] etnaviv-gpu 130000.gpu: hangcheck recover!
 FPS: 0 FrameTime: inf ms
[jellyfish] <default>: FPS: 28 FrameTime: 35.714 ms
[terrain] <default>: FPS: 2 FrameTime: 500.000 ms
[shadow] <default>: FPS: 30 FrameTime: 33.333 ms
Error: DistanceRenderTarget::setup: glCheckFramebufferStatus failed (0x8cdd)
Error: Failed to set up the render target for the depth pass
[refract] <default>: Set up failed
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 61 FrameTime: 16.393 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 31 FrameTime: 32.258 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 62 FrameTime: 16.129 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 46
FrameTime: 21.739 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 29
FrameTime: 34.483 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 45
FrameTime: 22.222 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45
FrameTime: 22.222 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29
FrameTime: 34.483 ms
=======================================================
                                  glmark2 Score: 46
=======================================================
0.46 0.24 0.09 1/98 621


not the greatest results, a couple crashes, but better than swrast!


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
  2017-05-25  8:48   ` Trevor Woerner
@ 2017-05-25  9:01     ` Gary Thomas
  2017-05-25  9:31       ` Trevor Woerner
  2017-05-25 10:39       ` Fabien Lahoudere
  2017-05-25 13:17       ` Andreas Müller
  1 sibling, 2 replies; 15+ messages in thread
From: Gary Thomas @ 2017-05-25  9:01 UTC (permalink / raw)
  To: yocto

On 2017-05-25 10:48, Trevor Woerner wrote:
> w00t!!
> 
> It took a lot of hacking, but I was able to build and run an image for
> the wandboard dual that uses etnaviv :-D
> 
> Patches to follow.
> 
> I now have 4 dev boards using open-source graphics:
> 1) rpi3-32 with vc4
> 2) dragonboard-410c with freedreno
> 3) minnow (turbot) with Intel's stuff
> 4) wandboard with etnaviv

Would you mind sharing your configuration (conf/local.conf, conf/bblayers.conf)?
I'm mostly interested in trying this on my RaspberryPi3.

Thanks

> 
> glmark2-es2:
> 
> root@wandboard:~# glmark2-es2; cat /proc/loadavg
> =======================================================
>      glmark2 2014.03
> =======================================================
>      OpenGL Information
>      GL_VENDOR:     etnaviv
>      GL_RENDERER:   Gallium 0.4 on Vivante GC880 rev 5106
>      GL_VERSION:    OpenGL ES 2.0 Mesa 17.0.4
> =======================================================
> [build] use-vbo=false: FPS: 69 FrameTime: 14.493 ms
> [build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms
> [texture] texture-filter=nearest: FPS: 68 FrameTime: 14.706 ms
> [texture] texture-filter=linear: FPS: 68 FrameTime: 14.706 ms
> [texture] texture-filter=mipmap: FPS: 66 FrameTime: 15.152 ms
> [shading] shading=gouraud: FPS: 70 FrameTime: 14.286 ms
> [shading] shading=blinn-phong-inf: FPS: 61 FrameTime: 16.393 ms
> [shading] shading=phong: FPS: 47 FrameTime: 21.277 ms
> [shading] shading=cel: FPS: 39 FrameTime: 25.641 ms
> [bump] bump-render=high-poly: FPS: 52 FrameTime: 19.231 ms
> [bump] bump-render=normals: FPS: 67 FrameTime: 14.925 ms
> [bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
> libpng warning: iCCP: known incorrect sRGB profile
> [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 32 FrameTime: 31.250 ms
> libpng warning: iCCP: known incorrect sRGB profile
> [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 14 FrameTime: 71.429 ms
> [pulsar] light=false:quads=5:texture=false: FPS: 61 FrameTime: 16.393 ms
> libpng warning: iCCP: known incorrect sRGB profile
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
> FPS: 67 FrameTime: 14.925 ms
> Error: RenderObject::init: glCheckFramebufferStatus failed (0x8cdd)
> libpng warning: iCCP: known incorrect sRGB profile
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> [desktop] effect=shadow:windows=4: FPS: 68 FrameTime: 14.706 ms
> [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
> FPS: 29 FrameTime: 34.483 ms
> [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
> FPS: 29 FrameTime: 34.483 ms
> [buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
> FPS: 31 FrameTime: 32.258 ms
> [ideas] speed=duration:[ 2797.051681] etnaviv-gpu 130000.gpu:
> hangcheck detected gpu lockup!
> [ 2797.059575] etnaviv-gpu 130000.gpu:      completed fence: 50513
> [ 2797.065622] etnaviv-gpu 130000.gpu:      active fence: 50514
> [ 2797.072346] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2800.011603] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2800.017890] etnaviv-gpu 130000.gpu:      completed fence: 50514
> [ 2800.023895] etnaviv-gpu 130000.gpu:      active fence: 50515
> [ 2800.029752] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2803.051591] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2803.057899] etnaviv-gpu 130000.gpu:      completed fence: 50516
> [ 2803.063874] etnaviv-gpu 130000.gpu:      active fence: 50518
> [ 2803.069702] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2805.531626] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2805.537973] etnaviv-gpu 130000.gpu:      completed fence: 50518
> [ 2805.544052] etnaviv-gpu 130000.gpu:      active fence: 50520
> [ 2805.551826] etnaviv-gpu 130000.gpu: hangcheck recover!
>   FPS: 0 FrameTime: inf ms
> [jellyfish] <default>: FPS: 28 FrameTime: 35.714 ms
> [terrain] <default>: FPS: 2 FrameTime: 500.000 ms
> [shadow] <default>: FPS: 30 FrameTime: 33.333 ms
> Error: DistanceRenderTarget::setup: glCheckFramebufferStatus failed (0x8cdd)
> Error: Failed to set up the render target for the depth pass
> [refract] <default>: Set up failed
> [conditionals] fragment-steps=0:vertex-steps=0: FPS: 61 FrameTime: 16.393 ms
> [conditionals] fragment-steps=5:vertex-steps=0: FPS: 31 FrameTime: 32.258 ms
> [conditionals] fragment-steps=0:vertex-steps=5: FPS: 62 FrameTime: 16.129 ms
> [function] fragment-complexity=low:fragment-steps=5: FPS: 46
> FrameTime: 21.739 ms
> [function] fragment-complexity=medium:fragment-steps=5: FPS: 29
> FrameTime: 34.483 ms
> [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 45
> FrameTime: 22.222 ms
> [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45
> FrameTime: 22.222 ms
> [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29
> FrameTime: 34.483 ms
> =======================================================
>                                    glmark2 Score: 46
> =======================================================
> 0.46 0.24 0.09 1/98 621
> 
> 
> not the greatest results, a couple crashes, but better than swrast!
> 


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
  2017-05-25  9:01     ` Gary Thomas
@ 2017-05-25  9:31       ` Trevor Woerner
  2017-05-25 10:39       ` Fabien Lahoudere
  1 sibling, 0 replies; 15+ messages in thread
From: Trevor Woerner @ 2017-05-25  9:31 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto

On Thu, May 25, 2017 at 5:01 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> Would you mind sharing your configuration (conf/local.conf,
> conf/bblayers.conf)?
> I'm mostly interested in trying this on my RaspberryPi3.

Absolutely!

I'm hoping to do a couple blog posts about it soon-ish showing
comparative results of glmark2-es2


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
  2017-05-25  9:01     ` Gary Thomas
  2017-05-25  9:31       ` Trevor Woerner
@ 2017-05-25 10:39       ` Fabien Lahoudere
  1 sibling, 0 replies; 15+ messages in thread
From: Fabien Lahoudere @ 2017-05-25 10:39 UTC (permalink / raw)
  To: yocto

On Thu, 2017-05-25 at 11:01 +0200, Gary Thomas wrote:
> On 2017-05-25 10:48, Trevor Woerner wrote:
> > w00t!!
> > 
> > It took a lot of hacking, but I was able to build and run an image for
> > the wandboard dual that uses etnaviv :-D
> > 
> > Patches to follow.
> > 
> > I now have 4 dev boards using open-source graphics:
> > 1) rpi3-32 with vc4
> > 2) dragonboard-410c with freedreno
> > 3) minnow (turbot) with Intel's stuff
> > 4) wandboard with etnaviv
> 
> Would you mind sharing your configuration (conf/local.conf, conf/bblayers.conf)?
> I'm mostly interested in trying this on my RaspberryPi3.
> 

I do this on rpi3 and it works fine.
https://fabienlahouderepro.blogspot.fr/2017/03/building-weston-image-with-yocto-for.html

> Thanks
> 
> > 
> > glmark2-es2:
> > 
> > root@wandboard:~# glmark2-es2; cat /proc/loadavg
> > =======================================================
> >      glmark2 2014.03
> > =======================================================
> >      OpenGL Information
> >      GL_VENDOR:     etnaviv
> >      GL_RENDERER:   Gallium 0.4 on Vivante GC880 rev 5106
> >      GL_VERSION:    OpenGL ES 2.0 Mesa 17.0.4
> > =======================================================
> > [build] use-vbo=false: FPS: 69 FrameTime: 14.493 ms
> > [build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms
> > [texture] texture-filter=nearest: FPS: 68 FrameTime: 14.706 ms
> > [texture] texture-filter=linear: FPS: 68 FrameTime: 14.706 ms
> > [texture] texture-filter=mipmap: FPS: 66 FrameTime: 15.152 ms
> > [shading] shading=gouraud: FPS: 70 FrameTime: 14.286 ms
> > [shading] shading=blinn-phong-inf: FPS: 61 FrameTime: 16.393 ms
> > [shading] shading=phong: FPS: 47 FrameTime: 21.277 ms
> > [shading] shading=cel: FPS: 39 FrameTime: 25.641 ms
> > [bump] bump-render=high-poly: FPS: 52 FrameTime: 19.231 ms
> > [bump] bump-render=normals: FPS: 67 FrameTime: 14.925 ms
> > [bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 32 FrameTime: 31.250 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 14 FrameTime: 71.429 ms
> > [pulsar] light=false:quads=5:texture=false: FPS: 61 FrameTime: 16.393 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
> > FPS: 67 FrameTime: 14.925 ms
> > Error: RenderObject::init: glCheckFramebufferStatus failed (0x8cdd)
> > libpng warning: iCCP: known incorrect sRGB profile
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > [desktop] effect=shadow:windows=4: FPS: 68 FrameTime: 14.706 ms
> > [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-
> > method=map:
> > FPS: 29 FrameTime: 34.483 ms
> > [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-
> > method=subdata:
> > FPS: 29 FrameTime: 34.483 ms
> > [buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-
> > method=map:
> > FPS: 31 FrameTime: 32.258 ms
> > [ideas] speed=duration:[ 2797.051681] etnaviv-gpu 130000.gpu:
> > hangcheck detected gpu lockup!
> > [ 2797.059575] etnaviv-gpu 130000.gpu:      completed fence: 50513
> > [ 2797.065622] etnaviv-gpu 130000.gpu:      active fence: 50514
> > [ 2797.072346] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2800.011603] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2800.017890] etnaviv-gpu 130000.gpu:      completed fence: 50514
> > [ 2800.023895] etnaviv-gpu 130000.gpu:      active fence: 50515
> > [ 2800.029752] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2803.051591] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2803.057899] etnaviv-gpu 130000.gpu:      completed fence: 50516
> > [ 2803.063874] etnaviv-gpu 130000.gpu:      active fence: 50518
> > [ 2803.069702] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2805.531626] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2805.537973] etnaviv-gpu 130000.gpu:      completed fence: 50518
> > [ 2805.544052] etnaviv-gpu 130000.gpu:      active fence: 50520
> > [ 2805.551826] etnaviv-gpu 130000.gpu: hangcheck recover!
> >   FPS: 0 FrameTime: inf ms
> > [jellyfish] <default>: FPS: 28 FrameTime: 35.714 ms
> > [terrain] <default>: FPS: 2 FrameTime: 500.000 ms
> > [shadow] <default>: FPS: 30 FrameTime: 33.333 ms
> > Error: DistanceRenderTarget::setup: glCheckFramebufferStatus failed (0x8cdd)
> > Error: Failed to set up the render target for the depth pass
> > [refract] <default>: Set up failed
> > [conditionals] fragment-steps=0:vertex-steps=0: FPS: 61 FrameTime: 16.393 ms
> > [conditionals] fragment-steps=5:vertex-steps=0: FPS: 31 FrameTime: 32.258 ms
> > [conditionals] fragment-steps=0:vertex-steps=5: FPS: 62 FrameTime: 16.129 ms
> > [function] fragment-complexity=low:fragment-steps=5: FPS: 46
> > FrameTime: 21.739 ms
> > [function] fragment-complexity=medium:fragment-steps=5: FPS: 29
> > FrameTime: 34.483 ms
> > [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 45
> > FrameTime: 22.222 ms
> > [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45
> > FrameTime: 22.222 ms
> > [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29
> > FrameTime: 34.483 ms
> > =======================================================
> >                                    glmark2 Score: 46
> > =======================================================
> > 0.46 0.24 0.09 1/98 621
> > 
> > 
> > not the greatest results, a couple crashes, but better than swrast!
> > 
> 
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [meta-freescale] etnaviv image
  2017-05-25  8:48   ` Trevor Woerner
@ 2017-05-25 13:17       ` Andreas Müller
  2017-05-25 13:17       ` Andreas Müller
  1 sibling, 0 replies; 15+ messages in thread
From: Andreas Müller @ 2017-05-25 13:17 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: meta-freescale, yocto

On Thu, May 25, 2017 at 10:48 AM, Trevor Woerner <twoerner@gmail.com> wrote:
> w00t!!
>
> It took a lot of hacking, but I was able to build and run an image for
> the wandboard dual that uses etnaviv :-D
>
> Patches to follow.
>
> I now have 4 dev boards using open-source graphics:
> 1) rpi3-32 with vc4
> 2) dragonboard-410c with freedreno
> 3) minnow (turbot) with Intel's stuff
> 4) wandboard with etnaviv
>
> glmark2-es2:
>
> root@wandboard:~# glmark2-es2; cat /proc/loadavg
> =======================================================
>     glmark2 2014.03
> =======================================================
>     OpenGL Information
>     GL_VENDOR:     etnaviv
>     GL_RENDERER:   Gallium 0.4 on Vivante GC880 rev 5106
>     GL_VERSION:    OpenGL ES 2.0 Mesa 17.0.4
> =======================================================
> [build] use-vbo=false: FPS: 69 FrameTime: 14.493 ms
> [build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms
> [texture] texture-filter=nearest: FPS: 68 FrameTime: 14.706 ms
> [texture] texture-filter=linear: FPS: 68 FrameTime: 14.706 ms
> [texture] texture-filter=mipmap: FPS: 66 FrameTime: 15.152 ms
> [shading] shading=gouraud: FPS: 70 FrameTime: 14.286 ms
> [shading] shading=blinn-phong-inf: FPS: 61 FrameTime: 16.393 ms
> [shading] shading=phong: FPS: 47 FrameTime: 21.277 ms
> [shading] shading=cel: FPS: 39 FrameTime: 25.641 ms
> [bump] bump-render=high-poly: FPS: 52 FrameTime: 19.231 ms
> [bump] bump-render=normals: FPS: 67 FrameTime: 14.925 ms
> [bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
> libpng warning: iCCP: known incorrect sRGB profile
> [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 32 FrameTime: 31.250 ms
> libpng warning: iCCP: known incorrect sRGB profile
> [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 14 FrameTime: 71.429 ms
> [pulsar] light=false:quads=5:texture=false: FPS: 61 FrameTime: 16.393 ms
> libpng warning: iCCP: known incorrect sRGB profile
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
> FPS: 67 FrameTime: 14.925 ms
> Error: RenderObject::init: glCheckFramebufferStatus failed (0x8cdd)
> libpng warning: iCCP: known incorrect sRGB profile
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> [desktop] effect=shadow:windows=4: FPS: 68 FrameTime: 14.706 ms
> [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
> FPS: 29 FrameTime: 34.483 ms
> [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
> FPS: 29 FrameTime: 34.483 ms
> [buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
> FPS: 31 FrameTime: 32.258 ms
> [ideas] speed=duration:[ 2797.051681] etnaviv-gpu 130000.gpu:
> hangcheck detected gpu lockup!
> [ 2797.059575] etnaviv-gpu 130000.gpu:      completed fence: 50513
> [ 2797.065622] etnaviv-gpu 130000.gpu:      active fence: 50514
> [ 2797.072346] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2800.011603] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2800.017890] etnaviv-gpu 130000.gpu:      completed fence: 50514
> [ 2800.023895] etnaviv-gpu 130000.gpu:      active fence: 50515
> [ 2800.029752] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2803.051591] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2803.057899] etnaviv-gpu 130000.gpu:      completed fence: 50516
> [ 2803.063874] etnaviv-gpu 130000.gpu:      active fence: 50518
> [ 2803.069702] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2805.531626] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2805.537973] etnaviv-gpu 130000.gpu:      completed fence: 50518
> [ 2805.544052] etnaviv-gpu 130000.gpu:      active fence: 50520
> [ 2805.551826] etnaviv-gpu 130000.gpu: hangcheck recover!
>  FPS: 0 FrameTime: inf ms
> [jellyfish] <default>: FPS: 28 FrameTime: 35.714 ms
> [terrain] <default>: FPS: 2 FrameTime: 500.000 ms
> [shadow] <default>: FPS: 30 FrameTime: 33.333 ms
> Error: DistanceRenderTarget::setup: glCheckFramebufferStatus failed (0x8cdd)
> Error: Failed to set up the render target for the depth pass
> [refract] <default>: Set up failed
> [conditionals] fragment-steps=0:vertex-steps=0: FPS: 61 FrameTime: 16.393 ms
> [conditionals] fragment-steps=5:vertex-steps=0: FPS: 31 FrameTime: 32.258 ms
> [conditionals] fragment-steps=0:vertex-steps=5: FPS: 62 FrameTime: 16.129 ms
> [function] fragment-complexity=low:fragment-steps=5: FPS: 46
> FrameTime: 21.739 ms
> [function] fragment-complexity=medium:fragment-steps=5: FPS: 29
> FrameTime: 34.483 ms
> [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 45
> FrameTime: 22.222 ms
> [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45
> FrameTime: 22.222 ms
> [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29
> FrameTime: 34.483 ms
> =======================================================
>                                   glmark2 Score: 46
> =======================================================
> 0.46 0.24 0.09 1/98 621
>
>
> not the greatest results, a couple crashes, but better than swrast!
Very interesting. If I remember correct, there were further
enhancements for mesa 17.1.x on etnaviv - so keep going. There was a
patch for 17.1.0 on oe-core but that one was rejected (the x.x.0
versions are marked as development release)

Just an information don't want to stop your enthusiasm: With closed
source BLOB and X11 the values for glmark-es2 were 250-260 last time I
tested in imx6 (variscite board).

Best regards

Andreas


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
@ 2017-05-25 13:17       ` Andreas Müller
  0 siblings, 0 replies; 15+ messages in thread
From: Andreas Müller @ 2017-05-25 13:17 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: meta-freescale, yocto

On Thu, May 25, 2017 at 10:48 AM, Trevor Woerner <twoerner@gmail.com> wrote:
> w00t!!
>
> It took a lot of hacking, but I was able to build and run an image for
> the wandboard dual that uses etnaviv :-D
>
> Patches to follow.
>
> I now have 4 dev boards using open-source graphics:
> 1) rpi3-32 with vc4
> 2) dragonboard-410c with freedreno
> 3) minnow (turbot) with Intel's stuff
> 4) wandboard with etnaviv
>
> glmark2-es2:
>
> root@wandboard:~# glmark2-es2; cat /proc/loadavg
> =======================================================
>     glmark2 2014.03
> =======================================================
>     OpenGL Information
>     GL_VENDOR:     etnaviv
>     GL_RENDERER:   Gallium 0.4 on Vivante GC880 rev 5106
>     GL_VERSION:    OpenGL ES 2.0 Mesa 17.0.4
> =======================================================
> [build] use-vbo=false: FPS: 69 FrameTime: 14.493 ms
> [build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms
> [texture] texture-filter=nearest: FPS: 68 FrameTime: 14.706 ms
> [texture] texture-filter=linear: FPS: 68 FrameTime: 14.706 ms
> [texture] texture-filter=mipmap: FPS: 66 FrameTime: 15.152 ms
> [shading] shading=gouraud: FPS: 70 FrameTime: 14.286 ms
> [shading] shading=blinn-phong-inf: FPS: 61 FrameTime: 16.393 ms
> [shading] shading=phong: FPS: 47 FrameTime: 21.277 ms
> [shading] shading=cel: FPS: 39 FrameTime: 25.641 ms
> [bump] bump-render=high-poly: FPS: 52 FrameTime: 19.231 ms
> [bump] bump-render=normals: FPS: 67 FrameTime: 14.925 ms
> [bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
> libpng warning: iCCP: known incorrect sRGB profile
> [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 32 FrameTime: 31.250 ms
> libpng warning: iCCP: known incorrect sRGB profile
> [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 14 FrameTime: 71.429 ms
> [pulsar] light=false:quads=5:texture=false: FPS: 61 FrameTime: 16.393 ms
> libpng warning: iCCP: known incorrect sRGB profile
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
> FPS: 67 FrameTime: 14.925 ms
> Error: RenderObject::init: glCheckFramebufferStatus failed (0x8cdd)
> libpng warning: iCCP: known incorrect sRGB profile
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> [desktop] effect=shadow:windows=4: FPS: 68 FrameTime: 14.706 ms
> [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
> FPS: 29 FrameTime: 34.483 ms
> [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
> FPS: 29 FrameTime: 34.483 ms
> [buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
> FPS: 31 FrameTime: 32.258 ms
> [ideas] speed=duration:[ 2797.051681] etnaviv-gpu 130000.gpu:
> hangcheck detected gpu lockup!
> [ 2797.059575] etnaviv-gpu 130000.gpu:      completed fence: 50513
> [ 2797.065622] etnaviv-gpu 130000.gpu:      active fence: 50514
> [ 2797.072346] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2800.011603] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2800.017890] etnaviv-gpu 130000.gpu:      completed fence: 50514
> [ 2800.023895] etnaviv-gpu 130000.gpu:      active fence: 50515
> [ 2800.029752] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2803.051591] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2803.057899] etnaviv-gpu 130000.gpu:      completed fence: 50516
> [ 2803.063874] etnaviv-gpu 130000.gpu:      active fence: 50518
> [ 2803.069702] etnaviv-gpu 130000.gpu: hangcheck recover!
> [ 2805.531626] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> [ 2805.537973] etnaviv-gpu 130000.gpu:      completed fence: 50518
> [ 2805.544052] etnaviv-gpu 130000.gpu:      active fence: 50520
> [ 2805.551826] etnaviv-gpu 130000.gpu: hangcheck recover!
>  FPS: 0 FrameTime: inf ms
> [jellyfish] <default>: FPS: 28 FrameTime: 35.714 ms
> [terrain] <default>: FPS: 2 FrameTime: 500.000 ms
> [shadow] <default>: FPS: 30 FrameTime: 33.333 ms
> Error: DistanceRenderTarget::setup: glCheckFramebufferStatus failed (0x8cdd)
> Error: Failed to set up the render target for the depth pass
> [refract] <default>: Set up failed
> [conditionals] fragment-steps=0:vertex-steps=0: FPS: 61 FrameTime: 16.393 ms
> [conditionals] fragment-steps=5:vertex-steps=0: FPS: 31 FrameTime: 32.258 ms
> [conditionals] fragment-steps=0:vertex-steps=5: FPS: 62 FrameTime: 16.129 ms
> [function] fragment-complexity=low:fragment-steps=5: FPS: 46
> FrameTime: 21.739 ms
> [function] fragment-complexity=medium:fragment-steps=5: FPS: 29
> FrameTime: 34.483 ms
> [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 45
> FrameTime: 22.222 ms
> [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45
> FrameTime: 22.222 ms
> [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29
> FrameTime: 34.483 ms
> =======================================================
>                                   glmark2 Score: 46
> =======================================================
> 0.46 0.24 0.09 1/98 621
>
>
> not the greatest results, a couple crashes, but better than swrast!
Very interesting. If I remember correct, there were further
enhancements for mesa 17.1.x on etnaviv - so keep going. There was a
patch for 17.1.0 on oe-core but that one was rejected (the x.x.0
versions are marked as development release)

Just an information don't want to stop your enthusiasm: With closed
source BLOB and X11 the values for glmark-es2 were 250-260 last time I
tested in imx6 (variscite board).

Best regards

Andreas


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [meta-freescale] etnaviv image
  2017-05-25 13:17       ` Andreas Müller
@ 2017-05-26 23:23         ` Stephen Arnold
  -1 siblings, 0 replies; 15+ messages in thread
From: Stephen Arnold @ 2017-05-26 23:23 UTC (permalink / raw)
  To: meta-freescale; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 8072 bytes --]

@Trevor what's your config/setup?  Did you wind up using the
"use-mainline-bsp" thing?

I pretty much had to hack up some of the meta-fsl/meta-boundary stuff and
put everything else in local.conf.  It would be a little easier/cleaner if
the former had some ?= in a few places...

Anyway, I masked the browser stuff so I haven't tested that far yet, but
all you really need for 3D under X is new kernel/libdrm/mesa for ~110 fps
with glxgears.  I added recipes for the x11-armada stuff, which seems to
work for 2D but coughs an error in the xorg log.  I probably tested more
with oe-core than poky but both should work.

Anyway, my stuff is also on github, with a manifest repo for boundary
devices/fsl that should point to the hacks in VCT forks:

https://github.com/VCTLabs/vct-boundary-bsp-platform

https://github.com/sarnold/meta-small-arm-extra

Sample boundary conf files are in the second one ^^

Steve

On Thu, May 25, 2017 at 6:17 AM, Andreas Müller <
schnitzeltony@googlemail.com> wrote:

> On Thu, May 25, 2017 at 10:48 AM, Trevor Woerner <twoerner@gmail.com>
> wrote:
> > w00t!!
> >
> > It took a lot of hacking, but I was able to build and run an image for
> > the wandboard dual that uses etnaviv :-D
> >
> > Patches to follow.
> >
> > I now have 4 dev boards using open-source graphics:
> > 1) rpi3-32 with vc4
> > 2) dragonboard-410c with freedreno
> > 3) minnow (turbot) with Intel's stuff
> > 4) wandboard with etnaviv
> >
> > glmark2-es2:
> >
> > root@wandboard:~# glmark2-es2; cat /proc/loadavg
> > =======================================================
> >     glmark2 2014.03
> > =======================================================
> >     OpenGL Information
> >     GL_VENDOR:     etnaviv
> >     GL_RENDERER:   Gallium 0.4 on Vivante GC880 rev 5106
> >     GL_VERSION:    OpenGL ES 2.0 Mesa 17.0.4
> > =======================================================
> > [build] use-vbo=false: FPS: 69 FrameTime: 14.493 ms
> > [build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms
> > [texture] texture-filter=nearest: FPS: 68 FrameTime: 14.706 ms
> > [texture] texture-filter=linear: FPS: 68 FrameTime: 14.706 ms
> > [texture] texture-filter=mipmap: FPS: 66 FrameTime: 15.152 ms
> > [shading] shading=gouraud: FPS: 70 FrameTime: 14.286 ms
> > [shading] shading=blinn-phong-inf: FPS: 61 FrameTime: 16.393 ms
> > [shading] shading=phong: FPS: 47 FrameTime: 21.277 ms
> > [shading] shading=cel: FPS: 39 FrameTime: 25.641 ms
> > [bump] bump-render=high-poly: FPS: 52 FrameTime: 19.231 ms
> > [bump] bump-render=normals: FPS: 67 FrameTime: 14.925 ms
> > [bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 32 FrameTime: 31.250 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 14 FrameTime:
> 71.429 ms
> > [pulsar] light=false:quads=5:texture=false: FPS: 61 FrameTime: 16.393 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
> > FPS: 67 FrameTime: 14.925 ms
> > Error: RenderObject::init: glCheckFramebufferStatus failed (0x8cdd)
> > libpng warning: iCCP: known incorrect sRGB profile
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > [desktop] effect=shadow:windows=4: FPS: 68 FrameTime: 14.706 ms
> > [buffer] columns=200:interleave=false:update-dispersion=0.9:update-
> fraction=0.5:update-method=map:
> > FPS: 29 FrameTime: 34.483 ms
> > [buffer] columns=200:interleave=false:update-dispersion=0.9:update-
> fraction=0.5:update-method=subdata:
> > FPS: 29 FrameTime: 34.483 ms
> > [buffer] columns=200:interleave=true:update-dispersion=0.9:update-
> fraction=0.5:update-method=map:
> > FPS: 31 FrameTime: 32.258 ms
> > [ideas] speed=duration:[ 2797.051681] etnaviv-gpu 130000.gpu:
> > hangcheck detected gpu lockup!
> > [ 2797.059575] etnaviv-gpu 130000.gpu:      completed fence: 50513
> > [ 2797.065622] etnaviv-gpu 130000.gpu:      active fence: 50514
> > [ 2797.072346] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2800.011603] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2800.017890] etnaviv-gpu 130000.gpu:      completed fence: 50514
> > [ 2800.023895] etnaviv-gpu 130000.gpu:      active fence: 50515
> > [ 2800.029752] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2803.051591] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2803.057899] etnaviv-gpu 130000.gpu:      completed fence: 50516
> > [ 2803.063874] etnaviv-gpu 130000.gpu:      active fence: 50518
> > [ 2803.069702] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2805.531626] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2805.537973] etnaviv-gpu 130000.gpu:      completed fence: 50518
> > [ 2805.544052] etnaviv-gpu 130000.gpu:      active fence: 50520
> > [ 2805.551826] etnaviv-gpu 130000.gpu: hangcheck recover!
> >  FPS: 0 FrameTime: inf ms
> > [jellyfish] <default>: FPS: 28 FrameTime: 35.714 ms
> > [terrain] <default>: FPS: 2 FrameTime: 500.000 ms
> > [shadow] <default>: FPS: 30 FrameTime: 33.333 ms
> > Error: DistanceRenderTarget::setup: glCheckFramebufferStatus failed
> (0x8cdd)
> > Error: Failed to set up the render target for the depth pass
> > [refract] <default>: Set up failed
> > [conditionals] fragment-steps=0:vertex-steps=0: FPS: 61 FrameTime:
> 16.393 ms
> > [conditionals] fragment-steps=5:vertex-steps=0: FPS: 31 FrameTime:
> 32.258 ms
> > [conditionals] fragment-steps=0:vertex-steps=5: FPS: 62 FrameTime:
> 16.129 ms
> > [function] fragment-complexity=low:fragment-steps=5: FPS: 46
> > FrameTime: 21.739 ms
> > [function] fragment-complexity=medium:fragment-steps=5: FPS: 29
> > FrameTime: 34.483 ms
> > [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 45
> > FrameTime: 22.222 ms
> > [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45
> > FrameTime: 22.222 ms
> > [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29
> > FrameTime: 34.483 ms
> > =======================================================
> >                                   glmark2 Score: 46
> > =======================================================
> > 0.46 0.24 0.09 1/98 621
> >
> >
> > not the greatest results, a couple crashes, but better than swrast!
> Very interesting. If I remember correct, there were further
> enhancements for mesa 17.1.x on etnaviv - so keep going. There was a
> patch for 17.1.0 on oe-core but that one was rejected (the x.x.0
> versions are marked as development release)
>
> Just an information don't want to stop your enthusiasm: With closed
> source BLOB and X11 the values for glmark-es2 were 250-260 last time I
> tested in imx6 (variscite board).
>
> Best regards
>
> Andreas
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

[-- Attachment #2: Type: text/html, Size: 9756 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
@ 2017-05-26 23:23         ` Stephen Arnold
  0 siblings, 0 replies; 15+ messages in thread
From: Stephen Arnold @ 2017-05-26 23:23 UTC (permalink / raw)
  To: meta-freescale; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 8072 bytes --]

@Trevor what's your config/setup?  Did you wind up using the
"use-mainline-bsp" thing?

I pretty much had to hack up some of the meta-fsl/meta-boundary stuff and
put everything else in local.conf.  It would be a little easier/cleaner if
the former had some ?= in a few places...

Anyway, I masked the browser stuff so I haven't tested that far yet, but
all you really need for 3D under X is new kernel/libdrm/mesa for ~110 fps
with glxgears.  I added recipes for the x11-armada stuff, which seems to
work for 2D but coughs an error in the xorg log.  I probably tested more
with oe-core than poky but both should work.

Anyway, my stuff is also on github, with a manifest repo for boundary
devices/fsl that should point to the hacks in VCT forks:

https://github.com/VCTLabs/vct-boundary-bsp-platform

https://github.com/sarnold/meta-small-arm-extra

Sample boundary conf files are in the second one ^^

Steve

On Thu, May 25, 2017 at 6:17 AM, Andreas Müller <
schnitzeltony@googlemail.com> wrote:

> On Thu, May 25, 2017 at 10:48 AM, Trevor Woerner <twoerner@gmail.com>
> wrote:
> > w00t!!
> >
> > It took a lot of hacking, but I was able to build and run an image for
> > the wandboard dual that uses etnaviv :-D
> >
> > Patches to follow.
> >
> > I now have 4 dev boards using open-source graphics:
> > 1) rpi3-32 with vc4
> > 2) dragonboard-410c with freedreno
> > 3) minnow (turbot) with Intel's stuff
> > 4) wandboard with etnaviv
> >
> > glmark2-es2:
> >
> > root@wandboard:~# glmark2-es2; cat /proc/loadavg
> > =======================================================
> >     glmark2 2014.03
> > =======================================================
> >     OpenGL Information
> >     GL_VENDOR:     etnaviv
> >     GL_RENDERER:   Gallium 0.4 on Vivante GC880 rev 5106
> >     GL_VERSION:    OpenGL ES 2.0 Mesa 17.0.4
> > =======================================================
> > [build] use-vbo=false: FPS: 69 FrameTime: 14.493 ms
> > [build] use-vbo=true: FPS: 80 FrameTime: 12.500 ms
> > [texture] texture-filter=nearest: FPS: 68 FrameTime: 14.706 ms
> > [texture] texture-filter=linear: FPS: 68 FrameTime: 14.706 ms
> > [texture] texture-filter=mipmap: FPS: 66 FrameTime: 15.152 ms
> > [shading] shading=gouraud: FPS: 70 FrameTime: 14.286 ms
> > [shading] shading=blinn-phong-inf: FPS: 61 FrameTime: 16.393 ms
> > [shading] shading=phong: FPS: 47 FrameTime: 21.277 ms
> > [shading] shading=cel: FPS: 39 FrameTime: 25.641 ms
> > [bump] bump-render=high-poly: FPS: 52 FrameTime: 19.231 ms
> > [bump] bump-render=normals: FPS: 67 FrameTime: 14.925 ms
> > [bump] bump-render=height: FPS: 60 FrameTime: 16.667 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 32 FrameTime: 31.250 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 14 FrameTime:
> 71.429 ms
> > [pulsar] light=false:quads=5:texture=false: FPS: 61 FrameTime: 16.393 ms
> > libpng warning: iCCP: known incorrect sRGB profile
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
> > FPS: 67 FrameTime: 14.925 ms
> > Error: RenderObject::init: glCheckFramebufferStatus failed (0x8cdd)
> > libpng warning: iCCP: known incorrect sRGB profile
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > Error: RenderObject::size: glCheckFramebufferStatus failed (0x8cdd)
> > [desktop] effect=shadow:windows=4: FPS: 68 FrameTime: 14.706 ms
> > [buffer] columns=200:interleave=false:update-dispersion=0.9:update-
> fraction=0.5:update-method=map:
> > FPS: 29 FrameTime: 34.483 ms
> > [buffer] columns=200:interleave=false:update-dispersion=0.9:update-
> fraction=0.5:update-method=subdata:
> > FPS: 29 FrameTime: 34.483 ms
> > [buffer] columns=200:interleave=true:update-dispersion=0.9:update-
> fraction=0.5:update-method=map:
> > FPS: 31 FrameTime: 32.258 ms
> > [ideas] speed=duration:[ 2797.051681] etnaviv-gpu 130000.gpu:
> > hangcheck detected gpu lockup!
> > [ 2797.059575] etnaviv-gpu 130000.gpu:      completed fence: 50513
> > [ 2797.065622] etnaviv-gpu 130000.gpu:      active fence: 50514
> > [ 2797.072346] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2800.011603] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2800.017890] etnaviv-gpu 130000.gpu:      completed fence: 50514
> > [ 2800.023895] etnaviv-gpu 130000.gpu:      active fence: 50515
> > [ 2800.029752] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2803.051591] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2803.057899] etnaviv-gpu 130000.gpu:      completed fence: 50516
> > [ 2803.063874] etnaviv-gpu 130000.gpu:      active fence: 50518
> > [ 2803.069702] etnaviv-gpu 130000.gpu: hangcheck recover!
> > [ 2805.531626] etnaviv-gpu 130000.gpu: hangcheck detected gpu lockup!
> > [ 2805.537973] etnaviv-gpu 130000.gpu:      completed fence: 50518
> > [ 2805.544052] etnaviv-gpu 130000.gpu:      active fence: 50520
> > [ 2805.551826] etnaviv-gpu 130000.gpu: hangcheck recover!
> >  FPS: 0 FrameTime: inf ms
> > [jellyfish] <default>: FPS: 28 FrameTime: 35.714 ms
> > [terrain] <default>: FPS: 2 FrameTime: 500.000 ms
> > [shadow] <default>: FPS: 30 FrameTime: 33.333 ms
> > Error: DistanceRenderTarget::setup: glCheckFramebufferStatus failed
> (0x8cdd)
> > Error: Failed to set up the render target for the depth pass
> > [refract] <default>: Set up failed
> > [conditionals] fragment-steps=0:vertex-steps=0: FPS: 61 FrameTime:
> 16.393 ms
> > [conditionals] fragment-steps=5:vertex-steps=0: FPS: 31 FrameTime:
> 32.258 ms
> > [conditionals] fragment-steps=0:vertex-steps=5: FPS: 62 FrameTime:
> 16.129 ms
> > [function] fragment-complexity=low:fragment-steps=5: FPS: 46
> > FrameTime: 21.739 ms
> > [function] fragment-complexity=medium:fragment-steps=5: FPS: 29
> > FrameTime: 34.483 ms
> > [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 45
> > FrameTime: 22.222 ms
> > [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45
> > FrameTime: 22.222 ms
> > [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 29
> > FrameTime: 34.483 ms
> > =======================================================
> >                                   glmark2 Score: 46
> > =======================================================
> > 0.46 0.24 0.09 1/98 621
> >
> >
> > not the greatest results, a couple crashes, but better than swrast!
> Very interesting. If I remember correct, there were further
> enhancements for mesa 17.1.x on etnaviv - so keep going. There was a
> patch for 17.1.0 on oe-core but that one was rejected (the x.x.0
> versions are marked as development release)
>
> Just an information don't want to stop your enthusiasm: With closed
> source BLOB and X11 the values for glmark-es2 were 250-260 last time I
> tested in imx6 (variscite board).
>
> Best regards
>
> Andreas
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>

[-- Attachment #2: Type: text/html, Size: 9756 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [meta-freescale] etnaviv image
  2017-05-26 23:23         ` Stephen Arnold
  (?)
@ 2017-05-28  4:20         ` Trevor Woerner
  2017-05-31 23:29           ` Stephen Arnold
  -1 siblings, 1 reply; 15+ messages in thread
From: Trevor Woerner @ 2017-05-28  4:20 UTC (permalink / raw)
  To: Stephen Arnold; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3451 bytes --]

Hey Stephen,

On Fri, May 26, 2017 at 7:23 PM, Stephen Arnold
<stephen.arnold42@gmail.com> wrote:
> @Trevor what's your config/setup?  Did you wind up using the
> "use-mainline-bsp" thing?

Yes.

As I mentioned, I was working with a wandboard, on master, therefore
my layers are:
- openembedded-core
- meta-freescale-3rdparty
- meta-freescale

If I was working on some other board that didn't require
meta-freescale-3rdparty I wouldn't have needed that layer.
Additionally, I had started by using meta-etnaviv as well. That layer
hasn't seen any commits in roughly 10 months. Back then my guess is
that "upstream" didn't include very many of the bits required to get
this to work, therefore meta-etnaviv had to include recipes/bbappends
for mesa, libdrm, xorg-xserver, etc... in addition to the etnaviv drm
pieces themselves.

I created my own clone of meta-etnaviv
[https://github.com/twoerner/meta-etnaviv] and pushed all my
commits/updates there with the intention of, eventually, sending a
pull request to its author. But by the time I was done removing all
the things that are no longer needed (i.e. all the bbappends, since
upstream mesa, libdrm, etc... all include the necessary bits) and
updating the remaining stuff, I was left with very little. So little,
in fact, that I decided to simply fold what was left back into
meta-freescale itself, conditional on the "use-mainline-bsp"
MACHINEOVERRIDES, and sent those patches to the meta-fsl mailing list.

If the maintainers of meta-freescale accept the assumption that
use-mainline-bsp could be the flag that indicates interest between the
binary vivante drivers and etnaviv, then I hope they like the patches
and accept them into meta-freescale itself. Otherwise I could just
send that pull request to meta-etanviv's author (or re-work the
patches with whatever feedback I get). In any case, for wandboard
use-mainline-bsp is needed since the default kernel for wandboard is
linux-wandboard which is still stuck at 4.1.15 and is too old for this
etnaviv stuff. However using use-mainline-bsp with the wandboard is
broken, so I had to send some patches for that (u-boot and kernel) as
well (hopefully those patches are accepted as well).

Due to the fact so much of etnaviv is already upstream, getting
etanviv working doesn't take very much. It just took me a while to
reach that point, however :-)

> I pretty much had to hack up some of the meta-fsl/meta-boundary stuff and
> put everything else in local.conf.  It would be a little easier/cleaner if
> the former had some ?= in a few places...
>
> Anyway, I masked the browser stuff so I haven't tested that far yet, but all
> you really need for 3D under X is new kernel/libdrm/mesa for ~110 fps with
> glxgears.

I like to use mesa-demos and (especially) glmark2 as my programs of
choice for testing GL stuff.

> I added recipes for the x11-armada stuff, which seems to work for
> 2D but coughs an error in the xorg log.

I'm curious to know which x11-armada stuff you're using. I couldn't
get the stuff that came with meta-etnaviv to compile so I looked
around and found Russell King's code which seemed more up-to-date, and
compiled. Plus my xorg log doesn't have any errors (see attachment).

> I probably tested more with oe-core
> than poky but both should work.

I just tend to stick with oe-core.

I'm hoping to make a couple blog posts with my findings.

[-- Attachment #2: Xorg.0.log --]
[-- Type: text/x-log, Size: 12626 bytes --]

[    20.498] 
X.Org X Server 1.19.1
Release Date: 2017-01-11
[    20.502] X Protocol Version 11, Revision 0
[    20.503] Build Operating System: Linux 4.4.62-18.6-default x86_64 
[    20.505] Current Operating System: Linux wandboard 4.9.21-fslc+gb69ecd63c123 #1 SMP Fri May 26 14:57:41 EDT 2017 armv7l
[    20.506] Kernel command line: root=PARTUUID=6ef67890-01 rootwait rw console=ttymxc0,115200
[    20.509] Build Date: 27 May 2017  01:01:57AM
[    20.511]  
[    20.513] Current version of pixman: 0.34.0
[    20.516] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    20.517] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    20.525] (==) Log file: "/var/log/Xorg.0.log", Time: Sat May 27 05:04:39 2017
[    20.536] (==) Using config file: "/etc/X11/xorg.conf"
[    20.537] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    20.548] (==) No Layout section.  Using the first Screen section.
[    20.549] (==) No screen section available. Using defaults.
[    20.549] (**) |-->Screen "Default Screen Section" (0)
[    20.549] (**) |   |-->Monitor "<default monitor>"
[    20.560] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    20.560] (**) |   |-->Device "Driver0"
[    20.560] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    20.560] (==) Automatically adding devices
[    20.560] (==) Automatically enabling devices
[    20.560] (==) Automatically adding GPU devices
[    20.560] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    20.560] (WW) The directory "/usr/share/fonts/X11/misc/" does not exist.
[    20.560] 	Entry deleted from font path.
[    20.561] (WW) The directory "/usr/share/fonts/X11/TTF/" does not exist.
[    20.561] 	Entry deleted from font path.
[    20.561] (WW) The directory "/usr/share/fonts/X11/OTF/" does not exist.
[    20.561] 	Entry deleted from font path.
[    20.561] (WW) The directory "/usr/share/fonts/X11/Type1/" does not exist.
[    20.561] 	Entry deleted from font path.
[    20.561] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    20.561] 	Entry deleted from font path.
[    20.561] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    20.561] 	Entry deleted from font path.
[    20.561] (==) FontPath set to:
	
[    20.561] (==) ModulePath set to "/usr/lib/xorg/modules"
[    20.561] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    20.566] (II) Loader magic: 0x1c5d10
[    20.567] (II) Module ABI versions:
[    20.567] 	X.Org ANSI C Emulation: 0.4
[    20.567] 	X.Org Video Driver: 23.0
[    20.567] 	X.Org XInput driver : 24.1
[    20.567] 	X.Org Server Extension : 10.0
[    20.570] (II) xfree86: Adding drm device (/dev/dri/card1)
[    20.574] (II) xfree86: Adding drm device (/dev/dri/card0)
[    20.575] (II) no primary bus or device found
[    20.575] 	falling back to /sys/devices/soc0/display-subsystem/drm/card1
[    20.575] (II) LoadModule: "glx"
[    20.585] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    20.705] (II) Module glx: vendor="X.Org Foundation"
[    20.705] 	compiled for 1.19.1, module version = 1.0.0
[    20.705] 	ABI class: X.Org Server Extension, version 10.0
[    20.705] (II) LoadModule: "armada"
[    20.706] (II) Loading /usr/lib/xorg/modules/drivers/armada_drv.so
[    20.723] (II) Module armada: vendor="X.Org Foundation"
[    20.723] 	compiled for 1.19.1, module version = 0.0.0
[    20.723] 	Module class: X.Org Video Driver
[    20.723] 	ABI class: X.Org Video Driver, version 23.0
[    20.723] (II) armada: Support for Marvell LCD Controller: 88AP510
[    20.723] (II) armada: Support for Freescale IPU: i.MX6
[    20.723] (--) using VT number 1

[    20.784] (II) armada(0): Added screen for KMS device /dev/dri/card1
[    20.785] (II) armada(0): hardware: imx-drm
[    20.785] (II) armada(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    20.785] (==) armada(0): Depth 24, (--) framebuffer bpp 32
[    20.785] (==) armada(0): RGB weight 888
[    20.786] (==) armada(0): Default visual is TrueColor
[    20.786] (**) armada(0): Option "XvAccel" "TRUE"
[    20.786] (**) armada(0): Option "XvPreferOverlay" "TRUE"
[    20.786] (**) armada(0): Option "UseGPU" "TRUE"
[    20.786] (**) armada(0): Option "AccelModule" "etnadrm_gpu"
[    20.786] (II) Loading sub module "etnadrm_gpu"
[    20.786] (II) LoadModule: "etnadrm_gpu"
[    20.787] (II) Loading /usr/lib/xorg/modules/drivers/etnadrm_gpu.so
[    20.799] (II) Module Etnaviv GPU driver (DRM): vendor="X.Org Foundation"
[    20.799] 	compiled for 1.19.1, module version = 0.0.0
[    20.799] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    20.800] (**) armada(0): Option "DRI" "TRUE"
[    20.805] (II) armada(0): Output HDMI1 has no monitor section
[    20.807] (II) armada(0): EDID for output HDMI1
[    20.807] (II) armada(0): Printing probed modes for output HDMI1
[    20.807] (II) armada(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    20.807] (II) armada(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    20.807] (II) armada(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    20.807] (II) armada(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[    20.808] (II) armada(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    20.808] (II) armada(0): Output HDMI1 connected
[    20.808] (II) armada(0): Using exact sizes for initial modes
[    20.808] (II) armada(0): Output HDMI1 using initial mode 1024x768 +0+0
[    20.808] (==) armada(0): Using gamma correction (1.0, 1.0, 1.0)
[    20.808] (==) armada(0): DPI set to (96, 96)
[    20.808] (II) Loading sub module "fb"
[    20.808] (II) LoadModule: "fb"
[    20.816] (II) Loading /usr/lib/xorg/modules/libfb.so
[    20.827] (II) Module fb: vendor="X.Org Foundation"
[    20.827] 	compiled for 1.19.1, module version = 1.0.0
[    20.827] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    20.829] (==) Depth 24 pixmap format is 32 bpp
[    20.843] (**) armada(0): Option "HWcursor" "TRUE"
[    20.843] (**) armada(0): Option "HotPlug" "TRUE"
[    20.870] (==) armada(0): Backing store enabled
[    20.870] (==) armada(0): Silken mouse enabled
[    20.870] (--) armada(0): Vivante GC320 GPU revision 5007 (etnaviv) 2d PE2.0
[    20.871] (II) armada(0): [DRI2] Setup complete
[    20.871] (II) armada(0): [DRI2]   DRI driver: etnaviv
[    20.871] (II) armada(0): direct rendering: DRI2 enabled
[    20.877] (II) armada(0): No hardware cursor support - disabling hardware cursors
[    20.878] (II) armada(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    20.881] (==) armada(0): DPMS enabled
[    20.882] (**) armada(0): hotplug detection enabled
[    20.883] (II) armada(0): etnaviv: Xv: using YUY2 format intermediate YUV target
[    20.940] (--) RandR disabled
[    21.271] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    21.271] (II) AIGLX: enabled GLX_ARB_create_context
[    21.271] (II) AIGLX: enabled GLX_ARB_create_context_profile
[    21.271] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[    21.271] (II) AIGLX: enabled GLX_INTEL_swap_event
[    21.271] (II) AIGLX: enabled GLX_SGI_swap_control
[    21.271] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[    21.271] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[    21.271] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[    21.271] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[    21.273] (II) AIGLX: Loaded and initialized etnaviv
[    21.274] (II) GLX: Initialized DRI2 GL provider for screen 0
[    21.281] (II) armada(0): etnaviv: A8 target not supported
[    21.281] (II) armada(0): Setting screen physical size to 270 x 203
[    21.678] (II) config/udev: Adding input device   Mini Keyboard (/dev/input/event0)
[    21.678] (**)   Mini Keyboard: Applying InputClass "evdev keyboard catchall"
[    21.678] (**)   Mini Keyboard: Applying InputClass "libinput keyboard catchall"
[    21.678] (II) LoadModule: "libinput"
[    21.680] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    21.722] (II) Module libinput: vendor="X.Org Foundation"
[    21.722] 	compiled for 1.19.1, module version = 0.24.0
[    21.722] 	Module class: X.Org XInput Driver
[    21.722] 	ABI class: X.Org XInput driver, version 24.1
[    21.722] (II) Using input driver 'libinput' for '  Mini Keyboard'
[    21.722] (**)   Mini Keyboard: always reports core events
[    21.722] (**) Option "Device" "/dev/input/event0"
[    21.723] (**) Option "_source" "server/udev"
[    21.727] (II) input device '  Mini Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[    21.728] (II) input device '  Mini Keyboard', /dev/input/event0 is a keyboard
[    21.801] (**) Option "config_info" "udev:/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.0/0003:1997:2433.0001/input/input0/event0"
[    21.801] (II) XINPUT: Adding extended input device "  Mini Keyboard" (type: KEYBOARD, id 6)
[    21.810] (II) input device '  Mini Keyboard', /dev/input/event0 is tagged by udev as: Keyboard
[    21.810] (II) input device '  Mini Keyboard', /dev/input/event0 is a keyboard
[    21.824] (II) config/udev: Adding input device   Mini Keyboard (/dev/input/event1)
[    21.825] (**)   Mini Keyboard: Applying InputClass "evdev pointer catchall"
[    21.825] (**)   Mini Keyboard: Applying InputClass "evdev keyboard catchall"
[    21.825] (**)   Mini Keyboard: Applying InputClass "libinput pointer catchall"
[    21.825] (**)   Mini Keyboard: Applying InputClass "libinput keyboard catchall"
[    21.825] (II) Using input driver 'libinput' for '  Mini Keyboard'
[    21.825] (**)   Mini Keyboard: always reports core events
[    21.825] (**) Option "Device" "/dev/input/event1"
[    21.826] (**) Option "_source" "server/udev"
[    21.833] (II) input device '  Mini Keyboard', /dev/input/event1 is tagged by udev as: Keyboard Mouse
[    21.833] (II) input device '  Mini Keyboard', /dev/input/event1 is a pointer caps
[    21.833] (II) input device '  Mini Keyboard', /dev/input/event1 is a keyboard
[    21.921] (II) libinput:   Mini Keyboard: needs a virtual subdevice
[    21.921] (**) Option "config_info" "udev:/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.1/0003:1997:2433.0002/input/input1/event1"
[    21.921] (II) XINPUT: Adding extended input device "  Mini Keyboard" (type: MOUSE, id 7)
[    21.923] (**) Option "AccelerationScheme" "none"
[    21.923] (**)   Mini Keyboard: (accel) selected scheme none/0
[    21.923] (**)   Mini Keyboard: (accel) acceleration factor: 2.000
[    21.923] (**)   Mini Keyboard: (accel) acceleration threshold: 4
[    21.930] (II) input device '  Mini Keyboard', /dev/input/event1 is tagged by udev as: Keyboard Mouse
[    21.931] (II) input device '  Mini Keyboard', /dev/input/event1 is a pointer caps
[    21.931] (II) input device '  Mini Keyboard', /dev/input/event1 is a keyboard
[    21.943] (II) config/udev: Adding input device   Mini Keyboard (/dev/input/mouse0)
[    21.943] (II) No input driver specified, ignoring this device.
[    21.943] (II) This device may have been added with another device file.
[    22.007] (**)   Mini Keyboard: Applying InputClass "evdev pointer catchall"
[    22.008] (**)   Mini Keyboard: Applying InputClass "evdev keyboard catchall"
[    22.008] (**)   Mini Keyboard: Applying InputClass "libinput pointer catchall"
[    22.008] (**)   Mini Keyboard: Applying InputClass "libinput keyboard catchall"
[    22.008] (II) Using input driver 'libinput' for '  Mini Keyboard'
[    22.008] (**)   Mini Keyboard: always reports core events
[    22.008] (**) Option "Device" "/dev/input/event1"
[    22.008] (**) Option "_source" "_driver/libinput"
[    22.008] (II) libinput:   Mini Keyboard: is a virtual subdevice
[    22.009] (**) Option "config_info" "udev:/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1:1.1/0003:1997:2433.0002/input/input1/event1"
[    22.009] (II) XINPUT: Adding extended input device "  Mini Keyboard" (type: KEYBOARD, id 8)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [meta-freescale] etnaviv image
  2017-05-28  4:20         ` [meta-freescale] " Trevor Woerner
@ 2017-05-31 23:29           ` Stephen Arnold
  2017-06-01  5:33             ` Stephen Arnold
  0 siblings, 1 reply; 15+ messages in thread
From: Stephen Arnold @ 2017-05-31 23:29 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 3840 bytes --]

Hmm, I built the same commits from your recipes, and I'm still getting the
glx error in my logs :/

Other than that, things seem to work okay...

Steve

On Sat, May 27, 2017 at 9:20 PM, Trevor Woerner <twoerner@gmail.com> wrote:

> Hey Stephen,
>
> On Fri, May 26, 2017 at 7:23 PM, Stephen Arnold
> <stephen.arnold42@gmail.com> wrote:
> > @Trevor what's your config/setup?  Did you wind up using the
> > "use-mainline-bsp" thing?
>
> Yes.
>
> As I mentioned, I was working with a wandboard, on master, therefore
> my layers are:
> - openembedded-core
> - meta-freescale-3rdparty
> - meta-freescale
>
> If I was working on some other board that didn't require
> meta-freescale-3rdparty I wouldn't have needed that layer.
> Additionally, I had started by using meta-etnaviv as well. That layer
> hasn't seen any commits in roughly 10 months. Back then my guess is
> that "upstream" didn't include very many of the bits required to get
> this to work, therefore meta-etnaviv had to include recipes/bbappends
> for mesa, libdrm, xorg-xserver, etc... in addition to the etnaviv drm
> pieces themselves.
>
> I created my own clone of meta-etnaviv
> [https://github.com/twoerner/meta-etnaviv] and pushed all my
> commits/updates there with the intention of, eventually, sending a
> pull request to its author. But by the time I was done removing all
> the things that are no longer needed (i.e. all the bbappends, since
> upstream mesa, libdrm, etc... all include the necessary bits) and
> updating the remaining stuff, I was left with very little. So little,
> in fact, that I decided to simply fold what was left back into
> meta-freescale itself, conditional on the "use-mainline-bsp"
> MACHINEOVERRIDES, and sent those patches to the meta-fsl mailing list.
>
> If the maintainers of meta-freescale accept the assumption that
> use-mainline-bsp could be the flag that indicates interest between the
> binary vivante drivers and etnaviv, then I hope they like the patches
> and accept them into meta-freescale itself. Otherwise I could just
> send that pull request to meta-etanviv's author (or re-work the
> patches with whatever feedback I get). In any case, for wandboard
> use-mainline-bsp is needed since the default kernel for wandboard is
> linux-wandboard which is still stuck at 4.1.15 and is too old for this
> etnaviv stuff. However using use-mainline-bsp with the wandboard is
> broken, so I had to send some patches for that (u-boot and kernel) as
> well (hopefully those patches are accepted as well).
>
> Due to the fact so much of etnaviv is already upstream, getting
> etanviv working doesn't take very much. It just took me a while to
> reach that point, however :-)
>
> > I pretty much had to hack up some of the meta-fsl/meta-boundary stuff and
> > put everything else in local.conf.  It would be a little easier/cleaner
> if
> > the former had some ?= in a few places...
> >
> > Anyway, I masked the browser stuff so I haven't tested that far yet, but
> all
> > you really need for 3D under X is new kernel/libdrm/mesa for ~110 fps
> with
> > glxgears.
>
> I like to use mesa-demos and (especially) glmark2 as my programs of
> choice for testing GL stuff.
>
> > I added recipes for the x11-armada stuff, which seems to work for
> > 2D but coughs an error in the xorg log.
>
> I'm curious to know which x11-armada stuff you're using. I couldn't
> get the stuff that came with meta-etnaviv to compile so I looked
> around and found Russell King's code which seemed more up-to-date, and
> compiled. Plus my xorg log doesn't have any errors (see attachment).
>
> > I probably tested more with oe-core
> > than poky but both should work.
>
> I just tend to stick with oe-core.
>
> I'm hoping to make a couple blog posts with my findings.
>

[-- Attachment #1.2: Type: text/html, Size: 4682 bytes --]

[-- Attachment #2: Xorg.0.log --]
[-- Type: text/x-log, Size: 17660 bytes --]

[   558.679] 
X.Org X Server 1.19.3
Release Date: 2017-03-15
[   558.679] X Protocol Version 11, Revision 0
[   558.679] Build Operating System: Linux 4.10.10-gentoo armv7l Gentoo
[   558.679] Current Operating System: Linux gencube 4.10.10-gentoo #1 SMP PREEMPT Sun Apr 23 05:44:04 PDT 2017 armv7l
[   558.679] Kernel command line: console=ttymxc0 root=PARTUUID=7d2c5159-01 ro rootfstype=ext4 rootwait video=HDMI-A-1:1024x768 net.ifnames=0 cma=384M console=tty1 ahci_imx.hotplug=1
[   558.680] Build Date: 31 May 2017  03:00:40PM
[   558.680]  
[   558.680] Current version of pixman: 0.34.0
[   558.680] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   558.680] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   558.680] (==) Log file: "/var/log/Xorg.0.log", Time: Wed May 31 16:19:51 2017
[   558.681] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   558.681] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   558.681] (==) No Layout section.  Using the first Screen section.
[   558.681] (==) No screen section available. Using defaults.
[   558.681] (**) |-->Screen "Default Screen Section" (0)
[   558.681] (**) |   |-->Monitor "<default monitor>"
[   558.682] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[   558.682] (**) |   |-->Device "Builtin Default fbdev Device 0"
[   558.682] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   558.682] (==) Automatically adding devices
[   558.682] (==) Automatically enabling devices
[   558.682] (==) Automatically adding GPU devices
[   558.682] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   558.682] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[   558.682] 	Entry deleted from font path.
[   558.682] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   558.682] 	Entry deleted from font path.
[   558.682] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   558.682] 	Entry deleted from font path.
[   558.682] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   558.682] 	Entry deleted from font path.
[   558.682] 	(Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   558.682] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   558.682] 	Entry deleted from font path.
[   558.683] 	(Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   558.683] (==) FontPath set to:
	/usr/share/fonts/misc/
[   558.683] (==) ModulePath set to "/usr/lib/xorg/modules"
[   558.683] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   558.683] (II) Loader magic: 0x74d8f008
[   558.683] (II) Module ABI versions:
[   558.683] 	X.Org ANSI C Emulation: 0.4
[   558.683] 	X.Org Video Driver: 23.0
[   558.683] 	X.Org XInput driver : 24.1
[   558.683] 	X.Org Server Extension : 10.0
[   558.684] (II) xfree86: Adding drm device (/dev/dri/card1)
[   558.687] (II) xfree86: Adding drm device (/dev/dri/card0)
[   558.687] (II) xfree86: Adding drm device (/dev/dri/card2)
[   558.687] (II) no primary bus or device found
[   558.687] 	falling back to /sys/devices/soc0/display-subsystem/drm/card1
[   558.687] (II) Open APM successful
[   558.687] (II) LoadModule: "glx"
[   558.688] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   558.702] (II) Module glx: vendor="X.Org Foundation"
[   558.702] 	compiled for 1.19.3, module version = 1.0.0
[   558.702] 	ABI class: X.Org Server Extension, version 10.0
[   558.702] (II) LoadModule: "armada"
[   558.703] (II) Loading /usr/lib/xorg/modules/drivers/armada_drv.so
[   558.704] (II) Module armada: vendor="X.Org Foundation"
[   558.704] 	compiled for 1.19.3, module version = 0.0.0
[   558.704] 	Module class: X.Org Video Driver
[   558.704] 	ABI class: X.Org Video Driver, version 23.0
[   558.704] (II) armada: Support for Marvell LCD Controller: 88AP510
[   558.704] (II) armada: Support for Freescale IPU: i.MX6
[   558.704] (++) using VT number 7

[   558.704] (II) armada(0): Added screen for KMS device /dev/dri/card1
[   558.705] (II) armada(0): hardware: imx-drm
[   558.705] (II) armada(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   558.705] (==) armada(0): Depth 24, (--) framebuffer bpp 32
[   558.705] (==) armada(0): RGB weight 888
[   558.705] (==) armada(0): Default visual is TrueColor
[   558.705] (**) armada(0): Option "XvAccel" "TRUE"
[   558.705] (**) armada(0): Option "XvPreferOverlay" "TRUE"
[   558.705] (**) armada(0): Option "UseGPU" "TRUE"
[   558.705] (**) armada(0): Option "AccelModule" "etnadrm_gpu"
[   558.705] (II) Loading sub module "etnadrm_gpu"
[   558.705] (II) LoadModule: "etnadrm_gpu"
[   558.706] (II) Loading /usr/lib/xorg/modules/drivers/etnadrm_gpu.so
[   558.706] (II) Module Etnaviv GPU driver (DRM): vendor="X.Org Foundation"
[   558.706] 	compiled for 1.19.3, module version = 0.0.0
[   558.706] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   558.707] (**) armada(0): Option "DRI" "TRUE"
[   558.740] (II) armada(0): Output HDMI1 has no monitor section
[   558.774] (II) armada(0): EDID for output HDMI1
[   558.774] (II) armada(0): Manufacturer: TSB  Model: 206  Serial#: 16843009
[   558.774] (II) armada(0): Year: 2012  Week: 1
[   558.774] (II) armada(0): EDID Version: 1.3
[   558.774] (II) armada(0): Digital Display Input
[   558.774] (II) armada(0): Max Image Size [cm]: horiz.: 160  vert.: 90
[   558.774] (II) armada(0): Gamma: 2.20
[   558.774] (II) armada(0): No DPMS capabilities specified
[   558.774] (II) armada(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 
[   558.774] (II) armada(0): First detailed timing is preferred mode
[   558.774] (II) armada(0): redX: 0.640 redY: 0.335   greenX: 0.285 greenY: 0.605
[   558.774] (II) armada(0): blueX: 0.150 blueY: 0.060   whiteX: 0.280 whiteY: 0.290
[   558.774] (II) armada(0): Supported established timings:
[   558.774] (II) armada(0): 640x480@60Hz
[   558.774] (II) armada(0): 800x600@60Hz
[   558.774] (II) armada(0): 1024x768@60Hz
[   558.775] (II) armada(0): Manufacturer's mask: 0
[   558.775] (II) armada(0): Supported standard timings:
[   558.775] (II) armada(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[   558.775] (II) armada(0): #1: hsize: 1360  vsize 765  refresh: 60  vid: 49291
[   558.775] (II) armada(0): Supported detailed timing:
[   558.775] (II) armada(0): clock: 148.5 MHz   Image Size:  1600 x 900 mm
[   558.775] (II) armada(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[   558.775] (II) armada(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[   558.775] (II) armada(0): Supported detailed timing:
[   558.775] (II) armada(0): clock: 85.5 MHz   Image Size:  1600 x 900 mm
[   558.775] (II) armada(0): h_active: 1360  h_sync: 1424  h_sync_end 1536 h_blank_end 1792 h_border: 0
[   558.775] (II) armada(0): v_active: 768  v_sync: 771  v_sync_end 777 v_blanking: 795 v_border: 0
[   558.775] (II) armada(0): Monitor name: TOSHIBA-TV
[   558.775] (II) armada(0): Ranges: V min: 23 V max: 61 Hz, H min: 15 H max: 68 kHz, PixClock max 155 MHz
[   558.775] (II) armada(0): Supported detailed timing:
[   558.775] (II) armada(0): clock: 74.2 MHz   Image Size:  1600 x 900 mm
[   558.775] (II) armada(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[   558.775] (II) armada(0): v_active: 540  v_sync: 542  v_sync_end 547 v_blanking: 562 v_border: 0
[   558.775] (II) armada(0): Supported detailed timing:
[   558.775] (II) armada(0): clock: 74.2 MHz   Image Size:  1600 x 900 mm
[   558.775] (II) armada(0): h_active: 1280  h_sync: 1390  h_sync_end 1430 h_blank_end 1650 h_border: 0
[   558.775] (II) armada(0): v_active: 720  v_sync: 725  v_sync_end 730 v_blanking: 750 v_border: 0
[   558.775] (II) armada(0): Supported detailed timing:
[   558.775] (II) armada(0): clock: 27.0 MHz   Image Size:  1200 x 900 mm
[   558.776] (II) armada(0): h_active: 720  h_sync: 736  h_sync_end 798 h_blank_end 858 h_border: 0
[   558.776] (II) armada(0): v_active: 480  v_sync: 489  v_sync_end 495 v_blanking: 525 v_border: 0
[   558.776] (II) armada(0): Supported detailed timing:
[   558.776] (II) armada(0): clock: 27.0 MHz   Image Size:  1200 x 900 mm
[   558.776] (II) armada(0): h_active: 1440  h_sync: 1478  h_sync_end 1602 h_blank_end 1716 h_border: 0
[   558.776] (II) armada(0): v_active: 240  v_sync: 244  v_sync_end 247 v_blanking: 262 v_border: 0
[   558.776] (II) armada(0): Number of EDID sections to follow: 1
[   558.776] (II) armada(0): EDID (in hex):
[   558.776] (II) armada(0): 	00ffffffffffff005262060201010101
[   558.776] (II) armada(0): 	0116010380a05a780af09da355499b26
[   558.776] (II) armada(0): 	0f474a21080081808bc0010101010101
[   558.776] (II) armada(0): 	010101010101023a801871382d40582c
[   558.776] (II) armada(0): 	450040846300001e662150b051001b30
[   558.776] (II) armada(0): 	4070360040846300001e000000fc0054
[   558.776] (II) armada(0): 	4f53484942412d54560a2020000000fd
[   558.776] (II) armada(0): 	00173d0f440f000a2020202020200194
[   558.776] (II) armada(0): 	02032671499001020304050607202609
[   558.776] (II) armada(0): 	0707110718830100006c030c00200000
[   558.776] (II) armada(0): 	21c015151f1f011d8018711c1620582c
[   558.776] (II) armada(0): 	250040846300009e011d007251d01e20
[   558.776] (II) armada(0): 	6e28550040846300001e8c0ad08a20e0
[   558.777] (II) armada(0): 	2d10103e9600b084430000188c0aa014
[   558.777] (II) armada(0): 	51f01600267c4300b084430000980000
[   558.777] (II) armada(0): 	0000000000000000000000000000003f
[   558.777] (--) armada(0): HDMI max TMDS frequency 165000KHz
[   558.777] (II) armada(0): Printing probed modes for output HDMI1
[   558.777] (II) armada(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz eP)
[   558.777] (II) armada(0): Modeline "1920x1080"x59.9  148.35  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[   558.777] (II) armada(0): Modeline "1920x1080i"x60.0   74.25  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.8 kHz e)
[   558.777] (II) armada(0): Modeline "1920x1080"x24.0   74.25  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[   558.777] (II) armada(0): Modeline "1920x1080i"x59.9   74.18  1920 2008 2052 2200  1080 1084 1094 1125 interlace +hsync +vsync (33.7 kHz e)
[   558.777] (II) armada(0): Modeline "1920x1080"x24.0   74.18  1920 2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz e)
[   558.777] (II) armada(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[   558.777] (II) armada(0): Modeline "1360x768"x59.9   84.96  1366 1431 1567 1776  768 771 781 798 -hsync +vsync (47.8 kHz)
[   558.777] (II) armada(0): Modeline "1360x768"x60.0   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync (47.7 kHz e)
[   558.777] (II) armada(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[   558.777] (II) armada(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[   558.777] (II) armada(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[   558.777] (II) armada(0): Modeline "1440x480i"x59.9   27.00  1440 1478 1602 1716  480 488 494 525 interlace -hsync -vsync (15.7 kHz e)
[   558.777] (II) armada(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[   558.777] (II) armada(0): Modeline "720x480"x60.0   27.03  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[   558.778] (II) armada(0): Modeline "720x480"x59.9   27.00  720 736 798 858  480 489 495 525 -hsync -vsync (31.5 kHz e)
[   558.778] (II) armada(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[   558.778] (II) armada(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[   558.778] (II) armada(0): Output HDMI1 connected
[   558.778] (II) armada(0): Using exact sizes for initial modes
[   558.778] (II) armada(0): Output HDMI1 using initial mode 1920x1080 +0+0
[   558.778] (==) armada(0): Using gamma correction (1.0, 1.0, 1.0)
[   558.778] (==) armada(0): DPI set to (96, 96)
[   558.778] (II) Loading sub module "fb"
[   558.778] (II) LoadModule: "fb"
[   558.778] (II) Loading /usr/lib/xorg/modules/libfb.so
[   558.780] (II) Module fb: vendor="X.Org Foundation"
[   558.780] 	compiled for 1.19.3, module version = 1.0.0
[   558.780] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   558.781] (==) Depth 24 pixmap format is 32 bpp
[   558.804] (**) armada(0): Option "HWcursor" "TRUE"
[   558.804] (**) armada(0): Option "HotPlug" "TRUE"
[   558.805] (==) armada(0): Backing store enabled
[   558.805] (==) armada(0): Silken mouse enabled
[   558.805] (EE) armada(0): etnaviv: unable to open: Invalid argument
[   558.805] (WW) armada(0): [drm] Vivante initialization failed, running unaccelerated
[   558.805] (II) armada(0): No hardware cursor support - disabling hardware cursors
[   558.805] (II) armada(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   558.806] (==) armada(0): DPMS enabled
[   558.806] (**) armada(0): hotplug detection enabled
[   558.860] (--) RandR disabled
[   558.861] (II) AIGLX: Screen 0 is not DRI2 capable
[   558.861] (EE) AIGLX: reverting to software rendering
[   559.192] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[   559.194] (II) IGLX: Loaded and initialized swrast
[   559.194] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   559.194] (II) armada(0): Setting screen physical size to 508 x 285
[   559.338] (II) config/udev: Adding input device gpio-keys (/dev/input/event1)
[   559.338] (II) No input driver specified, ignoring this device.
[   559.338] (II) This device may have been added with another device file.
[   559.339] (II) config/udev: Adding input device gpio_ir_recv (/dev/input/event2)
[   559.340] (**) gpio_ir_recv: Applying InputClass "evdev keyboard catchall"
[   559.340] (II) LoadModule: "evdev"
[   559.340] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[   559.342] (II) Module evdev: vendor="X.Org Foundation"
[   559.342] 	compiled for 1.19.3, module version = 2.10.5
[   559.342] 	Module class: X.Org XInput Driver
[   559.342] 	ABI class: X.Org XInput driver, version 24.1
[   559.342] (II) Using input driver 'evdev' for 'gpio_ir_recv'
[   559.342] (**) gpio_ir_recv: always reports core events
[   559.342] (**) evdev: gpio_ir_recv: Device: "/dev/input/event2"
[   559.343] (--) evdev: gpio_ir_recv: Vendor 0x1 Product 0x1
[   559.343] (--) evdev: gpio_ir_recv: Found keys
[   559.343] (II) evdev: gpio_ir_recv: Configuring as keyboard
[   559.343] (**) Option "config_info" "udev:/sys/devices/soc0/ir-receiver/rc/rc0/input2/event2"
[   559.343] (II) XINPUT: Adding extended input device "gpio_ir_recv" (type: KEYBOARD, id 6)
[   559.343] (**) Option "xkb_rules" "evdev"
[   559.346] (II) config/udev: Adding input device Logitech K400 (/dev/input/event0)
[   559.346] (**) Logitech K400: Applying InputClass "evdev pointer catchall"
[   559.346] (**) Logitech K400: Applying InputClass "evdev keyboard catchall"
[   559.347] (II) Using input driver 'evdev' for 'Logitech K400'
[   559.347] (**) Logitech K400: always reports core events
[   559.347] (**) evdev: Logitech K400: Device: "/dev/input/event0"
[   559.347] (--) evdev: Logitech K400: Vendor 0x46d Product 0x4024
[   559.347] (--) evdev: Logitech K400: Found 20 mouse buttons
[   559.347] (--) evdev: Logitech K400: Found scroll wheel(s)
[   559.347] (--) evdev: Logitech K400: Found relative axes
[   559.347] (--) evdev: Logitech K400: Found x and y relative axes
[   559.347] (--) evdev: Logitech K400: Found absolute axes
[   559.347] (II) evdev: Logitech K400: Forcing absolute x/y axes to exist.
[   559.347] (--) evdev: Logitech K400: Found keys
[   559.347] (II) evdev: Logitech K400: Configuring as mouse
[   559.347] (II) evdev: Logitech K400: Configuring as keyboard
[   559.347] (II) evdev: Logitech K400: Adding scrollwheel support
[   559.348] (**) evdev: Logitech K400: YAxisMapping: buttons 4 and 5
[   559.348] (**) evdev: Logitech K400: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   559.348] (**) Option "config_info" "udev:/sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb2/2-1/2-1:1.2/0003:046D:C52B.0003/0003:046D:4024.0004/input/input0/event0"
[   559.348] (II) XINPUT: Adding extended input device "Logitech K400" (type: KEYBOARD, id 7)
[   559.348] (**) Option "xkb_rules" "evdev"
[   559.349] (II) evdev: Logitech K400: initialized for relative axes.
[   559.349] (WW) evdev: Logitech K400: ignoring absolute axes.
[   559.349] (**) Logitech K400: (accel) keeping acceleration scheme 1
[   559.349] (**) Logitech K400: (accel) acceleration profile 0
[   559.349] (**) Logitech K400: (accel) acceleration factor: 2.000
[   559.349] (**) Logitech K400: (accel) acceleration threshold: 4
[   559.351] (II) config/udev: Adding input device Logitech K400 (/dev/input/mouse0)
[   559.351] (II) No input driver specified, ignoring this device.
[   559.351] (II) This device may have been added with another device file.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [meta-freescale] etnaviv image
  2017-05-31 23:29           ` Stephen Arnold
@ 2017-06-01  5:33             ` Stephen Arnold
  2017-06-01 12:54               ` Trevor Woerner
  0 siblings, 1 reply; 15+ messages in thread
From: Stephen Arnold @ 2017-06-01  5:33 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4445 bytes --]

Apparently my cma arg was dorking up the gpu initialization; if you get
this error in dmesg, then adjusting the cmdline memory args is probably a
good idea:

$ dmesg | grep etnaviv

command buffer outside valid memory window

I had default cma size in kernel config, different (larger) size on the
command line, so I replaced cma with gpumem.  Kernel seems to like it
better than cma=foo

Steve

On Wed, May 31, 2017 at 4:29 PM, Stephen Arnold <stephen.arnold42@gmail.com>
wrote:

> Hmm, I built the same commits from your recipes, and I'm still getting the
> glx error in my logs :/
>
> Other than that, things seem to work okay...
>
> Steve
>
> On Sat, May 27, 2017 at 9:20 PM, Trevor Woerner <twoerner@gmail.com>
> wrote:
>
>> Hey Stephen,
>>
>> On Fri, May 26, 2017 at 7:23 PM, Stephen Arnold
>> <stephen.arnold42@gmail.com> wrote:
>> > @Trevor what's your config/setup?  Did you wind up using the
>> > "use-mainline-bsp" thing?
>>
>> Yes.
>>
>> As I mentioned, I was working with a wandboard, on master, therefore
>> my layers are:
>> - openembedded-core
>> - meta-freescale-3rdparty
>> - meta-freescale
>>
>> If I was working on some other board that didn't require
>> meta-freescale-3rdparty I wouldn't have needed that layer.
>> Additionally, I had started by using meta-etnaviv as well. That layer
>> hasn't seen any commits in roughly 10 months. Back then my guess is
>> that "upstream" didn't include very many of the bits required to get
>> this to work, therefore meta-etnaviv had to include recipes/bbappends
>> for mesa, libdrm, xorg-xserver, etc... in addition to the etnaviv drm
>> pieces themselves.
>>
>> I created my own clone of meta-etnaviv
>> [https://github.com/twoerner/meta-etnaviv] and pushed all my
>> commits/updates there with the intention of, eventually, sending a
>> pull request to its author. But by the time I was done removing all
>> the things that are no longer needed (i.e. all the bbappends, since
>> upstream mesa, libdrm, etc... all include the necessary bits) and
>> updating the remaining stuff, I was left with very little. So little,
>> in fact, that I decided to simply fold what was left back into
>> meta-freescale itself, conditional on the "use-mainline-bsp"
>> MACHINEOVERRIDES, and sent those patches to the meta-fsl mailing list.
>>
>> If the maintainers of meta-freescale accept the assumption that
>> use-mainline-bsp could be the flag that indicates interest between the
>> binary vivante drivers and etnaviv, then I hope they like the patches
>> and accept them into meta-freescale itself. Otherwise I could just
>> send that pull request to meta-etanviv's author (or re-work the
>> patches with whatever feedback I get). In any case, for wandboard
>> use-mainline-bsp is needed since the default kernel for wandboard is
>> linux-wandboard which is still stuck at 4.1.15 and is too old for this
>> etnaviv stuff. However using use-mainline-bsp with the wandboard is
>> broken, so I had to send some patches for that (u-boot and kernel) as
>> well (hopefully those patches are accepted as well).
>>
>> Due to the fact so much of etnaviv is already upstream, getting
>> etanviv working doesn't take very much. It just took me a while to
>> reach that point, however :-)
>>
>> > I pretty much had to hack up some of the meta-fsl/meta-boundary stuff
>> and
>> > put everything else in local.conf.  It would be a little easier/cleaner
>> if
>> > the former had some ?= in a few places...
>> >
>> > Anyway, I masked the browser stuff so I haven't tested that far yet,
>> but all
>> > you really need for 3D under X is new kernel/libdrm/mesa for ~110 fps
>> with
>> > glxgears.
>>
>> I like to use mesa-demos and (especially) glmark2 as my programs of
>> choice for testing GL stuff.
>>
>> > I added recipes for the x11-armada stuff, which seems to work for
>> > 2D but coughs an error in the xorg log.
>>
>> I'm curious to know which x11-armada stuff you're using. I couldn't
>> get the stuff that came with meta-etnaviv to compile so I looked
>> around and found Russell King's code which seemed more up-to-date, and
>> compiled. Plus my xorg log doesn't have any errors (see attachment).
>>
>> > I probably tested more with oe-core
>> > than poky but both should work.
>>
>> I just tend to stick with oe-core.
>>
>> I'm hoping to make a couple blog posts with my findings.
>>
>
>

[-- Attachment #2: Type: text/html, Size: 5565 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [meta-freescale] etnaviv image
  2017-06-01  5:33             ` Stephen Arnold
@ 2017-06-01 12:54               ` Trevor Woerner
  0 siblings, 0 replies; 15+ messages in thread
From: Trevor Woerner @ 2017-06-01 12:54 UTC (permalink / raw)
  To: Stephen Arnold; +Cc: yocto

Hey Steve,

That's great to hear, and thanks for the followup :-)

Otavio has since pushed everything to master, so hopefully the kludges
aren't required anymore.

Best regards,
    Trevor


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: etnaviv image
@ 2017-05-27 14:02 gmane
  0 siblings, 0 replies; 15+ messages in thread
From: gmane @ 2017-05-27 14:02 UTC (permalink / raw)
  To: yocto

Hi,

Great that you managed to get to get open-source graphics on those 
boards!

I would be very interested in the i.mx6 stuff. In roughly a week I'll 
fly to a board manufacturer to train some of their customers in Yocto/OE 
and friends.

Maybe I can get them to send you some i.mx6 quad board to try there as 
well?

Would you be interested?

Regards,

Robert


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-06-01 12:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24  1:32 etnaviv image Trevor Woerner
2017-05-24  8:23 ` Trevor Woerner
2017-05-25  8:48   ` Trevor Woerner
2017-05-25  9:01     ` Gary Thomas
2017-05-25  9:31       ` Trevor Woerner
2017-05-25 10:39       ` Fabien Lahoudere
2017-05-25 13:17     ` [meta-freescale] " Andreas Müller
2017-05-25 13:17       ` Andreas Müller
2017-05-26 23:23       ` [meta-freescale] " Stephen Arnold
2017-05-26 23:23         ` Stephen Arnold
2017-05-28  4:20         ` [meta-freescale] " Trevor Woerner
2017-05-31 23:29           ` Stephen Arnold
2017-06-01  5:33             ` Stephen Arnold
2017-06-01 12:54               ` Trevor Woerner
2017-05-27 14:02 gmane

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.