please choosego to mobile | Continue to access the PC version
Author: gaara

Mali GPU driver

[Copy link]

2

threads

34

posts

225

credits

Intermediate member

Rank: 3Rank: 3

credits
225
Published in 2015-10-18 22:09:19 | Show all floors
dburner replied at 2015-10-11 18:29
I'm having the same problem. Did you managed to fix it?

Has anyone made a working driver for Linux yet?  I'd really like to get my Orange pi PC up to snuff for x.265 on Linux.  Do you use CederX?

3

threads

14

posts

573

credits

Senior member

Rank: 4

credits
573
Published in 2015-10-18 23:09:13 | Show all floors
Sorry for my bad english.
I think that problem is that Mali is a development of the ARM company and the companies that used Mali products don't have rigths to publish nothing of the code necessary.

18

threads

200

posts

881

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
881
Published in 2015-10-19 01:18:37 | Show all floors
Edited by magicse at 2015-10-18 20:38
darqoq replied at 2015-10-10 21:51
@magicse could you create project with your changes on github, please.

Now I get next crash error
from running es2_info
[xcb] Unknown request in queue while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.

After searching
I found that it may be next problems
1. application is single thread and uses xlib and doesn't call XInitThread, mali DDK uses xcb which supports multi-thread

2. application is multi-thread and uses xlib and calls XInitThread, mali DDK uses xcb

so that application can access XServer through xlib while mali DDK can access XServer through xcb, and it is said (MixingCalls) that xlib & xcb can work together very well.

And here https://www.mail-archive.com/search?l=debian-bugs-dist@lists.debian.org&q=subject:%22Bug%23700013\%3A+libxcb1\%3A+libxcb+crashes+on+systems+with+Mali+graphics%22&o=newest&f=1
If someone can assist in finding a solution to these problems I would be very grateful
P.S.
Which version of mali libs give Steven (fbdev or X11) ?

Orange PI 2
www.orangepi.pp.ua

11

threads

286

posts

1924

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1924
Published in 2015-10-19 02:29:49 | Show all floors
magicse replied at 2015-10-18 19:08
Which application give segmentation fault?

glmark2-es2

11

threads

286

posts

1924

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1924
Published in 2015-10-19 02:36:16 | Show all floors
when i run glmark2-es2 i get horse 3d model located in to framebuffer but then crash with segmentation error.

11

threads

286

posts

1924

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1924
Published in 2015-10-19 02:43:50 | Show all floors
Edited by melanrz at 2015-10-19 02:48
kingfish600 replied at 2015-10-18 22:09
Has anyone made a working driver for Linux yet?  I'd really like to get my Orange pi PC up to snuf ...

Cedarx is open source,so lets do this
https://github.com/allwinner-zh/ ... master/sunxi-cedarx

2

threads

34

posts

225

credits

Intermediate member

Rank: 3Rank: 3

credits
225
Published in 2015-10-19 23:18:39 | Show all floors
melanrz replied at 2015-10-19 02:43
Cedarx is open source,so lets do this
https://github.com/allwinner-zh/ ... master/sunxi-cedarx
...

I will try but i'm a linux newbie.

18

threads

200

posts

881

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
881
Published in 2015-10-20 18:39:21 | Show all floors
Edited by magicse at 2015-10-20 12:58

to @zhao_steven
Dear Steven, me need your help.
After assembly, the driver and run the program es2_info I get the following error.

EGL_VERSION = 1.4 Linux-r4p0-00rel0
EGL_VENDOR = ARM
EGL_EXTENSIONS = EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_vg_parent_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync
EGL_CLIENT_APIS = OpenGL_ES OpenVG
GL_VERSION: OpenGL ES 2.0
GL_RENDERER: Mali-400 MP
GL_EXTENSIONS:
     GL_OES_texture_npot, GL_OES_compressed_ETC1_RGB8_texture,
     GL_OES_standard_derivatives, GL_OES_EGL_image, GL_OES_depth24,
     GL_ARM_rgba8, GL_ARM_mali_shader_binary, GL_OES_depth_texture,
     GL_OES_packed_depth_stencil, GL_EXT_texture_format_BGRA8888,
     GL_EXT_blend_minmax, GL_OES_EGL_image_external, GL_OES_EGL_sync
[xcb] Unknown request in queue while appending request
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.


Searching the internet I found that  error is associated with Issue: The Mali userspace blob (libMali.so) has issues with threading. It uses threading internally but doesn't call XInitThreads early, which leads to problems.
http://forum.odroid.com/viewtopic.php?f=52&t=2680

You need to contact the "MALI" developers to resolve this issue in libMali.so.
Orange PI 2
www.orangepi.pp.ua

11

threads

286

posts

1924

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
1924
Published in 2015-10-21 04:28:53 | Show all floors
magicse replied at 2015-10-20 18:39
to @zhao_steven
Dear Steven, me need your help.
After assembly, the driver and run the program es2_ ...

Same segmentation error when run glmark2-es2 ??

18

threads

200

posts

881

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
881
Published in 2015-10-21 05:29:08 | Show all floors
Edited by magicse at 2015-10-20 23:32

Yes I think glmark2-es2 and es2_info the same issue
Now I get first frame with horse and after that fault
Orange PI 2
www.orangepi.pp.ua
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list