pcDuinoV2 Mali - GLES2 hwaccell problem

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

pcDuinoV2 Mali - GLES2 hwaccell problem

Postby Pavel » Sun Oct 26, 2014 1:36 am

assist please, after few days debugging & attempting to up it, still nothing

logs:

$this->bbcode_second_pass_code('', '
root@alarm ~ # lsmod
Module Size Used by
mali 148324 0
sunxi_cedar_mod 8636 0
rtlwifi 66523 0
rtl8192c_common 49837 0
mac80211 185574 2 rtlwifi,rtl8192c_common
cfg80211 151159 2 mac80211,rtlwifi
mali_drm 2220 3
drm 157242 4 mali_drm
fbcon 33833 70
bitblit 3678 1 fbcon
softcursor 869 1 bitblit
font 7045 1 fbcon
disp_ump 735 0
ump 27256 4 mali,disp_ump
8192cu 435268 0
root@alarm ~ #
')

$this->bbcode_second_pass_code('', '
root@alarm ~ # ls -la /dev/{disp,ump,mali}
crw-rw-rw- 1 root root 252, 0 Oct 26 01:40 /dev/disp
crw-rw-rw- 1 root root 243, 0 Oct 26 01:41 /dev/mali
crw-rw-rw- 1 root root 244, 0 Oct 26 01:40 /dev/ump
')
$this->bbcode_second_pass_code('', '
root@alarm ~ # ls -la /usr/lib/lib*GL*
lrwxrwxrwx 1 root root 11 Mar 14 2014 /usr/lib/libEGL.so -> libEGL.so.1*
lrwxrwxrwx 1 root root 13 Mar 14 2014 /usr/lib/libEGL.so.1 -> libEGL.so.1.4*
lrwxrwxrwx 1 root root 10 Mar 14 2014 /usr/lib/libEGL.so.1.4 -> libMali.so*
lrwxrwxrwx 1 root root 17 Mar 14 2014 /usr/lib/libGLESv1_CM.so -> libGLESv1_CM.so.1*
lrwxrwxrwx 1 root root 19 Mar 14 2014 /usr/lib/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1*
lrwxrwxrwx 1 root root 10 Mar 14 2014 /usr/lib/libGLESv1_CM.so.1.1 -> libMali.so*
lrwxrwxrwx 1 root root 14 Mar 14 2014 /usr/lib/libGLESv2.so -> libGLESv2.so.2*
lrwxrwxrwx 1 root root 16 Mar 14 2014 /usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.0*
lrwxrwxrwx 1 root root 10 Mar 14 2014 /usr/lib/libGLESv2.so.2.0 -> libMali.so*
-rwxr-xr-x 1 root root 555760 Oct 26 01:03 /usr/lib/libGL.so*
-rwxr-xr-x 1 root root 555760 Oct 26 01:03 /usr/lib/libGL.so.1*
-rwxr-xr-x 1 root root 555760 Oct 26 01:03 /usr/lib/libGL.so.1.2.0*
root@alarm ~ #
')

$this->bbcode_second_pass_code('', '
[ 1017.732] (II) LoadModule: "fbturbo"
[ 1017.732] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[ 1017.737] (II) Module fbturbo: vendor="X.Org Foundation"
[ 1017.737] compiled for 1.16.0, module version = 0.5.1
[ 1017.737] Module class: X.Org Video Driver
[ 1017.737] ABI class: X.Org Video Driver, version 18.0
[ 1017.737] (II) FBTURBO: driver for framebuffer: fbturbo
[ 1017.737] (++) using VT number 1

[ 1017.737] (--) controlling tty is VT number 1, auto-enabling KeepTty
[ 1017.738] (WW) Falling back to old probe method for fbturbo
[ 1017.738] (II) Loading sub module "fbdevhw"
[ 1017.738] (II) LoadModule: "fbdevhw"
[ 1017.738] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 1017.739] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 1017.739] compiled for 1.16.1, module version = 0.0.2
[ 1017.739] ABI class: X.Org Video Driver, version 18.0
[ 1017.739] (II) FBTURBO(0): using /dev/fb0
[ 1017.739] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 1017.740] (II) FBTURBO(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 1017.740] (==) FBTURBO(0): Depth 24, (==) framebuffer bpp 32
[ 1017.740] (==) FBTURBO(0): RGB weight 888
[ 1017.740] (==) FBTURBO(0): Default visual is TrueColor
[ 1017.740] (==) FBTURBO(0): Using gamma correction (1.0, 1.0, 1.0)
[ 1017.740] (II) FBTURBO(0): hardware: (video memory: 7200kB)
[ 1017.740] (**) FBTURBO(0): Option "fbdev" "/dev/fb0"
[ 1017.740] (**) FBTURBO(0): Option "SwapbuffersWait" "true"
[ 1017.741] (II) FBTURBO(0): processor: Late ARM Cortex-A8 (NEON can bypass L1 cache)
[ 1017.741] (II) FBTURBO(0): checking modes against framebuffer device...
[ 1017.741] (II) FBTURBO(0): checking modes against monitor...
[ 1017.741] (--) FBTURBO(0): Virtual size is 1280x720 (pitch 1280)
[ 1017.741] (**) FBTURBO(0): Built-in mode "current": 74.2 MHz, 45.0 kHz, 60.0 Hz
[ 1017.741] (II) FBTURBO(0): Modeline "current"x0.0 74.25 1280 1390 1430 1650 720 725 730 750 +hsync +vsync -csync (45.0 kHz b)
[ 1017.741] (==) FBTURBO(0): DPI set to (96, 96)
[ 1017.741] (II) Loading sub module "fb"
[ 1017.741] (II) LoadModule: "fb"
[ 1017.742] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 1017.743] (II) Module fb: vendor="X.Org Foundation"
[ 1017.743] compiled for 1.16.1, module version = 1.0.0
[ 1017.743] ABI class: X.Org ANSI C Emulation, version 0.4
[ 1017.743] (==) Depth 24 pixmap format is 32 bpp
[ 1017.745] (II) FBTURBO(0): using backing store heuristics
[ 1017.761] (II) FBTURBO(0): enabled G2D acceleration
[ 1017.762] (==) FBTURBO(0): Backing store enabled
[ 1017.763] (==) FBTURBO(0): DPMS enabled
[ 1017.763] (II) FBTURBO(0): using sunxi disp layers for X video extension
[ 1017.763] (II) FBTURBO(0): using hardware cursor
[ 1017.789] (II) Loading sub module "dri2"
[ 1017.789] (II) LoadModule: "dri2"
[ 1017.789] (II) Module "dri2" already built-in
[ 1017.886] (II) FBTURBO(0): tear-free zero-copy double buffering needs more video memory
[ 1017.886] (II) FBTURBO(0): please set fb0_framebuffer_num >= 3 in the fex file
[ 1017.886] (II) FBTURBO(0): and sunxi_fb_mem_reserve >= 11 in the kernel cmdline
[ 1017.886] (II) FBTURBO(0): enabled display controller hardware overlays for DRI2
[ 1017.886] (II) FBTURBO(0): Wait on SwapBuffers? enabled
[ 1017.886] (II) FBTURBO(0): [DRI2] Setup complete
[ 1017.886] (II) FBTURBO(0): [DRI2] DRI driver: lima
[ 1017.886] (II) FBTURBO(0): [DRI2] VDPAU driver: sunxi
[ 1017.886] (II) FBTURBO(0): using DRI2 integration for Mali GPU (UMP buffers)
[ 1017.886] (II) FBTURBO(0): Mali binary drivers can only accelerate EGL/GLES
[ 1017.886] (II) FBTURBO(0): so AIGLX/GLX is expected to fail or fallback to software
[ 1017.886] (==) RandR enabled
[ 1018.148] (II) config/udev: Adding input device axp20-supplyer (/dev/input/event0)
[ 1018.148] (**) axp20-supplyer: Applying InputClass "evdev keyboard catchall"
[ 1018.148] (II) LoadModule: "evdev"

