drm/msm/gem: Avoid obj lock in job_run()
authorRob Clark <robdclark@chromium.org>
Mon, 20 Mar 2023 14:43:31 +0000 (07:43 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 25 Mar 2023 23:31:44 +0000 (16:31 -0700)
commit17b704f1c0fb9150551567cb7a5414fb761b57ea
tree04a5576c88cec987b31d6ebdb549ce893367174d
parent6c7c8fb863f7c3137ce5fc4b435af3891083abeb
drm/msm/gem: Avoid obj lock in job_run()

Now that everything that controls which LRU an obj lives in *except* the
backing pages is protected by the LRU lock, add a special path to unpin
in the job_run() path, where we are assured that we already have backing
pages and will not be racing against eviction (because the GEM object's
dma_resv contains the fence that will be signaled when the submit/job
completes).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/527845/
Link: https://lore.kernel.org/r/20230320144356.803762-10-robdclark@gmail.com
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_ringbuffer.c