3 ms·
I hope none of the DRM drivers switch to using Rust, would make it even harder to use them in other operating systems.
by rjsw 4y ago
I hope none of the DRM drivers switch to using Rust, would make it even harder to use them in other operating systems.
- sanxiyn 4y agoAsahi Linux DRM driver is already written in Rust, so other operating systems would need to port it to C.
- biorach 4y agoIt's not possible to use the DRM drivers in other operating systems. Or are you talking about NVidia's closed source drivers?
- sanxiyn 4y agoIt is in fact possible. "Linux KPI is the FreeBSD effort for providing a Linux compatibility interface to make it easier to bring Linux DRM drivers to FreeBSD and for them to remain up-to-date against Linux upstream." https://www.phoronix.com/news/DRM-Next-KMOD-On-FreeBSD-11 https://www.phoronix.com/news/DRM-Next-KMOD-On-FreeBSD-11
- biorach 4y agoAh... Well FreeBSD on the Apple M1 is highly unlikely, so this is going to be a non-issue in the near term. And none of the existing DRM drivers are likely to be rewritten in Rust. In the medium term, maybe some in-kernel dependencies might end up getting rewritten in Rust, or maybe some brand-new architecture may have a greenfield development in Rust. I'm going to speculate that FreeBSD on commodity graphics hardware is safe enough for a few years, but that longer term Rust compatibility might have to be added to the Linux KPI.
- sanxiyn 4y agoFreeBSD on Apple Silicon is in fact a work in progress: https://wiki.freebsd.org/AppleSilicon https://wiki.freebsd.org/AppleSilicon
- biorach 4y agoHot Damn! I wonder how they're planning on tackling the graphics driver. Maybe they'll be adding Rust support to that KPI layer sooner that I guessed.
- anthk 4y agoAlso, OpenBSD since 7.2 supports the m1 too.
- anthk 4y agoOpenBSD.
- rjsw 4y agoI work on porting Linux DRM drivers to NetBSD.