Re: [PATCH] rust: drm: enable standard fdinfo for Rust drivers
From: peder . bergan
Date: Wed Nov 25 2026 - 02:58:02 EST
Thanks for the reviews, and thanks Janne for testing on Asahi. I agree
that the Fixes tag should go.
Danilo, I’ve prepared a v2 against drm-rust-next with the callback in
UnregisteredDevice::FOPS. Would you like me to send it?
Peder
On Tue, 24 Nov 2026 18:54:27 +0000, Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
> On Thu, Nov 19, 2026 at 10:48:47AM +0100, Peder Bergan wrote:
> > DRM monitoring tools use drm-driver and drm-client-id in procfs fdinfo
> > to identify DRM clients. The common Rust DRM file operations leave
> > show_fdinfo unset, so these entries are missing for those clients.
> >
> > Set show_fdinfo to drm_show_fdinfo. The DRM core helper emits the
> > standard client information and calls the separate driver statistics
> > hook if the driver provides one.
> >
> > Fixes: c284d3e42338 ("rust: drm: gem: Add GEM object abstraction")
> > Closes: https://github.com/Rust-for-Linux/linux/issues/1266
> > Signed-off-by: Peder Bergan <peder.bergan@xxxxxxxxx>
>
> Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
>
> Alice