]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Drop submit bo_list
authorRob Clark <robdclark@chromium.org>
Wed, 28 Jul 2021 01:06:15 +0000 (18:06 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 28 Jul 2021 16:19:00 +0000 (09:19 -0700)
commitbd0b8e9f9c3c0f7f29884f62eec585a6396ba575
treec7e794df7070620d3be1826ed2766a1f1cb685f4
parent1d8a5ca436ee4a28eec14cb813f790f7cdeeee19
drm/msm: Drop submit bo_list

This was only used to detect userspace including the same bo multiple
times in a submit.  But ww_mutex can already tell us this.

When we drop struct_mutex around the submit ioctl, we'd otherwise need
to lock the bo before adding it to the bo_list.  But since ww_mutex can
already tell us this, it is simpler just to remove the bo_list.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20210728010632.2633470-11-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_gem_submit.c