Ghostboard pixel

Yoohoo! There is a New Rust-Based GPU Driver for Linux in Development

That’s quite a surprising development, I must say.

tux on left, gears in middle, tyr written below that, rust logo on right (the crab)

The rustificiation of Linux has been steadily progressing, with the most popular components being Red Hat's Nova GPU driver for NVIDIA GPUs and the Rust NVMe driver maintained by the kernel community.

As Rust continues to gain traction, new projects are popping up, each trying to integrate this memory-safe language into Linux, exploring new areas like GPU drivers, storage, and networking.

The newest of these efforts is Tyr, a GPU driver developed jointly by Collabora, Arm, and Google, aiming to bring Rust support to Mali CSF-based GPUs.

Tyr GPU Driver: What to Expect?

this is a long screenshot of the patch message by daniel almeida that has the following subject: introduce tyr

Taking its name from a Norse god, the Tyr GPU driver is a port of Panthor, a downstream kernel driver for ARM Mali CSF GPUs, and takes pointers from Nova and rust_platform_driver.rs (link).

At this stage, the driver is bare-bones with limited functionality. It can power on the GPU and perform basic device probing, but many advanced features are still under development.

Support is currently limited to the Rockchip RK3588 SoC, and future development aims to add full GPUVM support, enable MCU booting, and improve power management. Plans also include handling synchronization through VM_BIND and introducing a software scheduler for fair access to GPU resources.

Daniel Almeida from Collabora, who submitted this patch to the kernel, explained that:

At the current pace, I am fairly certain that we can achieve a working driver downstream in a couple of months, for a given definition of "working". In any case, reconciling this with upstream has been somewhat challenging recently, so this patch constitutes a change in the overall strategy that we have been using to develop Tyr so far.

You can visit Tyr's GitLab repo to dive into the source code and follow ongoing development and discussions.

Via: Phoronix

Suggested Read 📖

New Linux Kernel Drama: Torvalds Drops Bcachefs Support After Clash
Things have taken a bad turn for Bcachefs as Linux supremo Linus Torvalds is not happy with their objections.
🎗️
Here's why you should opt for It's FOSS Plus Membership:

- Even the biggest players in the Linux world don't care about desktop Linux users. We do.
- We don't put informational content behind paywall. Your support keeps it open for everyone. Think of it like 'pay it forward'.
- Don't like ads? With the Plus membership, you get an ad-free reading experience.
- When millions of AI-generated content is being published daily, you read and learn from real human Linux users.
- It costs just $2 a month, less than the cost of your favorite burger.

Become a Plus Member today and join over 300 people in supporting our work.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS News.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.