]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/v3d: Move part of copying of reset/copy performance extension to a helper
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Thu, 11 Jul 2024 13:53:35 +0000 (14:53 +0100)
committerMaíra Canal <mcanal@igalia.com>
Sat, 13 Jul 2024 14:00:31 +0000 (11:00 -0300)
commit4bd75a81e61ab691154a83068a694c9af44e2dd6
treebd2a97ddc30245fa118cc5290ab30d921e771c80
parenta546b7e4d73c23838d7e4d2c92882b3ca902d213
drm/v3d: Move part of copying of reset/copy performance extension to a helper

The loop which looks up the syncobj and copies the kperfmon ids is
identical so lets move it to a helper.

The only change is replacing copy_from_user with get_user when copying a
scalar.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240711135340.84617-7-tursulin@igalia.com
drivers/gpu/drm/v3d/v3d_submit.c