')

$this->bbcode_second_pass_code('', '
root@alarm ~ # less /etc/X11/xorg.conf.d/99-fbturbo.conf

# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
#
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.

Section "Device"
Identifier "Allwinner A10/A13 FBDEV"
Driver "fbturbo"
Option "fbdev" "/dev/fb0"

Option "SwapbuffersWait" "true"
EndSection
/etc/X11/xorg.conf.d/99-fbturbo.conf (END)

')

I tried alarm pacman packages for kernel modules (drivers) & user space libs (odriod-libgl) + xf86-turbofb & libdri2

I tried to compile recent ones according viewtopic.php?f=33&t=5979

I tried to compile kernel from PKGBUILDs (sun4i) & all modules, I tried this compiled modudles with pacman's userspace libraries & with manually compiled

I tried compile recent kernel drivers (mali.ko) from mali developers jule release




As I see according logs seems it works, first I have software rendering for GL (it's ok)

But all gles2 mesa demos & others don't work

Behaviour depends on soft combination, now when I attempt run es2 app it says:
(PKGBUILDs compiles kernel + pacman native packages odriod-libgl, xf86-turbofb, libdri2 & xorg fbdev)

your kernel module version mismatch userspace libs,

When I use compiled module from mali developers (jule), mismatch dissapears, but egl error still here
:

(althought xorg log says module is loaded & it uses dri interface to accel gles2)

$this->bbcode_second_pass_quote('', 'r')oot@alarm ~ # es2tri
Error: eglInitialize() failed
root@alarm ~ #



I try enable debug verbosity, but nothing happens:

$this->bbcode_second_pass_code('', '
root@alarm ~ # EGL_DEBUG_LEVEL=debug es2tri
Error: eglInitialize() failed
root@alarm ~ #
')


Really, already haven't any idea how to bring it up


Thanks in advance
Pavel
 
Posts: 7
Joined: Mon Oct 20, 2014 2:38 pm

Re: pcDuinoV2 Mali - GLES2 hwaccell problem

Postby WarheadsSE » Mon Oct 27, 2014 1:36 pm

I have never used the Mali blobs with the fbturbo driver. I am using armsoc-odroid w/ odroid-libgl
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: pcDuinoV2 Mali - GLES2 hwaccell problem

Postby Pavel » Mon Oct 27, 2014 6:11 pm

I installed xf86-video-armsoc , odroid-libgl & latest PKGBUILDs sun4xi kerenel with it's modules

$this->bbcode_second_pass_code('', ' # uname -a
Linux alarm 3.4.90-ARCH #8 PREEMPT Sun Oct 26 20:35:01 UTC 2014 armv7l GNU/Linux
root has logged on 2 from ')

I have read your comment viewtopic.php?f=47&t=7469&start=10#p41944

$this->bbcode_second_pass_code('', 'root@alarm cat /etc/X11/xorg.conf.d
Section "Device"
Identifier "Mali A10 FBDEV"
Driver "armsoc"
Option "fbdev" "/dev/fb0"

Option "Fimg2DExa" "false"
Option "DRI2" "true"
Option "SWcursorLCD" "false"
Option "DRI2_PAGE_FLIP" "false"
Option "DRI2_WAIT_VSYNC" "true"
EndSection
')

$this->bbcode_second_pass_code('', 'X.Org X Server 1.16.1
Release Date: 2014-09-21
[ 849.987] X Protocol Version 11, Revision 0
[ 849.987] Build Operating System: Linux 3.4.76-1-ARCH armv7l
[ 849.988] Current Operating System: Linux alarm 3.4.90-ARCH #8 PREEMPT Sun Oct 26 20:35:01 UTC 2014 armv7l
[ 849.988] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait loglevel=8 panic=10 rootwait ethaddr=00:CE:
39:B7:74:99
[ 849.989] Build Date: 23 September 2014 10:08:38AM
[ 849.989]
[ 849.989] Current version of pixman: 0.32.6
[ 849.989] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 849.989] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 849.991] (==) Log file: "/var/log/Xorg.1.log", Time: Mon Oct 27 17:35:23 2014
[ 849.992] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 849.992] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 849.993] (==) No Layout section. Using the first Screen section.
[ 849.993] (==) No screen section available. Using defaults.
[ 849.993] (**) |-->Screen "Default Screen Section" (0)
[ 849.993] (**) | |-->Monitor "<default monitor>"
[ 849.994] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 849.994] (**) | |-->Device "Mali A10 FBDEV"
[ 849.994] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 849.994] (==) Automatically adding devices
[ 849.994] (==) Automatically enabling devices
[ 849.994] (==) Automatically adding GPU devices
[ 849.994] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 849.994] Entry deleted from font path.
[ 849.994] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 849.994] Entry deleted from font path.
[ 849.994] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 849.994] Entry deleted from font path.
[ 849.994] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 849.994] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/
[ 849.995] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 849.995] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 849.995] (II) Loader magic: 0x1cdef0
[ 849.995] (II) Module ABI versions:
[ 849.995] X.Org ANSI C Emulation: 0.4
[ 849.995] X.Org Video Driver: 18.0
[ 849.995] X.Org XInput driver : 21.0
[ 849.995] X.Org Server Extension : 8.0
[ 850.007] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[ 850.008] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 850.011] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[ 850.012] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 850.015] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 9 paused 0
[ 850.015] (II) no primary bus or device found
[ 850.015] falling back to /sys/devices/platform/mali_drm.0/drm/card0
[ 850.015] (II) LoadModule: "glx"
[ 850.017] (WW) Warning, couldn't open module glx
[ 850.017] (II) UnloadModule: "glx"
[ 850.017] (II) Unloading glx
[ 850.017] (EE) Failed to load module "glx" (module does not exist, 0)
[ 850.017] (II) LoadModule: "armsoc"
[ 850.018] (II) Loading /usr/lib/xorg/modules/drivers/armsoc_drv.so
[ 850.018] (II) Module armsoc: vendor="X.Org Foundation"
[ 850.018] compiled for 1.16.0, module version = 1.0.0
[ 850.018] Module class: X.Org Video Driver
[ 850.018] ABI class: X.Org Video Driver, version 18.0
[ 850.019] (II) ARMSOC: Driver for ARM Mali compatible chipsets
[ 850.019] (++) using VT number 2

