[PATCH 0/1] drm/lima: implement the file flush callback

From: Erico Nunes
Date: Tue Apr 08 2025 - 11:55:14 EST


This prevents a user bug in lima reported in [1].
I'm not sure this is the entire bug fix, but Christian had also
suggested we implement this callback in a previous review [2].
I took the amdgpu implementation as a base for this.

I noticed that most other drivers don't implement this though, in
particular the other ones for embedded GPUs. Should they, or does
this indicate that we have a different bug to be fixed in lima?

[1] https://gitlab.freedesktop.org/mesa/mesa/-/issues/12007
[2] https://lore.kernel.org/all/20230606143247.433018-1-nunes.erico@xxxxxxxxx/T/#mf5c7a2492201c8ec82bee47eb5615714d5c5aac2

Erico Nunes (1):
drm/lima: implement the file flush callback

drivers/gpu/drm/lima/lima_ctx.c | 18 ++++++++++++++++++
drivers/gpu/drm/lima/lima_ctx.h | 1 +
drivers/gpu/drm/lima/lima_drv.c | 17 ++++++++++++++++-
3 files changed, 35 insertions(+), 1 deletion(-)

--
2.49.0