|
|
Subscribe / Log in / New account

Rust will not reduce platforms

Rust will not reduce platforms

Posted Mar 1, 2025 18:32 UTC (Sat) by mfuzzey (subscriber, #57966)
In reply to: Rust will not reduce platforms by jmalcolm
Parent article: A change in maintenance for the kernel's DMA-mapping layer

Drivers are generally *hardware* dependent (of course) but most are *platform* independent.

This applies to virtually all drivers for hardware that isn't in the SoC itself (eg chips connected to the CPU using busses like I2C / SPI / PCI / USB ).

Even when the hardware is actually inside the SoC it's quite common for IP blocks to be reused in multiple SoCs, even ones from different manufacturers (because manufacturers often buy the IP for an ethernet controller, USB controller or whatever and integrate it in their SoC). In that case the register interface is the same so the driver code is the same but the registers will be at different addresses (and that's taken care of by injecting the appropriate base address by DT / ACPI)

So, in many cases, having drivers in Rust will impact Linux support for platforms that don't yet have a Rust implementation. And while it is indeed possible to have competing implementations this usually frowned upon in the kernel for duplication / maintenance reasons and usually exists only temporarilly.


to post comments

Rust will not reduce platforms

Posted Mar 3, 2025 10:24 UTC (Mon) by taladar (subscriber, #68407) [Link]

The real question is why do those niche platforms have such an overwhelming impact on Linux development decisions despite largely being out of production for decades?

Rust will not reduce platforms

Posted Mar 5, 2025 0:59 UTC (Wed) by edgewood (subscriber, #1123) [Link]

Are there kernel architectures that are not supported by Rust that can support new devices in need of new drivers? My understanding is that all but one of the kernel architectures not supported by Rust are legacy architectures that are out of manufacturing. Are they really getting new devices? Can you point me to a concrete example of one of these?


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds