drm/msm: Drop queued submits on lastclose()
authorRob Clark <robdclark@chromium.org>
Sun, 29 Jun 2025 20:13:03 +0000 (13:13 -0700)
committerRob Clark <robin.clark@oss.qualcomm.com>
Sat, 5 Jul 2025 00:48:36 +0000 (17:48 -0700)
commit5b5582c6b8845cb11e7c62443b0b243953f716da
tree79318bcbdc1c3db3bad9ff3e5112450d8344a6f8
parent7e34b8f6ed1e2d705668959cebd5aef3d5ba1b8b
drm/msm: Drop queued submits on lastclose()

If we haven't written the submit into the ringbuffer yet, then drop it.
The submit still retires through the normal path, to preserve fence
signalling order, but we can skip the IB's to userspace cmdstream.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Tested-by: Antonino Maniscalco <antomani103@gmail.com>
Reviewed-by: Antonino Maniscalco <antomani103@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/661489/
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_gpu.h
drivers/gpu/drm/msm/msm_ringbuffer.c