diff options
| author | Rob Clark <[email protected]> | 2022-08-02 15:51:36 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2022-08-27 16:32:44 +0000 |
| commit | 05ba44b3704e2115251c340fc72db609a0b97f3b (patch) | |
| tree | 3aa23a174d9cafd82adb251d9013a7eff660d319 /drivers/gpu/drm/msm/msm_submitqueue.c | |
| parent | drm/msm: Small submit cleanup (diff) | |
| download | kernel-05ba44b3704e2115251c340fc72db609a0b97f3b.tar.gz kernel-05ba44b3704e2115251c340fc72db609a0b97f3b.zip | |
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 <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/496116/
Link: https://lore.kernel.org/r/[email protected]
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); |
