Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RK3588: Linux Vulkan support #617

Open
0x7CFE opened this issue Feb 13, 2024 · 11 comments
Open

RK3588: Linux Vulkan support #617

0x7CFE opened this issue Feb 13, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@0x7CFE
Copy link

0x7CFE commented Feb 13, 2024

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
Copy link
Owner

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

@Joshua-Riek Joshua-Riek changed the title RK1/TuringPi: Cannot create Vulkan instance RK3588: Linux Vulkan support Feb 13, 2024
@Joshua-Riek Joshua-Riek added the enhancement New feature or request label Feb 13, 2024
@0x7CFE
Copy link
Author

0x7CFE commented Feb 13, 2024

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 🤞

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

@Joshua-Riek
Copy link
Owner

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: JeffyCN/mirrors#21

@InfernalWolf666
Copy link

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
Copy link

bagong commented Mar 5, 2024

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
Copy link

Вам может быть все равно, для других это очень важно. Кто вам мешает использовать 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
Copy link

ghost commented May 28, 2024

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
Copy link
Author

0x7CFE commented Jun 15, 2024

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
Copy link

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
Copy link
Author

0x7CFE commented Jun 15, 2024

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
Copy link

ethanc8 commented Jul 21, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants