mripard / sunxi-mali

GNU General Public License v2.0
100 stars 54 forks source link

ARMSOC(0): ERROR: Cannot allocate scanout buffer #63

Closed hexdump0815 closed 5 years ago

hexdump0815 commented 5 years ago

hello,

i have built and installed all according to the documentation, i.e.

with this setup i get the following when starting x:

[ 6019.669] (EE) _CREATE_GEM({height: 1024, width: 1280, bpp: 32 buf_type: 0x0}) failed. errno: 22 - Invalid argument [ 6019.669] (EE) ARMSOC(0): ERROR: Cannot allocate scanout buffer

on both systems, the bananapi and the orangepi - so something i seem to be doing wrong. any idea what the problem might be? i have sucessfully got mali running on an amlogic s905w soc using the meson mali driver, which seems to have a very similar setup - so a basic understanding of how the setup should be done should be there :)

a lot of thanks in advance and best wishes - hexdump

p.s.: i read through all the other issues around here which might be relevant and did not find anything else to try beyond what i have included already - the only thing which i'm not sure about is that hand picked commit from the NextThingCo repo, which does not exist anymore, but i guess that this is already in the patches here - right?

rubitwa commented 5 years ago

@hexdump0815 https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/0005-drm-gem-cma-Export-with-handle-allocator.patch https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/0006-drm-sun4i-Add-GEM-allocator.patch

hexdump0815 commented 5 years ago

@rubitwa - cool - thanks a lot!

hexdump0815 commented 5 years ago

the above patches fixed the problem ... sadly the performance on a bananpi is so low, especially the normal 2d performance due to the armsoc server, that it is not really worth it: on a bananapi m1 glmark2 gives a score of about 16 compared to 12 for pure software rendering (that with higher cpu usage though)