drm/msm: Switch idr_lock to spinlock
authorRob Clark <robdclark@chromium.org>
Mon, 20 Mar 2023 14:43:32 +0000 (07:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:24:06 +0000 (10:24 +0200)
commit3398e8b2833f3fdf526c3a4fdd149924704b4c40
treefcb158706344bc76b09532b84ac9d3072764e13d
parentd722661362ca473670e45341286d9bb9531f6a5e
drm/msm: Switch idr_lock to spinlock

[ Upstream commit e4f020c6a05db73eac49b7c3b3650251be374200 ]

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
Stable-dep-of: 1b5d0ddcb34a ("drm/msm: Disallow submit with fence id 0")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_gem_submit.c
drivers/gpu/drm/msm/msm_gpu.h
drivers/gpu/drm/msm/msm_submitqueue.c