[PATCH v10 0/4] Introduce DRM device wedged event

Xaver Hugl xaver.hugl at kde.org
Tue Jan 21 00:59:47 UTC 2025


Hi,

I experimented with using this in KWin, and
https://invent.kde.org/plasma/kwin/-/merge_requests/7027/diffs?commit_id=6da40f1b9e2bc94615a436de4778880cee16f940
makes it fall back to a software renderer when a rebind is required to
recover the GPU.
Making it also survive the rebind properly is more challenging
(current version of the MR doesn't do it for you and just crashes if
you do it with a udev rule or manually), but it's doable - and not a
problem of the API.

I'd really like to have the PID of the client that triggered the GPU
reset, so that we can kill it if multiple resets are triggered in a
row (or switch to software rendering if it's KWin itself) and show a
user-friendly notification about why their app(s) crashed, but that
can be added later.

- Xaver


More information about the dri-devel mailing list