Running Panfrost?
#1
Or ultimately Vulkan.  I've been going in circles for a week or so between my Rock64 and my Odroid N2 trying to get the Malis to do anything remotely like acceleration or being controlled by a language like OpenGL ES or Vulkan, under X11 anyway.  ARM/Mali only supports Wayland (and Android) at least from some point on.  Panfrost is supposed to work with the older 2Mali families, not Bifrost but Utgard and Midgard.

So Panfrost https://panfrost.freedesktop.org/ attempts to change that.  I have Panfrost installed on my Rock64 but there's one catch:
Quote:Use a mainline kernel version 5.2 or later with CONFIG_DRM_PANFROST enabled


If I run es2gears it runs at about 200 FPS but it's also using 120% of the CPU because it's doing software emulation instead of using the Mali.  When I first got this Rock64 about a year ago I thought es2gears ran at about 600 FPS.  Then something broke, it sat for 6 months, I reloaded with Ayufan's Buster image, and now it's slow.  The kernel part of a Mali driver is free and open source https://developer.arm.com/tools-and-soft...ard-kernel  I'm not sure if I need to try to get Ayufan's kernel config and set up a kernel or not.  I have a /dev/dri and /dev/mali  and /dev/fb0.

-----------

OK, I just tried Lima too, it's about the same.  There are some Mali userspace drivers at https://developer.arm.com/tools-and-soft...user-space but it's hit-or-miss.  The Rock64 has a Mali 450mp2 which is an Utgard family so Lima should work.  https://gitlab.freedesktop.org/lima

My dmesg shows "mali-utgard" like it's a driver name or something and  locate "drivers/gpu/arm" finds
Code:
/lib/modules/4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/kernel/drivers/gpu/arm
/lib/modules/4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/kernel/drivers/gpu/arm/mali400
/lib/modules/4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/kernel/drivers/gpu/arm/mali400/mali
/lib/modules/4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/kernel/drivers/gpu/arm/mali400/mali/mali.ko
/lib/modules/4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/kernel/drivers/gpu/arm/midgard_for_linux
/lib/modules/4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/kernel/drivers/gpu/arm/midgard_for_linux/midgard_kbase.ko
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/Makefile.kbase
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/platform
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/platform/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests/kutf
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests/kutf/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests/kutf/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests/mali_kutf_irq_test
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests/mali_kutf_irq_test/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost/tests/mali_kutf_irq_test/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/Makefile.kbase
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/platform
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/platform/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests/kutf
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests/kutf/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests/kutf/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests/mali_kutf_irq_test
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests/mali_kutf_irq_test/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/bifrost_for_linux/tests/mali_kutf_irq_test/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/mali
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/mali/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/mali/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/ump
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/ump/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/ump/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/ump/Makefile.common
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/umplock
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/mali400/umplock/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/Makefile.kbase
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/platform
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/platform/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests/kutf
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests/kutf/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests/kutf/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests/mali_kutf_irq_test
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests/mali_kutf_irq_test/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard/tests/mali_kutf_irq_test/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard_for_linux
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard_for_linux/Kconfig
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard_for_linux/Makefile
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard_for_linux/Makefile.kbase
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard_for_linux/platform
/usr/src/linux-headers-4.4.190-1233-rockchip-ayufan-gd3f1be0ed310/drivers/gpu/arm/midgard_for_linux/platform/Kconfig


lsmod shows a mali module loaded, I have a /dev/mali, so how come it doesn't work?  (or is it?)

When I'm running es2gears lsof doesn't list /dev/mali as being open.
  Reply


Messages In This Thread
Running Panfrost? - by ab1jx - 12-06-2019, 03:09 PM
RE: Running Panfrost? - by tomarm - 12-16-2019, 06:41 AM
RE: Running Panfrost? - by ab1jx - 12-24-2019, 03:00 PM
RE: Running Panfrost? - by tomarm - 12-28-2019, 02:42 AM
RE: Running Panfrost? - by ab1jx - 03-11-2020, 04:46 PM
RE: Running Panfrost? - by tomarm - 10-04-2020, 09:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  EasyOS 1.0.4 running on Rock64 BarryK 2 4,464 02-19-2019, 01:11 AM
Last Post: pineadmin
  Running debian testing, web video blows :( dougunder 2 4,138 04-22-2018, 03:24 PM
Last Post: dougunder
  Has someone managed to get Docker running yet? Sven 17 20,292 12-24-2017, 06:52 PM
Last Post: xnathanh
  Which one do you think is the best image for running a server for website? fbms 4 5,867 08-28-2017, 07:19 PM
Last Post: fire219

Forum Jump:


Users browsing this thread: 1 Guest(s)