[ 850.019] (--) controlling tty is VT number 2, auto-enabling KeepTty
[ 850.019] (WW) Falling back to old probe method for armsoc
[ 850.019] (II) No BusID or DriverName specified - opening /dev/dri/card0
[ 850.019] (EE) ERROR: Cannot set the DRM interface version.
[ 850.019] (EE) ERROR: Cannot open a connection with the DRM - Permission denied
[ 850.019] (EE) No devices detected.
[ 850.020] (EE)
Fatal server error:
[ 850.020] (EE) no screens found(EE)
[ 850.020] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 850.020] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 850.020] (EE)
[ 850.039] (EE) Server terminated with error (1). Closing log file.
')


Now it falls with
$this->bbcode_second_pass_quote('', '[') 850.019] (EE) ERROR: Cannot set the DRM interface version.
[ 850.019] (EE) ERROR: Cannot open a connection with the DRM - Permission denied



$this->bbcode_second_pass_code('', '
# ls -la /usr/lib/{lib*GL*,lib*ali.so}
lrwxrwxrwx 1 root root 11 Mar 14 2014 /usr/lib/libEGL.so -> libEGL.so.1*
lrwxrwxrwx 1 root root 13 Mar 14 2014 /usr/lib/libEGL.so.1 -> libEGL.so.1.4*
lrwxrwxrwx 1 root root 10 Mar 14 2014 /usr/lib/libEGL.so.1.4 -> libMali.so*
lrwxrwxrwx 1 root root 17 Mar 14 2014 /usr/lib/libGLESv1_CM.so -> libGLESv1_CM.so.1*
lrwxrwxrwx 1 root root 19 Mar 14 2014 /usr/lib/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1*
lrwxrwxrwx 1 root root 10 Mar 14 2014 /usr/lib/libGLESv1_CM.so.1.1 -> libMali.so*
lrwxrwxrwx 1 root root 14 Mar 14 2014 /usr/lib/libGLESv2.so -> libGLESv2.so.2*
lrwxrwxrwx 1 root root 16 Mar 14 2014 /usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.0*
lrwxrwxrwx 1 root root 10 Mar 14 2014 /usr/lib/libGLESv2.so.2.0 -> libMali.so*
-rwxr-xr-x 1 root root 772684 May 24 03:31 /usr/lib/libMali.so*
')


$this->bbcode_second_pass_code('', '

# lsmod
Module Size Used by
rtlwifi 66523 0
rtl8192c_common 49837 0
mac80211 185574 2 rtlwifi,rtl8192c_common
cfg80211 151159 2 mac80211,rtlwifi
mali_drm 2220 2
drm 157242 3 mali_drm
mali 89464 0
fbcon 33833 70
bitblit 3678 1 fbcon
softcursor 869 1 bitblit
font 7045 1 fbcon
disp_ump 735 0
ump 43932 2 mali,disp_ump
8192cu 435268 0

')


$this->bbcode_second_pass_code('', '
Oct 27 17:19:29 alarm systemd[1]: Started dhcpcd on all interfaces.
-- Logs begin at Tue 2014-10-21 18:57:07 UTC, end at Mon 2014-10-27 17:38:12 UTC. --
Oct 27 17:38:12 alarm systemd-timesyncd[102]: interval/delta/delay/jitter/drift 1024s/+0.004s/0.071s/0.001s/+3ppm (ignored)
Oct 27 17:36:16 alarm systemd[1]: Started Cleanup of Temporary Directories.
Oct 27 17:36:16 alarm systemd[1]: Starting Cleanup of Temporary Directories...
Oct 27 17:35:02 alarm login[1050]: ROOT LOGIN ON tty2
Oct 27 17:35:02 alarm systemd[1]: Started Session c2 of user root.
Oct 27 17:35:02 alarm systemd-logind[109]: New session c2 of user root.
Oct 27 17:35:02 alarm systemd[1]: Starting Session c2 of user root.
Oct 27 17:35:02 alarm login[1050]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Oct 27 17:34:57 alarm systemd[1]: Started Getty on tty2.
Oct 27 17:34:57 alarm systemd[1]: Starting Getty on tty2...
Oct 27 17:31:06 alarm sudo[778]: pam_unix(sudo:session): session opened for user nobody by (uid=0)
Oct 27 17:31:06 alarm sudo[778]: root : TTY=unknown ; PWD=/etc/X11/xorg.conf.d ; USER=nobody ; COMMAND=/usr/bin/chromium
Oct 27 17:30:05 alarm sudo[682]: pam_unix(sudo:session): session closed for user nobody
Oct 27 17:30:05 alarm sudo[682]: pam_unix(sudo:session): session opened for user nobody by (uid=0)
Oct 27 17:30:05 alarm sudo[682]: root : TTY=pts/2 ; PWD=/etc/X11/xorg.conf.d ; USER=nobody ; COMMAND=/usr/bin/chromium
Oct 27 17:29:40 alarm systemd-timesyncd[102]: interval/delta/delay/jitter/drift 512s/+0.000s/0.073s/0.001s/+3ppm
Oct 27 17:28:16 alarm sudo[607]: pam_unix(sudo:session): session closed for user nobody
Oct 27 17:28:15 alarm sudo[607]: pam_unix(sudo:session): session opened for user nobody by (uid=0)
Oct 27 17:28:15 alarm sudo[607]: root : TTY=unknown ; PWD=/etc/X11/xorg.conf.d ; USER=nobody ; COMMAND=/usr/bin/chromium
Oct 27 17:27:24 alarm sudo[594]: pam_unix(sudo:session): session closed for user nobody
Oct 27 17:27:21 alarm sudo[594]: pam_unix(sudo:session): session opened for user nobody by (uid=0)
Oct 27 17:27:21 alarm sudo[594]: root : TTY=unknown ; PWD=/etc/X11/xorg.conf.d ; USER=nobody ; COMMAND=/usr/bin/chromium
Oct 27 17:25:23 alarm systemd-timesyncd[102]: interval/delta/delay/jitter/drift 256s/+0.001s/0.070s/0.001s/+2ppm
Oct 27 17:23:15 alarm systemd-timesyncd[102]: interval/delta/delay/jitter/drift 128s/+0.000s/0.070s/0.000s/+1ppm
Oct 27 17:22:11 alarm systemd-timesyncd[102]: interval/delta/delay/jitter/drift 64s/+0.000s/0.070s/0.000s/+0ppm
Oct 27 17:21:44 alarm dhcpcd[111]: eth0: no IPv6 Routers available
Oct 27 17:21:39 alarm systemd[1]: Time has been changed
Oct 27 17:21:39 alarm systemd[190]: Time has been changed
Oct 27 17:21:39 alarm systemd-timesyncd[102]: interval/delta/delay/jitter/drift 32s/+116.268s/0.070s/0.000s/+0ppm
Oct 27 17:19:43 alarm systemd-timesyncd[102]: Using NTP server 216.239.36.15:123 (time3.google.com).
Oct 27 17:19:42 alarm systemd-timesyncd[102]: Network configuration changed, trying to establish connection.
Oct 27 17:19:42 alarm dhcpcd[111]: eth0: adding default route via 192.168.0.1
Oct 27 17:19:42 alarm dhcpcd[111]: eth0: adding route to 192.168.0.0/24
Oct 27 17:19:41 alarm dhcpcd[111]: eth0: leased 192.168.0.98 for 86400 seconds
Oct 27 17:19:40 alarm login[135]: ROOT LOGIN ON tty1
Oct 27 17:19:40 alarm systemd[1]: Started User Manager for UID 0.
lines 1-37
Oct 27 17:19:40 alarm systemd[1]: Started User Manager for UID 0.
Oct 27 17:19:40 alarm systemd[190]: Startup finished in 75ms.
Oct 27 17:19:40 alarm systemd[190]: Reached target Default.
Oct 27 17:19:40 alarm systemd[190]: Starting Default.
Oct 27 17:19:40 alarm systemd[190]: Reached target Basic System.
Oct 27 17:19:40 alarm systemd[190]: Starting Basic System.
Oct 27 17:19:40 alarm systemd[190]: Reached target Sockets.
Oct 27 17:19:40 alarm systemd[190]: Starting Sockets.
Oct 27 17:19:40 alarm systemd[190]: Reached target Timers.
Oct 27 17:19:40 alarm systemd[190]: Starting Timers.
Oct 27 17:19:40 alarm systemd[190]: Reached target Paths.
Oct 27 17:19:40 alarm systemd[190]: Starting Paths.
Oct 27 17:19:40 alarm systemd[190]: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Oct 27 17:19:40 alarm systemd[1]: Starting User Manager for UID 0...
Oct 27 17:19:40 alarm systemd[1]: Started Session c1 of user root.
Oct 27 17:19:40 alarm systemd[1]: Starting Session c1 of user root.
Oct 27 17:19:40 alarm systemd-logind[109]: New session c1 of user root.
Oct 27 17:19:40 alarm systemd[1]: Created slice user-0.slice.
Oct 27 17:19:40 alarm systemd[1]: Starting user-0.slice.
Oct 27 17:19:40 alarm login[135]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Oct 27 17:19:32 alarm systemd-timesyncd[102]: Network configuration changed, trying to establish connection.
Oct 27 17:19:32 alarm systemd[1]: Startup finished in 5.064s (kernel) + 9.795s (userspace) = 14.860s.
Oct 27 17:19:32 alarm systemd[1]: Reached target Graphical Interface.
Oct 27 17:19:32 alarm systemd[1]: Starting Graphical Interface.
Oct 27 17:19:32 alarm systemd[1]: Reached target Multi-User System.
Oct 27 17:19:32 alarm systemd[1]: Starting Multi-User System.
Oct 27 17:19:32 alarm systemd[1]: Started The PHP FastCGI Process Manager.
Oct 27 17:19:31 alarm systemd-timesyncd[102]: Network configuration changed, trying to establish connection.
Oct 27 17:19:36 alarm dhcpcd[111]: eth0: soliciting an IPv6 router
Oct 27 17:19:36 alarm dhcpcd[111]: wlan0: soliciting an IPv6 router
Oct 27 17:19:36 alarm dhcpcd[111]: wlan0: soliciting a DHCP lease
Oct 27 17:19:33 alarm dhcpcd[111]: eth0: rebinding lease of 192.168.0.98
Oct 27 17:19:32 alarm dhcpcd[111]: wlan0: IAID 03:01:17:a3
Oct 27 17:19:32 alarm dhcpcd[111]: wlan0: carrier acquired
Oct 27 17:19:32 alarm dhcpcd[111]: eth0: IAID 02:c1:e1:db
Oct 27 17:19:32 alarm dhcpcd[111]: DUID 00:01:00:01:1b:d6:e7:80:02:c9:02:c1:e1:db
Oct 27 17:19:32 alarm dhcpcd[111]: eth0: carrier acquired
Oct 27 17:19:32 alarm dhcpcd[111]: wlan0: waiting for carrier
Oct 27 17:19:31 alarm haveged[113]: haveged: fills: 0, generated: 0
Oct 27 17:19:31 alarm haveged[113]: haveged: tot tests(BA8): A:1/1 B:1/1 continuous tests(B): last entropy estimate 7.99791
Oct 27 17:19:31 alarm haveged[113]: haveged: cpu: (); data: 16K (D); inst: 16K (D); idx: 8/40; sz: 15180/73928
Oct 27 17:19:31 alarm haveged[113]: haveged: ver: 1.9.1; arch: generic; vend: ; build: (gcc 4.8.2 CTV); collect: 128K
Oct 27 17:19:31 alarm dhcpcd[111]: eth0: waiting for carrier
Oct 27 17:19:31 alarm systemd-timesyncd[102]: Network configuration changed, trying to establish connection.
Oct 27 17:19:31 alarm systemd[1]: Started A high performance web server and a reverse proxy server.
Oct 27 17:19:31 alarm sshd[150]: Server listening on :: port 22.
Oct 27 17:19:31 alarm sshd[150]: Server listening on 0.0.0.0 port 22.
Oct 27 17:19:30 alarm systemd[1]: Started Network Name Resolution.
Oct 27 17:19:30 alarm systemd[1]: Starting The PHP FastCGI Process Manager...
Oct 27 17:19:30 alarm systemd[1]: Started OpenSSH Daemon.
Oct 27 17:19:30 alarm systemd[1]: Starting OpenSSH Daemon...
Oct 27 17:19:30 alarm systemd-resolved[133]: Using system hostname 'alarm'.
Oct 27 17:19:30 alarm systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 27 17:19:30 alarm systemd[1]: Reached target Network.
Oct 27 17:19:30 alarm systemd[1]: Starting Network.
Oct 27 17:19:30 alarm systemd[1]: Reached target Login Prompts.
Oct 27 17:19:30 alarm systemd[1]: Starting Login Prompts.
Oct 27 17:19:30 alarm systemd[1]: Started Serial Getty on ttyS0.
Oct 27 17:19:30 alarm systemd[1]: Starting Serial Getty on ttyS0...
Oct 27 17:19:30 alarm systemd[1]: Started Getty on tty1.
Oct 27 17:19:30 alarm systemd-networkd[116]: eth0 : failed
Oct 27 17:19:30 alarm systemd-networkd[116]: eth0 : could not acquire DHCPv4 lease
Oct 27 17:19:30 alarm systemd-networkd[116]: eth0 : DHCP error: client failed: Invalid argument
Oct 27 17:19:30 alarm systemd-networkd[116]: eth0 : gained carrier
Oct 27 17:19:30 alarm systemd[1]: Starting Getty on tty1...
Oct 27 17:19:30 alarm systemd[1]: Starting Network Name Resolution...
Oct 27 17:19:30 alarm systemd[1]: Started Login Service.
Oct 27 17:19:30 alarm systemd-logind[109]: New seat seat0.
Oct 27 17:19:30 alarm systemd[1]: Started Network Service.
Oct 27 17:19:30 alarm systemd[1]: Started reachable /dev/ump and /dev/mali.
Oct 27 17:19:30 alarm systemd[1]: Started Permit User Sessions.
Oct 27 17:19:30 alarm systemd-networkd[116]: lo : gained carrier
Oct 27 17:19:29 alarm systemd[1]: Started Entropy Harvesting Daemon.
Oct 27 17:19:29 alarm systemd[1]: Started Apply cpupower configuration.
Oct 27 17:19:29 alarm systemd[1]: Started dhcpcd on all interfaces.
Oct 27 17:19:29 alarm dbus[110]: [system] Successfully activated service 'org.freedesktop.systemd1'
Oct 27 17:19:29 alarm systemd[1]: Starting Permit User Sessions...
Oct 27 17:19:29 alarm systemd[1]: Starting Network Service...
Oct 27 17:19:27 alarm systemd[1]: Reached target System Initialization.
Oct 27 17:19:27 alarm systemd[1]: Starting System Initialization.
Oct 27 17:19:27 alarm systemd[1]: Started Update UTMP about System Boot/Shutdown.
Oct 27 17:19:26 alarm systemd[1]: Reached target System Time Synchronized.
Oct 27 17:19:26 alarm systemd[1]: Starting System Time Synchronized.
Oct 27 17:19:26 alarm systemd[1]: Started Network Time Synchronization.
Oct 27 17:19:26 alarm systemd[1]: Time has been changed
Jan 01 21:57:14 alarm systemd-timesyncd[102]: System clock time unset or jumped backwards, restoring from recorded timestamp: M
Jan 01 21:57:14 alarm systemd[1]: Starting Update UTMP about System Boot/Shutdown...
Jan 01 21:57:14 alarm systemd[1]: Starting Network Time Synchronization...
Jan 01 21:57:14 alarm systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
Oct 27 17:19:27 alarm haveged[107]: haveged starting up
Oct 27 17:19:27 alarm dhcpcd[105]: forked to background, child pid 111
Oct 27 17:19:27 alarm dhcpcd[105]: wlan0: adding address fe80::5ccd:3464:74d7:ae4c
Oct 27 17:19:27 alarm dhcpcd[105]: eth0: adding address fe80::d489:3df4:2a53:6ed4
Oct 27 17:19:27 alarm dhcpcd[105]: version 6.5.1 starting
Oct 27 17:19:27 alarm systemd-journal[73]: Time spent on flushing to /var is 697.119ms for 48 entries.
-- Reboot --
')






I suspected DDX xorg driver previously, so I tried to run pure drm/egl application on VT without any intermediate layers, it fails, although it works on my x86_64


here is error message

$this->bbcode_second_pass_code('', '
trying to load module mali...
descriptor is 3
success.
descriptor is 3
drmModeGetResources failed: Invalid argument
failed to initialize DRM
root@alarm /sources/c++/drm #
')

In source ( https://github.com/dvdhrm/docs/blob/mas ... /modeset.c )

it's just open /dev/dri/card0 node & attempts to call: (descriptor is ok from open)

$this->bbcode_second_pass_code('', '
/* retrieve resources */
res = drmModeGetResources(fd);
')


As far as I googled this error happens only when something wrong with KMS , maybe I have forgotten some kernel subsystem?


But I tried to check this & all make nconfig has according drm & kms seems is ok (conf default from sun4xi rep + some debug enabled)

$this->bbcode_second_pass_code('', '

.config - Linux/arm 3.4.90 Kernel Configuration
┌── Graphics support ───────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ │
│ <M> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> │
│ < > Ion Memory Manager ---> │
│ <M> ARM Mali GPU modules │
│ {M} Mali-300/400/450 support │
│ [*] Enable debug in Mali driver │
│ [*] Enable Mali GPU utilization tracking │
│ -M- UMP support │
│ [*] Enable extra debug in UMP │
│ < > Lowlevel video output switch controls │
│ {*} Support for frame buffer devices ---> │
│ < > Consumer Electronics Control (CEC) │
│ < > ARM PrimeCell PL110 support │
│ < > Userspace VESA VGA graphics support │
│ < > Epson S1D13XXX framebuffer support │
│ < > SMSC UFX6000/7000 USB Framebuffer support │
│ <*> Displaylink USB Framebuffer support │
│ < > Virtual Frame Buffer support (ONLY FOR TESTING!) │
│ < > E-Ink Metronome/8track controller support │
│ < > E-Ink Broadsheet/Epson S1D13521 controller support │
│ [ ] Exynos Video driver support ---> │
│ -*- Backlight & LCD device support ---> │
│ Console display driver support ---> │
│ [*] Bootup logo --->

--------------------------------------------------------------------------------------------
.config - Linux/arm 3.4.90 Kernel Configuration
┌── Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ────────────────────────────────────────────────────────┐
│ │
│ --- Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) │
│ <M> Mali DRM supprt │
│ < > DisplayLink │


')



Here my dri nodes:

$this->bbcode_second_pass_code('', '
root@alarm /sources/linux # ls -la /dev/dri
total 0
drwxr-xr-x 2 root root 80 Jan 1 2010 ./
drwxr-xr-x 16 root root 3580 Oct 27 17:35 ../
crw-rw---- 1 root video 226, 0 Jan 1 2010 card0
crw-rw---- 1 root video 226, 1 Jan 1 2010 card1
root@alarm /sources/linux #

root@alarm /sources/linux # ls -la /dev/{mali*,ump*,disp*}
crw------- 1 root root 252, 0 Jan 1 2010 /dev/disp
crw-rw-rw- 1 root root 243, 0 Jan 1 2010 /dev/mali
crw-rw-rw- 1 root root 244, 0 Jan 1 2010 /dev/ump

')


I tried to set them 777 permissions


continuing investigate problems, if you have some remark or direction to check please let me know
Pavel
 
Posts: 7
Joined: Mon Oct 20, 2014 2:38 pm

Re: pcDuinoV2 Mali - GLES2 hwaccell problem

Postby Pavel » Mon Oct 27, 2014 6:33 pm

I skipped in my Xorg log problem with GLX module after armsoc installation,

it's coz it belongs to mesa-libgl & it conflicts with odroid-libgl, so I installed mesa-libgl to provide libGL for
software rendering purposes & glx module for X, then I copied & replaced mesa's libs with odroids ones

& update my ldconfig

here is new Xorg log, but issues for dri node still here

$this->bbcode_second_pass_code('', '
[ 4119.923]
X.Org X Server 1.16.1
Release Date: 2014-09-21
[ 4119.924] X Protocol Version 11, Revision 0
[ 4119.924] Build Operating System: Linux 3.4.76-1-ARCH armv7l
[ 4119.924] Current Operating System: Linux alarm 3.4.90-ARCH #8 PREEMPT Sun Oct 26 20:35:01 UTC 2014 armv7l
[ 4119.924] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait loglevel=8 panic=10 rootwait ethaddr=00:CE:39:B7:74:99
[ 4119.925] Build Date: 23 September 2014 10:08:38AM
[ 4119.925]
[ 4119.925] Current version of pixman: 0.32.6
[ 4119.926] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 4119.926] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 4119.927] (==) Log file: "/var/log/Xorg.1.log", Time: Mon Oct 27 18:29:53 2014
[ 4119.928] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 4119.928] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 4119.929] (==) No Layout section. Using the first Screen section.
[ 4119.929] (==) No screen section available. Using defaults.
[ 4119.929] (**) |-->Screen "Default Screen Section" (0)
[ 4119.929] (**) | |-->Monitor "<default monitor>"
[ 4119.930] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 4119.930] (**) | |-->Device "Mali A10 FBDEV"
[ 4119.930] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 4119.930] (==) Automatically adding devices
[ 4119.930] (==) Automatically enabling devices
[ 4119.930] (==) Automatically adding GPU devices
[ 4119.930] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 4119.930] Entry deleted from font path.
[ 4119.931] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 4119.931] Entry deleted from font path.
[ 4119.931] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[ 4119.931] Entry deleted from font path.
[ 4119.931] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[ 4119.931] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[ 4119.931] Entry deleted from font path.
[ 4119.931] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[ 4119.931] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/
[ 4119.931] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 4119.931] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 4119.931] (II) Loader magic: 0x1cdef0
[ 4119.931] (II) Module ABI versions:
[ 4119.931] X.Org ANSI C Emulation: 0.4
[ 4119.931] X.Org Video Driver: 18.0
[ 4119.931] X.Org XInput driver : 21.0
[ 4119.931] X.Org Server Extension : 8.0
[ 4119.942] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c3
[ 4119.944] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 4119.946] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[ 4119.947] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 4119.949] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 9 paused 0
[ 4119.950] (II) no primary bus or device found
[ 4119.950] falling back to /sys/devices/platform/mali_drm.0/drm/card0
[ 4119.950] (II) LoadModule: "glx"
[ 4119.951] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 4119.970] (II) Module glx: vendor="X.Org Foundation"
[ 4119.970] compiled for 1.16.1, module version = 1.0.0
[ 4119.970] ABI class: X.Org Server Extension, version 8.0
[ 4119.970] (==) AIGLX enabled
[ 4119.971] (II) LoadModule: "armsoc"
[ 4119.971] (II) Loading /usr/lib/xorg/modules/drivers/armsoc_drv.so
[ 4119.972] (II) Module armsoc: vendor="X.Org Foundation"
[ 4119.972] compiled for 1.16.0, module version = 1.0.0
[ 4119.972] Module class: X.Org Video Driver
[ 4119.972] ABI class: X.Org Video Driver, version 18.0
[ 4119.972] (II) ARMSOC: Driver for ARM Mali compatible chipsets
[ 4119.972] (++) using VT number 3

