]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/v3d: Consolidate CPU job validation in a function
authorMaíra Canal <mcanal@igalia.com>
Mon, 12 Jan 2026 11:51:36 +0000 (08:51 -0300)
committerMaíra Canal <mcanal@igalia.com>
Mon, 19 Jan 2026 10:12:25 +0000 (07:12 -0300)
commiteaba54b8a67bdec7f834d61ff6cf5f0f3f4ea5bc
treecaab75a70b9b9d23950813b5c2879bb13b50a715
parent26b4309a3ab82a0697751cde52eb336c29c19035
drm/v3d: Consolidate CPU job validation in a function

All CPU job extension parsers duplicate the same validation procedure:
ensure the extension is attached to a CPU job (not a GPU job) and that
only a single CPU job extension is associated with a given job.

Create a function to consolidate these checks and reduce the boilerplate
across the various CPU job extension handlers. While here, convert the
legacy DRM_DEBUG with a more appropriate drm_dbg().

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patch.msgid.link/20260112-v3d-drm-debug-v2-1-8ef6244c97bb@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
drivers/gpu/drm/v3d/v3d_submit.c