This guide walks you through the steps to enable Panthor and Vulkan on Mali GPUs present in boards with the RK3588 chipset.
Panthor is a new driver for Mali G*** gpus developed by the linux kernel developers, while Panfork is a fork from Panfrost which aimed to support Mali G610 when it was released. Even so Panfork performs better than Panthor, Panthor is the way to go forward as Panfork isnt supported anymore.
> EGL (2D acceleration) performance ~-40% (not measured, answering from day to day feel).
> OpenGL (3D acceleration) performance -16%.
> Vulkan is now almost fully supported.
> You also see a bit more cpu usage (~5%) on heavy gpu usage.
BredOS for RK35xx devices has Panfork enabled by default!
sudo bredos-config
Then navigate to Device Tree Manager -> Enable / Disable Overlays and enable rockchip-rk3588-panthor-gpu. The tool then installs the base device tree and the selected overlay.
Carefully follow the instructions on screen!
While bredos-config is able to install dtbs and alter the grub config to load them on boot it cannot alter uefi settings. This has to be done by the user. The changes the user has to make are shown by bredos-config on first installation of base/overlay dtbs. The changes can also be found in the Device Tree Overlay guide.
Do not reboot your system after the installation of the dtb overlay!
Continue with2.2 Replace Panfork graphics.
Follow the Device Tree Overlay guide to enable /boot/dtbs/rockchip/overlay/rockchip-rk3588-panthor-gpu.dtbo.
Do not reboot your system after the installation of the dtb overlay!
Continue with2.2 Replace Panfork graphics.
mesa-panfork-git package with the standard mesa package:sudo pacman -S mesa
sudo pacman -S vulkan-icd-loader vulkan-panfrost
lsmod | grep pan
The output of the command above should indicate that the panthor module is loaded. If you still see the panfrost module listed, you may want to check if you have done all steps described in this article.
Panfork, run the following commands:sudo pacman -S mesa-panfork-git
rm /boot/efi/dtb/overlays/rockchip-rk3588-panthor-gpu.dtbo
sudo reboot
sudo pacman -S mesa-panfork-git
sudo nano /boot/extlinux/extlinux.conf
Remove the line fdtoverlays /boot/dtbs/rockchip/overlay/rockchip-rk3588-panthor-gpu.dtbo.
Then Save and Close.
sudo reboot