PINE64
Hardware acceleration on PBP - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Hardware acceleration on PBP (/showthread.php?tid=8606)



Hardware acceleration on PBP - brent.thierens - 12-21-2019

Hi

I'm wondering whether it is normal that e.g. this video does not play fluently on the PBP. I've checked and all the hardware acceleration seems to be working. Can anyone confirm whether this is normal or if this video can be played on 1080p 60fps?


RE: Hardware acceleration on PBP - zaius - 12-21-2019

(12-21-2019, 12:14 PM)brent.thierens Wrote: Hi

I'm wondering whether it is normal that e.g. this video does not play fluently on the PBP. I've checked and all the hardware acceleration seems to be working. Can anyone confirm whether this is normal or if this video can be played on 1080p 60fps?

I'm playing that same video at 1080p60HD in fullscreen with the stock Debian build and it looks fine to me.


RE: Hardware acceleration on PBP - Luke - 12-21-2019

run glxgears please - I've had a situation when for some reason the GPU blob stopped working (not sure why).
If it runs, then good, if you just get errors - I'll walk you though what you should do.


RE: Hardware acceleration on PBP - brent.thierens - 12-21-2019

Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning: I'm trying to play it in Chromium on Ayufan's Ubuntu build.


RE: Hardware acceleration on PBP - Luke - 12-21-2019

(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.


RE: Hardware acceleration on PBP - ElektromAn - 12-22-2019

For Video aka H264 or others
VPU is responsible for doing this.
GPU may resize the video

so glxgears is worthless

If you are running 5.4 kernel from the Manjaro project this is enabled
Code:
$ zcat /proc/config.gz | grep HANTRO
CONFIG_VIDEO_HANTRO=m
CONFIG_VIDEO_HANTRO_ROCKCHIP=y

HANTRO is the IP supplier for the hardware decoder/encoder
older kernels from rockchip may have other name(s).

ffmpeg needs support for this
AFAIR
Only MPEG4 is currently enabled

The whole whole videostream encoding is currently in staging


RE: Hardware acceleration on PBP - e-minguez - 12-22-2019

(12-21-2019, 06:43 PM)Luke Wrote:
(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks Smile
Thanks!

Enviado desde mi ONEPLUS A5010 mediante Tapatalk


RE: Hardware acceleration on PBP - Arwen - 12-22-2019

(12-22-2019, 08:01 AM)e-minguez Wrote:
(12-21-2019, 06:43 PM)Luke Wrote:
(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks Smile
Thanks!

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
Ask, and you shall receive;

Wiki - Pinebook Pro - Software tunining guide

As usual, feel free to correct, improve or comment, (good or politely bad).

Right now it only has Linux kernel tuning for the VPU, that @ElektromAn, showed us above. When I see a kernel option specific to us, I'll try and remember to add it to the list.


As for Chromium and other software tuning, my thought is to make that a separate section on the Wiki. That concept is not yet implemented.

Edit: Made a separate section in the Wiki for Software tunning.


RE: Hardware acceleration on PBP - e-minguez - 12-22-2019

(12-22-2019, 12:57 PM)Arwen Wrote:
(12-22-2019, 08:01 AM)e-minguez Wrote:
(12-21-2019, 06:43 PM)Luke Wrote:
(12-21-2019, 04:03 PM)brent.thierens Wrote: Glxgears runs at ~100fps
However, it also shows
Quote:libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
libGL error: failed to create dri screen
libGL error: failed to load driver: rockchip
Might be worth mentioning:  I'm trying to play it in Chromium on Ayufan's Ubuntu build.

ah, that was worth mentioning. I recently did a lot of work on Chromium and it does need quite a few flags to get full acceleration. This will find its way into the next defaut OS release.
It would be nice if all those hacks are documented somewhere so the ones not using the official Debian can also benefit of those hacks Smile
Thanks!

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
Ask, and you shall receive;

Wiki - Pinebook Pro - Software tunining guide

As usual, feel free to correct, improve or comment, (good or politely bad).

When I see a kernel option specific to us, I'll try and remember to add it to the list.


As for Chromium and other software tuning, my thought is to make that a separate section on the Wiki. That concept is not yet implemented.
Thank you so much!

I like the idea of adding content to the wiki so it is centralized somewhere and the community can collaborate.

Enviado desde mi ONEPLUS A5010 mediante Tapatalk

Moderator edit: Fixed link, I changed the Wiki link & name, to better reflect it's usage. (Just in case someone clinks on this post's link.)


RE: Hardware acceleration on PBP - ElektromAn - 12-23-2019

(12-22-2019, 12:57 PM)Arwen Wrote: Ask, and you shall receive;

Wiki - Pinebook Pro - Software tunining guide

As usual, feel free to correct, improve or comment, (good or politely bad).

Right now it only has Linux kernel tuning for the VPU, that @ElektromAn, showed us above. When I see a kernel option specific to us, I'll try and remember to add it to the list.
I use Manjaro ARM
because it`s suits my needs of new/fresh HEAD builds
Personally I use Sabayon (some Gentoo stlye system)
Anyway
Ayufans Ubuntu uses rkmpv with hardware VPU is a non standard way (missing API)

Debian may support rkmkv with ayufan`s kernel, please check library versions here.
If you want to use VPU acceleration support with other application(s) you have to wait
The whole API is currently not stable, there are other VPU accelerations IP available or in use.
And because of this the HANTRO driver is in staging, you can read this in Kconfig or TODO.
Chromium uses non standard hacks, which are really hacks
you are here on your own ...
As I said currently mp4 is supported to decode for video playback
h265 and vp9 are also on the list.
Please read here
https://github.com/torvalds/linux/tree/master/drivers/staging/media/hantro
I may possible to use some NEON aka MMX style optimizations
One side note :
All hardware vendors are bad in to do upstream work for their hardware.
And some $wireless-usb driver will not go into staging because of this