mirror-linux/drivers/gpu/drm/msm
Alice Ryhl 9bf4ca1e69 drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode
In commit 9ce4aef9a5 ("drm/gpuvm: take GEM lock inside
drm_gpuvm_bo_obtain_prealloc()") we update
drm_gpuvm_bo_obtain_prealloc() to take locks internally, which means
that it's only usable in immediate mode.

In this commit, we notice that drm_gpuvm_bo_obtain() requires you to use
staged mode. This means that we now have one variant of obtain for each
mode you might use gpuvm in.

To reflect this information, we add a warning about using it in
immediate mode, and to make the distinction clearer we rename the method
with a _locked() suffix so that it's clear that it requires the caller
to take the locks.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20260108-gpuvm-rust-v2-2-dbd014005a0b@google.com
[ Slightly reword commit message to refer to commit 9ce4aef9a5
  ("drm/gpuvm: take GEM lock inside drm_gpuvm_bo_obtain_prealloc()").
  - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-01-08 18:05:16 +01:00
..
adreno drm/msm/a8xx: Add support for Adreno X2-85 GPU 2025-11-18 09:04:13 -08:00
disp drm-next for 6.19-rc1: 2025-12-04 08:53:30 -08:00
dp drm/bridge: add connector argument to .hpd_notify callback 2025-12-25 00:22:13 +02:00
dsi
hdmi
registers drm/msm/adreno: Introduce A8x GPU Support 2025-11-18 09:04:01 -08:00
.gitignore
Kconfig
Makefile drm/msm/adreno: Introduce A8x GPU Support 2025-11-18 09:04:01 -08:00
NOTES
msm_atomic.c
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_debugfs.c
msm_debugfs.h
msm_drv.c
msm_drv.h
msm_dsc_helper.h
msm_fb.c
msm_fbdev.c drm/fb-helper: Allocate and release fb_info in single place 2025-11-25 11:02:43 +01:00
msm_fence.c
msm_fence.h
msm_gem.c Linux 6.18-rc6 2025-11-21 08:55:08 +10:00
msm_gem.h drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode 2026-01-08 18:05:16 +01:00
msm_gem_prime.c
msm_gem_shrinker.c
msm_gem_submit.c
msm_gem_vma.c drm/gpuvm: drm_gpuvm_bo_obtain() requires lock and staged mode 2026-01-08 18:05:16 +01:00
msm_gpu.c drm-next for 6.19-rc1: 2025-12-04 08:53:30 -08:00
msm_gpu.h
msm_gpu_devfreq.c
msm_gpu_trace.h
msm_gpu_tracepoints.c
msm_io_utils.c
msm_iommu.c
msm_kms.c
msm_kms.h
msm_mdss.c drm/msm: mdss: Add QCS8300 support 2025-11-14 16:59:27 +02:00
msm_mmu.h
msm_perf.c
msm_rd.c
msm_ringbuffer.c
msm_ringbuffer.h
msm_submitqueue.c
msm_syncobj.c
msm_syncobj.h