summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/msm_gpu.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2023-03-20 17:43:32 +0300
committerRob Clark <robdclark@chromium.org>2023-03-26 02:31:44 +0300
commite4f020c6a05db73eac49b7c3b3650251be374200 (patch)
tree4fc15a84aaf6115b0ba7d01699e93b6be3d81356 /drivers/gpu/drm/msm/msm_gpu.h
parent17b704f1c0fb9150551567cb7a5414fb761b57ea (diff)
downloadlinux-e4f020c6a05db73eac49b7c3b3650251be374200.tar.xz
drm/msm: Switch idr_lock to spinlock
Needed to idr_preload() which returns with preemption disabled. Signed-off-by: Rob Clark <robdclark@chromium.org> Patchwork: https://patchwork.freedesktop.org/patch/527846/ Link: https://lore.kernel.org/r/20230320144356.803762-11-robdclark@gmail.com
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r--drivers/gpu/drm/msm/msm_gpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h
index 0d261bbc09d4..84c616b1ebc0 100644
--- a/drivers/gpu/drm/msm/msm_gpu.h
+++ b/drivers/gpu/drm/msm/msm_gpu.h
@@ -495,7 +495,7 @@ struct msm_gpu_submitqueue {
struct msm_file_private *ctx;
struct list_head node;
struct idr fence_idr;
- struct mutex idr_lock;
+ struct spinlock idr_lock;
struct mutex lock;
struct kref ref;
struct drm_sched_entity *entity;