PINE64
OpenCL through ARM's Official Mali Kernel Driver - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=166)
+--- Forum: Linux on Quartz64 (https://forum.pine64.org/forumdisplay.php?fid=168)
+--- Thread: OpenCL through ARM's Official Mali Kernel Driver (/showthread.php?tid=18699)



OpenCL through ARM's Official Mali Kernel Driver - pvelesko - 09-13-2023

Hi all, 

I am trying to install the official ARM Mali GPU driver from here: https://developer.arm.com/downloads/-/mali-drivers/bifrost-kernel 

The intention is to run an OpenCL benchmark on Mali-G52.

I disabled the panfrost driver, build the ARM driver, however, I run into the following error. I've seen references to `dev_pm_opp_set_regulators: no regulator (shadercores) found: -19` elsewhere but no idea how to actually fix it. Anyone have any ideas?

```
~$ dmesg | grep -i mali
[    3.768892] mali fde60000.gpu: Kernel DDK version r44p0-01eac0
[    3.768919] mali fde60000.gpu: IRQ JOB not found
[    3.769415] mali fde60000.gpu: IRQ MMU not found
[    3.769897] mali fde60000.gpu: IRQ GPU not found
[    3.770430] mali fde60000.gpu: Looking up mali-supply from device tree
[    3.774382] mali fde60000.gpu: Looking up shadercores-supply from device tree
[    3.774406] mali fde60000.gpu: Looking up shadercores-supply property in node /gpu@fde60000 failed
[    3.774538] mali fde60000.gpu: Looking up mali-supply from device tree
[    3.775188] mali fde60000.gpu: Looking up shadercores-supply from device tree
[    3.775217] mali fde60000.gpu: Looking up shadercores-supply property in node /gpu@fde60000 failed
[    3.775264] mali fde60000.gpu: dev_pm_opp_set_regulators: no regulator (shadercores) found: -19
[    3.776281] mali fde60000.gpu: Power management initialization failed error = -19
[    3.776981] mali fde60000.gpu: Device initialization failed

```


RE: OpenCL through ARM's Official Mali Kernel Driver - CounterPillow - 09-14-2023

That sounds like you need to modify the device tree and add a shadercores-supply property.