cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
238 Views
Registered: ‎02-10-2009

How to enable GPU mail-400 for x-window(Xorg)

Hi Everyone, 

   I adopted ZCU106 VCU TRD 2019.2 from https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/176783395/Zynq%2BUltraScale%2BMPSoC%2BVCU%2BTRD%2B2019.2

I found that Xorg doesn't take advantage of Mali-400 to render visual elements. System resource report of ARM streamline is as follows. CPU 0 is almost exhausted by Xorg whereas GPU usage is 0.

Does anyone know how to to speed up Xorg by Mali-400?

Xorg.jpg

I have checked the ROOFS configuration, libmail-xlnx,libmail-xlnx-dev, packagegroup-petalinux-x11 and packagegroup-petalinux-x11-dev are enabled as follows.

 

rootfs1.gifrootfs2.gif

0 Kudos
6 Replies
Highlighted
Teacher
Teacher
216 Views
Registered: ‎06-16-2013

Hi @xela_lin 

 

Did you make sure Xorg log file and xorg.conf file ?

 

Best regards,

0 Kudos
Highlighted
Contributor
Contributor
192 Views
Registered: ‎02-10-2009

Hi @watari 

   Thanks for your help. I don't have idea how to check it, attached files are Xorg log file and xorg.conf file. 

Alex

0 Kudos
Highlighted
Teacher
Teacher
165 Views
Registered: ‎06-16-2013

Hi @xela_lin 

 

Would you try debug with modified xorg.conf (change debug option from false to true) ?

 

Best regards,

0 Kudos
Highlighted
Contributor
Contributor
104 Views
Registered: ‎02-10-2009

@watari 

   Thanks for you help. I have enabled debug option as attached file, but i don't have any idea how to see it. how to check whether mail-400 is enabled. Thanks

Alex

0 Kudos
Highlighted
Teacher
Teacher
90 Views
Registered: ‎06-16-2013

Hi @xela_lin 

 

What kind of package are you using (DRM, X, EGEL2 and so on) ?

Also, what kind of backend are you choosing as Mali userland driver ?

 

According to this log file, it seems package issue and/or Mali backend setting issue.

 

Would you make sure it ?

 

Best regards,

0 Kudos
Highlighted
Contributor
Contributor
21 Views
Registered: ‎02-10-2009

The environment is listed below:

1. DRM, X and OpenGL ES are default ones in petalinux 2019.2.
2. Current Mali backend is the default setting in vcu_trd:

lrwxrwxrwx 1 root root 12 Nov 16 08:31 /usr/lib/libMali.so -> libMali.so.9
lrwxrwxrwx 1 root root 14 Nov 16 08:31 /usr/lib/libMali.so.9 -> libMali.so.9.0
lrwxrwxrwx 1 root root 27 Nov 27 03:11 /usr/lib/libMali.so.9.0 -> /usr/lib/x11/libMali.so.9.0

3. Here is our scripts to launch X:

===matchbox===
#/bin/sh

export DISPLAY=:0.0
export XDG_RUNTIME_DIR=/run/user/0/

Xorg&
matchbox-window-manager&
matchbox-desktop&

sleep 3
xrandr --output DP-1 --mode 1920x1080

===wayland===
#/bin/sh

export DISPLAY=:0.0
export XDG_RUNTIME_DIR=/run/user/0/

Xorg&
weston --width=1920 --height=1080 --log=/var/log/weston.log&

sleep 3
xrandr --output DP-1 --mode 1920x1080

0 Kudos