~/talk

Converting a DRM driver to Rust

Talkat Linux Plumbers Conference 2023 · 2023-11-13..11-15· [rust]
links:none on file
slides:none on file

A 400-line VGEM DRM driver gets rewritten in Rust as a drop-in equivalent that uses Asahi Lina DRM bindings and Rust-for-Linux helpers for timers, DMA reservation and legacy platform init. The rewrite exposes real issues in the C code (use-after-free in GEM paths), requires explicit unsafe blocks with safety comments and safety-review discipline, and lands as a working Rust vgem implementation ready for upstream discussion and further reviewer-driven refinements. rewrote the 400-line VGEM DRM driver in Rust used Asahi Lina DRM bindings

AI-written summary · about

  1. 0:00Introduction to Rust GPU
  2. 0:42Understanding vGEM
  3. 2:00Motivation for the rewrite
  4. 4:29Implementing Rust vGEM
  5. 7:21Challenges with Rust in kernel
  6. 12:54Upstreaming and community
  7. 15:26Discussion and feedback
  8. 24:41Future of Rust in Linux
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.