drm/msm: Remove abuse of drm_exec internals
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 31 Mar 2026 09:20:20 +0000 (11:20 +0200)
committerRob Clark <robin.clark@oss.qualcomm.com>
Wed, 1 Apr 2026 03:17:23 +0000 (20:17 -0700)
commit8c0e0b4628e5fd98bc614378f1aff4c1c8c26310
treee3720a8aa577750c9ca42fe336788784a290bcbe
parent64ac64bb62064dbfbb66964331f5a2af6adeb03b
drm/msm: Remove abuse of drm_exec internals

The code was reading drm_exec internal state to determine whether
the drm_exec structure had been initialized or not, and therefore
needed cleaning up, relying on undocumented behaviour.

Instead add a bool to struct msm_gem_submit to indicate whether
drm_exec cleaning up is needed.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Rob Clark <rob.clark@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/715502/
Message-ID: <20260331092023.81616-3-thomas.hellstrom@linux.intel.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_gem_submit.c