[ 4119.972] (--) controlling tty is VT number 3, auto-enabling KeepTty
[ 4119.973] (WW) Falling back to old probe method for armsoc
[ 4119.973] (II) No BusID or DriverName specified - opening /dev/dri/card0
[ 4119.973] (EE) ERROR: Cannot set the DRM interface version.
[ 4119.973] (EE) ERROR: Cannot open a connection with the DRM - Permission denied
[ 4119.973] (EE) No devices detected.
[ 4119.973] (EE)
Fatal server error:
[ 4119.973] (EE) no screens found(EE)
[ 4119.973] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 4119.974] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 4119.974] (EE)
[ 4119.991] (EE) Server terminated with error (1). Closing log file.

')



$this->bbcode_second_pass_code('', '

root@alarm /usr/lib # ls -la /usr/lib/{lib*GL*,lib*ali.so}
lrwxrwxrwx 1 root root 11 Oct 27 18:27 /usr/lib/libEGL.so -> libEGL.so.1*
lrwxrwxrwx 1 root root 13 Oct 27 18:27 /usr/lib/libEGL.so.1 -> libEGL.so.1.4*
lrwxrwxrwx 1 root root 13 Oct 27 18:36 /usr/lib/libEGL.so.1.0.0 -> libEGL.so.1.4*
lrwxrwxrwx 1 root root 10 Oct 27 18:27 /usr/lib/libEGL.so.1.4 -> libMali.so*
lrwxrwxrwx 1 root root 17 Oct 27 18:27 /usr/lib/libGLESv1_CM.so -> libGLESv1_CM.so.1*
lrwxrwxrwx 1 root root 19 Oct 27 18:27 /usr/lib/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1*
lrwxrwxrwx 1 root root 10 Oct 27 18:27 /usr/lib/libGLESv1_CM.so.1.1 -> libMali.so*
lrwxrwxrwx 1 root root 19 Oct 27 18:29 /usr/lib/libGLESv1_CM.so.1.1.0 -> libGLESv1_CM.so.1.1*
lrwxrwxrwx 1 root root 14 Oct 27 18:27 /usr/lib/libGLESv2.so -> libGLESv2.so.2*
lrwxrwxrwx 1 root root 16 Oct 27 18:27 /usr/lib/libGLESv2.so.2 -> libGLESv2.so.2.0*
lrwxrwxrwx 1 root root 10 Oct 27 18:27 /usr/lib/libGLESv2.so.2.0 -> libMali.so*
lrwxrwxrwx 1 root root 16 Oct 27 18:28 /usr/lib/libGLESv2.so.2.0.0 -> libGLESv2.so.2.0*
lrwxrwxrwx 1 root root 14 Oct 25 09:22 /usr/lib/libGL.so -> libGL.so.1.2.0*
lrwxrwxrwx 1 root root 14 Oct 25 09:22 /usr/lib/libGL.so.1 -> libGL.so.1.2.0*
lrwxrwxrwx 1 root root 28 Oct 25 09:22 /usr/lib/libGL.so.1.2.0 -> /usr/lib/mesa/libGL.so.1.2.0*
-rwxr-xr-x 1 root root 772684 Oct 27 18:27 /usr/lib/libMali.so*


')
Pavel
 
Posts: 7
Joined: Mon Oct 20, 2014 2:38 pm

Re: pcDuinoV2 Mali - GLES2 hwaccell problem

Postby Pavel » Mon Oct 27, 2014 8:50 pm

I got idea to run my allwinner supplied kernel Ubuntu Linaro with all it's modules. & check plain drm

when I ran it the error was the same - invalid armugent for drmModeGetResources, so probably it's not the error case

just of curiousity I tried to start Xorg server with arch rootfs & all user space libraries

error the same for armsoc - in xorg it's

$this->bbcode_second_pass_code('', '[ 4119.973] (EE) ERROR: Cannot set the DRM interface version.
[ 4119.973] (EE) ERROR: Cannot open a connection with the DRM - Permission denied')

Then I tried to use my allwiner libs for this (from nand drive) they supply own X11 video driver mali_drv.so + set of GL libs, sadly I wasn't able to run it to debug what's exactly not work on my side (arch) as Xorg-server version mismatch modules

I believe I miss some small detail & it doesn't work, although it should, as chip A10 & pcDuinoV2 work well on native linux Linaro, I ran gles2 test.

Probably (due on same behavior) my arch kernel & modules set are ok, & issue somewhere in the userspace : GL libs / xorg modules, dri / drm libs / permissions

But I tried lot of things & still couldn't bring it work

Also I'm wondering why it doesn't work on plain DRM application in pure VT? if I'm correct it just should have drm, drm driver (mali) + libdrm & userspace libGL/EGL/GLES2 libs in DRI interface to use dev dri node in /dev/dri/card0

If we could assume kernel part is ok, DDX(X11) isn't needed (to decrease debug area) & only libdrm & GL (odroid-libgl) are needed, (also gbm, but it isn't reached due on drm error), so why it doesn't work even on Linaro kernel with linaro enabled modules & nand's GL libs error the same,

Some oddly case, never had such behaviour before
Pavel
 
Posts: 7
Joined: Mon Oct 20, 2014 2:38 pm

Re: pcDuinoV2 Mali - GLES2 hwaccell problem

Postby Pavel » Sat Nov 08, 2014 8:58 pm

had anybody success to up hw acceleration on PcDuino v2 (or another ver) with latest kernel & packages?
Pavel
 
Posts: 7
Joined: Mon Oct 20, 2014 2:38 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 8 guests