Re: devfreq and panfrost on Allwinner H6

From: Clément Péron
Date: Sun Nov 22 2020 - 13:44:53 EST


HI Tomeu,

On Wed, 7 Oct 2020 at 19:49, Clément Péron <peron.clem@xxxxxxxxx> wrote:
>
> Hi Tomeu,
>
> On Wed, 7 Oct 2020 at 10:58, Tomeu Vizoso <tomeu@xxxxxxxxxxxxxxx> wrote:
> >
> > Hi Clément,
> >
> > Have just noticed that my Pine H64 board hangs when I try to set the
> > performance governor for the GPU devfreq.
> >
> > Is this a known bug?
> Yes it is.
>
> I try to summarize everything in this message:
> https://lkml.org/lkml/2020/8/3/153

Finally got it working with Jernej's help by setting a fixed frequency
to the GPU PLL.

https://github.com/clementperon/linux/commits/h6_gpu_devfreq

# glmark2-es2-drm --off-screen
=======================================================
glmark2 2020.04
=======================================================
OpenGL Information
GL_VENDOR: Panfrost
GL_RENDERER: Mali T720 (Panfrost)
GL_VERSION: OpenGL ES 3.0 Mesa 20.2.2
=======================================================
[build] use-vbo=false: FPS: 182 FrameTime: 5.495 ms
[build] use-vbo=true: FPS: 528 FrameTime: 1.894 ms
[texture] texture-filter=nearest: FPS: 604 FrameTime: 1.656 ms
[texture] texture-filter=linear: FPS: 599 FrameTime: 1.669 ms
[texture] texture-filter=mipmap: FPS: 581 FrameTime: 1.721 ms
[shading] shading=gouraud: FPS: 418 FrameTime: 2.392 ms
[shading] shading=blinn-phong-inf: FPS: 386 FrameTime: 2.591 ms
[shading] shading=phong: FPS: 325 FrameTime: 3.077 ms
[shading] shading=cel: FPS: 308 FrameTime: 3.247 ms
[bump] bump-render=high-poly: FPS: 214 FrameTime: 4.673 ms
[bump] bump-render=normals: FPS: 518 FrameTime: 1.931 ms
[bump] bump-render=height: FPS: 501 FrameTime: 1.996 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 295 FrameTime: 3.390 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 82 FrameTime: 12.195 ms
[pulsar] light=false:quads=5:texture=false: FPS: 507 FrameTime: 1.972 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4:
FPS: 46 FrameTime: 21.739 ms
[desktop] effect=shadow:windows=4: FPS: 172 FrameTime: 5.814 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map:
FPS: 34 FrameTime: 29.412 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata:
FPS: 33 FrameTime: 30.303 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map:
FPS: 40 FrameTime: 25.000 ms
[ideas] speed=duration: FPS: 66 FrameTime: 15.152 ms
[jellyfish] <default>: FPS: 158 FrameTime: 6.329 ms
[terrain] <default>: FPS: 12 FrameTime: 83.333 ms
[shadow] <default>: FPS: 211 FrameTime: 4.739 ms
[refract] <default>: FPS: 45 FrameTime: 22.222 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 654 FrameTime: 1.529 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 296 FrameTime: 3.378 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 645 FrameTime: 1.550 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 468
FrameTime: 2.137 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 289
FrameTime: 3.460 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 459
FrameTime: 2.179 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS:
460 FrameTime: 2.174 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 218
FrameTime: 4.587 ms
=======================================================
glmark2 Score: 313
=======================================================

Regards,
Clement

>
> Clement
>
> >
> > Thanks,
> >
> > Tomeu