]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/gem: Unpin buffers earlier
authorRob Clark <robdclark@chromium.org>
Tue, 2 Aug 2022 15:51:44 +0000 (08:51 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 27 Aug 2022 16:32:45 +0000 (09:32 -0700)
commite8f3c2cea32ad74f0549b3513b87017f893fcb38
tree2ef544faf2bff07ab7dc539a5206238feb15544d
parent7803b30d2f6e20bac7efb49ce3af6c018894013a
drm/msm/gem: Unpin buffers earlier

We've already attached the fences, so obj->resv (which shrinker checks)
tells us whether they are still active.  So we can unpin sooner, before
we drop the queue lock.

This also avoids the need to grab the obj lock in the retire path,
avoiding potential for lock contention between submit and retire.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/496132/
Link: https://lore.kernel.org/r/20220802155152.1727594-12-robdclark@gmail.com
drivers/gpu/drm/msm/msm_gem_submit.c