-
Notifications
You must be signed in to change notification settings - Fork 54
mainline kernel + H3-GPU + X11-window/glmark2 extremly slow #23
Comments
Hi @wuweidong0107 can you paste in your x11 log? It seems x11 is using swrast or something like that instead of Mali for rendering. |
[ 12.212] [ 12.632] (WW) Falling back to old probe method for armsoc |
@wuweidong0107 it seems you didn't compile armsoc_dri.so since it complains it can't find it |
Is armsoc_dri.so important? Where can I find its sources? |
It is the interface for using kernel dri. |
I prefer to disable AIGLX by changing my xorg.conf: Section "ServerFlags" Section "Extensions" Am I on the right path? |
You need DRI2 set to true to have HW acceleration.
Then it should work properly. |
Just finish your suggest. No luck
the X11 windows is still lagging |
Can you pastebin xf86-video-armsoc configure and build log? We need to understand if it found libdri correctly. |
|
Can you also post xf86-video-armsoc build log? Thanks |
I run ./configure --with-drmmode=sun4i. configure log is here: "make && make install" 's log is here: the X11 windows is still lagging. |
kernle's log: |
It complains about: It's looking for armsoc_dri.so in different folder than yours. Let me know |
In my rootfs there is no armsoc_dri.so in any directory...still don't know how to get one... |
Can you find armsoc_drv.so depencies? At least we check if that library expects armsoc_dri.so or something else. Let me know |
$ cd /usr/lib/xorg/modules/drivers |
Well, it seems there's no direct dependency with armsoc_dri.so |
I've had similar issues when the GPU clock was not configured properly. can you paste the output of /sys/kernel/debug/clk/clk_summary while your GPU tasks are running? |
cat /sys/kernel/debug/clk/clk_summary while running glmark2-es2. |
glmark2-es2.log h3 maili dts: |
@mripard could it be AIGLX error inside his x11 log? It seems he doesn't have armsoc_dri.so properly compiled or installed. |
@wuweidong0107 the frequencies look correct. IIRC, glmark-es2 has an option to do some off-screen rendering, can you try to use that and report the results? Are you running it fullscreen? @giuliobenetti this message shouldn't cause any harm. The glmark2-es2 logs show that we're using the correct opengl provider anyway |
Can anybody offer a rom that use mainline kernel with x11+gpu for H3 ? |
Wait, what have you been testing if you don't have one? |
....Mine is extremly slow. And I heard yours works perfectly. So I would like to test yours... |
I never tested it on an H3 |
@mripard I think currently the code didn't wire the PMU interrupt. I met this on H5, which I slightly modified for Mali-450 --the driver waits for PMU interrupt, but as it's not wired by the driver it cannot get it, so it timeout and gets slow. |
Can you test the branch test-pmu I just pushed? The other results I asked for would still be valuable. |
I have tha same problem on H3 armbian. When i run glxgears i get the errors:
|
You don't have sun4i-drm.so compiled probably. |
glxgears is an OpenGL application, the Mali supports only the Open GL ES API. So, it's not the same issue. |
@wuweidong0107 what distributive are You using? You can change root password to 1234 and create dd image for me? Please, if not difficult. |
just use |
I also noticed before that retroarch runs faster in fullscreen. Tim Dorohin is right. |
@wuweidong0107 which kernel are you using for testing? |
@cuu base on: |
OpenGL applications can be offloaded to the GPU with https://ptitseb.github.io/gl4es. I'm encountering the exact same issues as @wuweidong0107 on Armbian Stretch, with kernel |
Hi,guys
I am testing mainline kernel + H3 + GPU by follow repo:
https://github.com/mripard/sunxi-mali.git
https://github.com/free-electrons/mali-blobs
https://github.com/mripard/xf86-video-armsoc
About kernel:
I've done these step:
About rootfs:
I've done these step:
$ git clone https://github.com/mripard/xf86-video-armsoc
$./autogen.sh
$ apt-get install libudev-dev
$ make && make install
$ cp /usr/local/lib/xorg/modules/drivers/* /usr/lib/xorg/modules/drivers/
$ cp xorg.conf /etc/X11/
I am able to run glmark2-es2.But it is extremly slow. Only 15 fps....Any hints will be appreciated.
The text was updated successfully, but these errors were encountered: