Originally posted by Developer12
View Post
Arm Helping With AArch64 Rust Linux Kernel Enablement
Collapse
X
-
-
-
Originally posted by Developer12 View Post
Somebody hasn't been following along and knows neither anything about rust nor GPU driver development therein.
He's basically *heart* AMD, GTK/Gnome (and C and Fedora as an extension of that), Wayland, *unheart* everything else. Nothing really worth reading. This being an Internet forum, there's a bunch of them here posting for each other.
Leave a comment:
-
-
Originally posted by Alexmitter View Post
Then we could wait 10+ years until we could plug in a Intel Arc dGPU into lets say a RISC-V board. We can do that today, because C isn't a over engineered clusterf*ck.
Leave a comment:
-
-
Originally posted by Anux View PostI haven't seen an ARC GPU in a RiscV System, that's really cool, could you provide a link?Intel Brings Arc Discrete Graphics Support on ARM & Other Architectures Through Latest Linux PatchesIntel offers further integration of Arm support in their Linux kernel, focusing heavily on ARC Alchemist DG2 GPUs.
that said, any driver written in rust will work on any architecture without modification once rust support for that architecture lands. x86 is there, arms is being worked on by ARM, and I'm sure risc-v isn't far behind. It's mostly a question of how quickly the existing patchsets can get through review, rather than how long it takes to develop them
Leave a comment:
-
-
Originally posted by Developer12 View PostSomebody hasn't been following along and knows neither anything about rust nor GPU driver development therein.
edit: side note, but rust already works fine on risc-v. dunno if anyone's put a patchset together for supporting it in the kernel yet, but there's no reason a driver written in rust wouldn't work on risc-v with that support in place.
Leave a comment:
-
-
Originally posted by Alexmitter View Post
Then we could wait 10+ years until we could plug in a Intel Arc dGPU into lets say a RISC-V board. We can do that today, because C isn't a over engineered clusterf*ck.
Rust has enabled the development of the asahi GPU driver to proceed MUCH faster than would ever have been possible in C.
Once you get a prototype working in rust for the single-thread, single-app case, you can trivially extend it to full blown multi-threaded multi-processing use. Normally it would have taken them months more work to track down and fix the countless bugs created when doing this with a C driver (which every major C driver has had to deal with). In asahi's case, they made the transition in less than a week.
They now have a 99%+ compliant openGL 2-3 driver that is shipping in their experimental branch. You can track the progress as they implement the needed extensions for openGL 4 on https://mesamatrix.net/. All of the development streams that Lina Asahi does are streamed from an M1 running this driver on linux, with inochi2D vtubing software, OBS, firefox, the desktop environment, and everything else running with GPU acceleration on top of it.
The biggest thing holding back upstreaming of this driver is the speed at which the rust infrastructure they're relying on can land upstream, which is what ARM is helping with. A big chunk of the rust patchset still outstanding is the ARM support.
If you need another example, there's also a brand new rust NVMe driver floating around that took only a few months to write but is within a few percent of the performance of the existing C one, without any real work having been put into optimizing it. Rust simply makes multithreaded code far easier to write.
edit: side note, but rust already works fine on risc-v. dunno if anyone's put a patchset together for supporting it in the kernel yet, but there's no reason a driver written in rust wouldn't work on risc-v with that support in place.Last edited by Developer12; 26 January 2023, 05:28 PM.
Leave a comment:
-
-
Originally posted by Alexmitter View Post
Then we could wait 10+ years until we could plug in a Intel Arc dGPU into lets say a RISC-V board. We can do that today, because C isn't a over engineered clusterf*ck.
Leave a comment:
-
-
Originally posted by RejectModernity View PostI wish Intel would write the new Xe GPU driver in Rust ðŸ˜
Leave a comment:
-
-
I did. I am also asking for much more subsystem-adoption and more arch support. But I am patient.
Leave a comment:
-
Leave a comment: