A13 Mali400 GPU failed to load "g2d_23" and "mali_drm"

636 views
Skip to first unread message

hunter hu

unread,
Mar 16, 2014, 6:30:23 PM3/16/14
to linux...@googlegroups.com
Hello,

I am trying to enable the Mali400 GPU on my tablet running Ubuntu-12.04, and followed the wiki page:  http://linux-sunxi.org/Binary_drivers.

I believe everything goes well regarding the installations, but Xorg.0.log shows still failed to load kernel modules:  "g2d_23" and "mali_drm"

The fbturbo module seems load OK:
[    20.064] (II) LoadModule: "fbturbo"
[    20.068] (II) Loading /usr/lib/xorg/modules/drivers/fbturbo_drv.so
[    20.100] (II) Module fbturbo: vendor="X.Org Foundation"
[    20.100]    compiled for 1.11.3, module version = 0.5.1
[    20.100]    Module class: X.Org Video Driver
[    20.100]    ABI class: X.Org Video Driver, version 11.0
[    20.100] (II) FBTURBO: driver for framebuffer: fbturbo
[    20.100] (++) using VT number 7

But what are not working with "g2d_23" and "mali_drm" are:
[    19.494] (II) FBTURBO(0): using backing store heuristics
[    19.501] (II) FBTURBO(0): can't load 'g2d_23' kernel module
[    19.523] (II) FBTURBO(0): No sunxi-g2d hardware detected (check /dev/disp and /dev/g2d)
[    19.523] (II) FBTURBO(0): G2D hardware acceleration can't be enabled
...(tons oftheInvalid argument lines)
[    19.536] (EE) FBTURBO(0): FBIOPUTCMAP: Invalid argument
[    19.536] (EE) FBTURBO(0): FBIOPUTCMAP: Invalid argument
[    19.536] (EE) FBTURBO(0): FBIOPUTCMAP: Invalid argument
[    19.536] (EE) FBTURBO(0): FBIOPUTCMAP: Invalid argument
[    19.536] (==) FBTURBO(0): DPMS enabled
[    19.536] (II) FBTURBO(0): using sunxi disp layers for X video extension
[    19.536] (II) FBTURBO(0): using hardware cursor
[    19.551] (II) FBTURBO(0): can't load 'mali_drm' kernel module
[    19.551] (II) Loading sub module "dri2"
[    19.551] (II) LoadModule: "dri2"
[    19.552] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[    19.552] (II) Module dri2: vendor="X.Org Foundation"
[    19.552]    compiled for 1.11.3, module version = 1.2.0
[    19.552]    ABI class: X.Org Server Extension, version 6.0
[    19.552] drmOpenDevice: node name is /dev/dri/card0
[    20.081] [drm] failed to load kernel module "mali_drm"
[    20.081] SunxiMaliDRI2_Init: drmOpen failed!
[    20.081] (II) FBTURBO(0): failed to enable DRI2 integration for Mali GPU

What are g2d_23 and mali_drm?  are the modules in the system upm and mali?

Any idea what are missing here?

Thanks in advance,
-Hunter


Luc Verhaegen

unread,
Mar 17, 2014, 9:02:28 AM3/17/14
to linux...@googlegroups.com
On Sun, Mar 16, 2014 at 03:30:23PM -0700, hunter hu wrote:
> Hello,
>
> I am trying to enable the Mali400 GPU on my tablet running Ubuntu-12.04,
> and followed the wiki page: http://linux-sunxi.org/Binary_drivers.
>
> I believe everything goes well regarding the installations, but Xorg.0.log
> shows still failed to load kernel modules: *"g2d_23" and "mali_drm"*
First off, you are muddling things up rather badly here. The mali is
only the GPU, only the 3d engine. There are display (disp), media
(cedar) and 2d acceleration (g2d) engines on this SoC as well.

Then, the A13 doesn't have a G2D engine. So it is only natural that this
doesn't work. Perhaps fbturbo should be a bit smarter about this and not
complain as loudly on the A13.

As for the failure related to mali_drm, try manually loading it and see
what the kernel complains about then.

Luc Verhaegen.
Reply all
Reply to author
Forward
0 new messages