Files
linux/drivers/gpu/drm/xe
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
..
2024-05-09 21:28:25 +02:00
2025-10-15 22:48:54 -07:00
2025-10-21 13:23:16 +02:00
2025-11-19 12:26:06 +01:00
2025-06-27 14:52:31 -07:00
2025-07-01 13:58:50 -07:00
2025-09-02 22:23:08 -07:00
2025-11-21 08:55:08 +10:00
2024-05-13 21:36:50 +02:00
2025-06-27 14:52:31 -07:00
2024-05-22 12:03:55 +02:00
2025-10-23 07:11:38 -07:00
2025-11-12 08:57:27 -08:00
2025-01-27 08:54:06 -08:00
2025-09-23 08:07:05 -07:00
2025-02-03 11:51:26 -08:00
2024-05-13 21:36:52 +02:00
2025-11-04 09:04:29 -08:00
2025-06-27 14:52:31 -07:00
2025-07-28 10:22:28 -04:00
2025-09-15 17:51:07 +10:00