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.

It's FOSS turns 13! 13 years of helping people use Linux ❤️

And we need your help to go on for 13 more years. Support us with a Plus membership and enjoy an ad-free reading experience and get a Linux eBook for free.

To celebrate 13 years of It's FOSS, we have a lifetime membership option with reduced pricing of just $76. This is valid until 25th June only.

If you ever wanted to appreciate our work with Plus membership but didn't like the recurring subscription, this is your chance 😃

Get Lifetime Membership of It's FOSS

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.