]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Consolidate submit bo state
authorRob Clark <robdclark@chromium.org>
Wed, 28 Jul 2021 01:06:11 +0000 (18:06 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 28 Jul 2021 01:09:18 +0000 (18:09 -0700)
commitbe40596bb5cf20cf9eaeddeeb57de7c4f570c886
tree822bfb7b12ad5a0e3ddb0aafd267617cbd790756
parent7039d3f89b2f3f934b02d34225642113f9185a3c
drm/msm: Consolidate submit bo state

Move all the locked/active/pinned state handling to msm_gem_submit.c.
In particular, for drm/scheduler, we'll need to do all this before
pushing the submit job to the scheduler.  But while we're at it we can
get rid of the dupicate pin and refcnt.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20210728010632.2633470-7-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_gem_submit.c
drivers/gpu/drm/msm/msm_gpu.c