[PATCH v2 0/3] Add mutex to drm_gem_object.gpuva list

Alice Ryhl posted 3 patches 1 month, 1 week ago
There is a newer version of this series
drivers/gpu/drm/drm_gem.c             |  2 ++
drivers/gpu/drm/drm_gpuvm.c           | 30 +++++++++++++--------------
drivers/gpu/drm/panthor/panthor_gem.c |  3 ---
drivers/gpu/drm/panthor/panthor_gem.h | 12 -----------
drivers/gpu/drm/panthor/panthor_mmu.c | 21 ++++++++++---------
include/drm/drm_gem.h                 | 39 ++++++++++++++---------------------
include/drm/drm_gpuvm.h               | 30 ++++++++++++++++++++++++---
7 files changed, 70 insertions(+), 67 deletions(-)
[PATCH v2 0/3] Add mutex to drm_gem_object.gpuva list
Posted by Alice Ryhl 1 month, 1 week ago
See the first patch for motivation.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
---
Changes in v2:
- Move the mutex_destroy() call to drm_gem_private_object_fini()
- Add a third patch to get rid of the lockdep map.
- Link to v1: https://lore.kernel.org/r/20250814-gpuva-mutex-in-gem-v1-0-e202cbfe6d77@google.com

---
Alice Ryhl (3):
      drm_gem: add mutex to drm_gem_object.gpuva
      panthor: use drm_gem_object.gpuva.lock instead of gpuva_list_lock
      gpuvm: remove gem.gpuva.lock_dep_map

 drivers/gpu/drm/drm_gem.c             |  2 ++
 drivers/gpu/drm/drm_gpuvm.c           | 30 +++++++++++++--------------
 drivers/gpu/drm/panthor/panthor_gem.c |  3 ---
 drivers/gpu/drm/panthor/panthor_gem.h | 12 -----------
 drivers/gpu/drm/panthor/panthor_mmu.c | 21 ++++++++++---------
 include/drm/drm_gem.h                 | 39 ++++++++++++++---------------------
 include/drm/drm_gpuvm.h               | 30 ++++++++++++++++++++++++---
 7 files changed, 70 insertions(+), 67 deletions(-)
---
base-commit: 3f13bcc886fc034113cb75cb32b8d9db1216b846
change-id: 20250814-gpuva-mutex-in-gem-a608ab334e51

Best regards,
-- 
Alice Ryhl <aliceryhl@google.com>