]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/msm/vma: Avoid lock in VM_BIND fence signaling path
authorRob Clark <robin.clark@oss.qualcomm.com>
Mon, 16 Mar 2026 18:44:42 +0000 (11:44 -0700)
committerRob Clark <robin.clark@oss.qualcomm.com>
Tue, 31 Mar 2026 20:47:27 +0000 (13:47 -0700)
commit8a7023b035355ef5bfa096bd323256fa8abbbc6a
tree445783569b2445d4d0fabfeab8a5c8969289fe97
parent9d24ec327690d8b27190331386319a5c98ec61e7
drm/msm/vma: Avoid lock in VM_BIND fence signaling path

Use msm_gem_unpin_active(), similar to what is used in the GEM_SUBMIT
path.  This avoids needing to hold the obj lock, and the end result is
the same.  (As with GEM_SUBMIT, we know the fence isn't signaled yet.)

Reported-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Fixes: 2e6a8a1fe2b2 ("drm/msm: Add VM_BIND ioctl")
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/712230/
Message-ID: <20260316184442.673558-1-robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_gem_vma.c