Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.52k stars 273 forks source link

RK3588: Linux Vulkan support #617

Open 0x7CFE opened 9 months ago

0x7CFE commented 9 months ago

Hello, I've just received my RK1 modules. After installing ubuntu-22.04.3-preinstalled-server-arm64-turing-rk1_v1.32.img and updating my system I tried to do some checks with vulkaninfo.

Unfortunately, what I see is:

Cannot create Vulkan instance.  
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.  
ERROR at ./vulkaninfo/vulkaninfo.h:649:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER

This is sad, especially since it was advertized that RK1 and its Mali SoC support Vulkan 1.2.

I tried to find drivers myself, but according to https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/54732/how-to-install-mali-g610-driver-in-linux it seems that it should be provided by the OEM.

Should I do something extra to support Vulkan Compute or I am totally out of luck?

P.S.: I tried installing mali-g610-firmware package. However, it makes no difference and vulkaninfo still fails with the same message.

Joshua-Riek commented 9 months ago

The GPU situation is very bad for the RK3588. Vulkan will not work on Linux, only Android.

0x7CFE commented 9 months ago

The GPU situation is very bad for the RK3588. Vulkan will not work on Linux

Oh, that's unfortunate. Especially since recent G610 was specifically designed with Vulkan in mind. Hopefully, Igalia and other teams would eventually close the gap :crossed_fingers:

As for Turing Machines, I'd rather not advertise their RK1 as Vulkan-capable as of yet :\

Joshua-Riek commented 9 months ago

Some blobs may come in the future, though these blobs are closed-source and filled with bugs such as the X11 and Wayland G610 blobs.

See: https://github.com/JeffyCN/mirrors/issues/21

InfernalWolf666 commented 8 months ago

Hello! Any new news about graphics? I want to play games on orange pi 5 plus. And why does it turn out that Mali 610 graphics work on Android, but not on Linux? I don't care if it's closed source or open source.

bagong commented 8 months ago

Hello! Any new news about graphics? I want to play games on orange pi 5 plus. And why does it turn out that Mali 610 graphics work on Android, but not on Linux? I don't care if it's closed source or open source.

You might not care, for others it's very important. Who stops you from using Android?

InfernalWolf666 commented 8 months ago

Вам может быть все равно, для других это очень важно. Кто вам мешает использовать Android?

i see news this site - https://www.cnx-software.com/2024/03/05/panthor-open-source-driver-arm-mali-g310-mali-g510-mali-g610-and-mali-g710-gpu-linux-6-10/

ghost commented 5 months ago

Hello! Any new news about graphics? I want to play games on orange pi 5 plus. And why does it turn out that Mali 610 graphics work on Android, but not on Linux? I don't care if it's closed source or open source.

You might not care, for others it's very important. Who stops you from using Android?

You can't use Blender on android

0x7CFE commented 5 months ago

Interesting, would it be possible eventually to use upcoming patch for Rockchip NPU for Vulkan compute?

https://www.phoronix.com/news/Rocket-Rockchip-NPU-Driver#google_vignette https://lore.kernel.org/lkml/20240612-6-10-rocket-v1-0-060e48eea250@tomeuvizoso.net/

MarkhamLee commented 5 months ago

Interesting, would it be possible eventually to use upcoming patch for Rockchip NPU for Vulkan compute?

https://www.phoronix.com/news/Rocket-Rockchip-NPU-Driver#google_vignette

https://lore.kernel.org/lkml/20240612-6-10-rocket-v1-0-060e48eea250@tomeuvizoso.net/

From talking to the author it's for running ML models in TensorFlow Lite on the NPU, he's very much focused on building open source NPU drivers. I.e., Vulkan and the GPU aren't in scope and would have to be part of a different effort.

0x7CFE commented 5 months ago

Oh, that's unfortunate. Though I can fully understand his decision to focus on a specific subsystem. Better have one thing polished than a bunch of half-baked stuff.

ethanc8 commented 4 months ago

@MarkhamLee @0x7CFE Unlike with Etnaviv, the GPU and NPU are completely unrelated -- the GPU is an ARM Mali G610, while the NPU is a heavily modified NVIDIA NVDLA. Therefore, Tomeu Vizoso's efforts are completely unrelated to any GPU support, which is currently being handled by Panfork and will be handled with Panthor (kernel driver) plus Panfrost (Mesa driver) in the future. That driver is only for OpenGL, but I think we will automatically get any improvements done to the PanVk Vulkan driver once we move off of Panfork.