XDC 2024 | io_uring for DRM - Liviu Dudau @XOrgFoundation
XDC 2024 | io_uring for DRM - Liviu Dudau  @XOrgFoundation
Uploaded October 2024 | Updated November 2026, 5 days ago
Modern GPUs are moving more functionality into firmware in order to allow for user space to submit jobs directly and gain additional performance from that.

DRM framework for rendering nodes assumes that the kernel driver is in charge all the time and job submissions are only happening in kernel context.

io_uring is a mechanism inside the kernel that allows for asynchronously queuing requests from userspace and let them be handled by the kernel driver(s) in a batched mode. Adopting this (or a very similar) mechanism in DRM would allow us to gain the benefits of reduced context switching between userspace apps and kernel while keeping the kernel driver(s) for GPU(s) in charge of actual job submissions.

I am looking at gathering feedback on the idea and on why it might not be appropriate to add support for io_uring in DRM. We know that io_uring had its fair share of security issues and that Android for example disables it completely, but there are other aspects that need to be discussed like user space implementing a job scheduling on its own, or lack of a need for job scheduling at all as firmware might be completely in charge of that.

#XDC2024
XDC 2024 | io_uring for DRM - Liviu DudauXDC 2024 | A little Windows with your Mesa? - Faith EkstrandXDC 2023 | October 17 | Wayfire - Making an OGL Wayland compositor render using Pixman | C. MichaelXDC 2023 - Day 3 - October 19th, 2023XDC 2026 | Demo: Interactive HDCP Diagnostic Tool for Linux DRM/KMS - Ankit Nautiyal, Suraj KandpalXDC 2022 | Async page flip in atomic API | André AlmeidaXDC 2023 | October 19 | Wayland driver for Wine: The story so far | Alexandros FrantzisXDC 2023 | October 18 | Linux DRM Bridge: A Potential Replacer for the DRM Encoder... | Jagan TekiXDC 2026 | Foveated rendering on Turnip -  Connor AbbottXDC 2023 | October 19 | v3dv: experience using gfxreconstruct/apitrace traces for... | A. PiñeiroXDC 2024 | Designing a Driver for Simulated DSI Panels - Jessica ZhangXDC 2024 | Enhancements to the Raspberry Pi GPU driver stack - José María Casanova Crespo
X.Org Foundation |

XDC 2024 | io_uring for DRM - Liviu Dudau

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER