mripard / sunxi-mali

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

r8p1 issue on H5 #43

Closed avafinger closed 6 years ago

avafinger commented 6 years ago

Hi Maxime, Can you see what is wrong with this: https://github.com/free-electrons/mali-blobs/issues/4 Sorry, I opened the issue there.

mripard commented 6 years ago

It doesn't work because no one ever submitted the patches to make it work.

Can you try the h3-h5 branch and report if it works?

avafinger commented 6 years ago

Do you mean for H5?

I get: ./build.sh -r r8p1 -b Unsupported release

avafinger commented 6 years ago

And if i try r6p2 (H5)

/arm/ubuntu/h5/mainline/sunxi-mali-h5/r6p2/src/devicedrv/mali/platform/sunxi/sunxi.c: In function ‘mali_create_mali450_mp4_resources’:
/arm/ubuntu/h5/mainline/sunxi-mali-h5/r6p2/src/devicedrv/mali/platform/sunxi/sunxi.c:106:29: error: macro "MALI_GPU_RESOURCES_MALI450_MP4_PMU" requires 12 arguments, but only 11 given
          irq_pp3, irq_ppmmu3),
                             ^
/arm/ubuntu/h5/mainline/sunxi-mali-h5/r6p2/src/devicedrv/mali/platform/sunxi/sunxi.c:101:3: error: ‘MALI_GPU_RESOURCES_MALI450_MP4_PMU’ undeclared (first use in this function)
   MALI_GPU_RESOURCES_MALI450_MP4_PMU(address,
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mripard commented 6 years ago

Sorry for that, it should compile now.

avafinger commented 6 years ago

Thank you. Mali is loaded now. I just need a way to test it and then i report back.

[    6.476571] mali: loading out-of-tree module taints kernel.
[    6.519948] Allwinner sunXi mali glue initialized
[    6.521363] Mali: 
[    6.521373] Found Mali GPU Mali-450 MP r0p0
[    6.538158] Mali: 
[    6.538708] Mali: 
[    6.538712] Mali device driver loaded
avafinger commented 6 years ago

Maxime, i don't have the proper mali450 blob version to test, but seems it could be an indication that would work:

ERROR in Mali driver:
 * Device driver API mismatch
 * Device driver API version: 900
 * User space API version: 600
Error: eglInitialise failed!

Please, reopen if needed, thank you anyway.