Duplicate the DMA in Rust
Duplicate the DMA in Rust
Posted Jan 31, 2025 9:51 UTC (Fri) by LtWorf (subscriber, #124958)Parent article: Resistance to Rust abstractions for DMA mapping
You can't force people. If you reach the point where you tell them "my way or the highway" they might chose the highway. And the whole goal of Rust in the kernel is to have more maintainers, not fewer.
I think the DMA maintainers would be satisfied if Rust had its own independent DMA code that does no calls to the C DMA code but implements everything from scratch. In that way a change of the C API would not require them to go and fix any rust code.
I presume this road hasn't been considered because it's complicated. But it would avoid offloading more work onto people who don't want to do this extra work, and keep it on the shoulders of people who claim they do want to do the work. So to me that would seem the fairest solution here.
Posted Jan 31, 2025 10:51 UTC (Fri)
by josh (subscriber, #17465)
[Link]
There isn't a genuine technical objection here, and this isn't something that a technical solution will fix. Christoph is attempting to block Rust in the kernel, calling it a "cancer" and saying "I will do everything I can do to stop this.". The correct response to such an escalation is to get him overruled and told that his "nack" will be ignored; nothing short of that is likely to work.
Posted Jan 31, 2025 11:37 UTC (Fri)
by Wol (subscriber, #4433)
[Link] (4 responses)
I was thinking that. Do a "swap management" type stunt that Linus pulled ages ago.
I strongly suspect the result would be this huge blob of C legacy code would be replaced by a much smaller Rust blob, and Christoph would cease to be maintainer because the code would become an ex-Parrot.
Cheers,
Posted Jan 31, 2025 11:50 UTC (Fri)
by intelfx (subscriber, #130118)
[Link] (3 responses)
Posted Jan 31, 2025 14:47 UTC (Fri)
by Wol (subscriber, #4433)
[Link] (2 responses)
Cheers,
Posted Jan 31, 2025 15:03 UTC (Fri)
by dralley (subscriber, #143766)
[Link] (1 responses)
With respect to Rust in core kernel infrastructure, I don't think the architecture support concerns can be handwaved away like that. rustc_codegen_gcc is getting closer and closer to maturity every month, so this won't be a problem forever, but for the time being it still is.
Posted Feb 1, 2025 13:45 UTC (Sat)
by tialaramex (subscriber, #21167)
[Link]
It would be very disappointing if that's what it takes, that somehow "Everything" is the lowest acceptable bar for "Anything" but I'd guess in the short term the only consequence is that the Rust priorities for 2025H1 get shorter by one item, no need to get Rust-for-Linux on stable Rust closer if in fact Rust-for-Linux is blocked until we can just rewrite everything in Rust anyway.
Posted Jan 31, 2025 14:43 UTC (Fri)
by Wol (subscriber, #4433)
[Link]
Do we want one maintainer jealously guarding his fiefdom, or four or five working as a team?
People who can't work as a team are a liability and single-handedly do a damn good job of discouraging newcomers.
Cheers,
Duplicate the DMA in Rust
Duplicate the DMA in Rust
Wol
Duplicate the DMA in Rust
Duplicate the DMA in Rust
Wol
Duplicate the DMA in Rust
Duplicate the DMA in Rust
Duplicate the DMA in Rust
Wol
