diff options
author | Rob Clark <robdclark@chromium.org> | 2022-08-02 18:51:36 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2022-08-27 19:32:44 +0300 |
commit | 05ba44b3704e2115251c340fc72db609a0b97f3b (patch) | |
tree | 3aa23a174d9cafd82adb251d9013a7eff660d319 /drivers/gpu/drm/msm/msm_submitqueue.c | |
parent | fc1dd04c3841c45e2bc811ed96af62af5fc77911 (diff) | |
download | linux-05ba44b3704e2115251c340fc72db609a0b97f3b.tar.xz |
drm/msm: Split out idr_lock
Otherwise if we hit reclaim pinning objects in the submit path, we'll be
blocking retire_worker trying to free a submit.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/496116/
Link: https://lore.kernel.org/r/20220802155152.1727594-4-robdclark@gmail.com
Diffstat (limited to 'drivers/gpu/drm/msm/msm_submitqueue.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_submitqueue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_submitqueue.c b/drivers/gpu/drm/msm/msm_submitqueue.c index f486a3cd4e55..c6929e205b51 100644 --- a/drivers/gpu/drm/msm/msm_submitqueue.c +++ b/drivers/gpu/drm/msm/msm_submitqueue.c @@ -200,6 +200,7 @@ int msm_submitqueue_create(struct drm_device *drm, struct msm_file_private *ctx, *id = queue->id; idr_init(&queue->fence_idr); + mutex_init(&queue->idr_lock); mutex_init(&queue->lock); list_add_tail(&queue->node, &ctx->submitqueues); |