Skip to content

DRM IDR to Xarray conversions

Sidhartha Kumar dri-devel lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 1 replyIn review
  2. v26 patches 5 repliesSuperseded
  3. v16 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm: Convert aux_idr to XArraydrivers/gpu/drm/display/drm_dp_aux_dev.c+15 -230 replies
2/6drm: Convert object_name_idr to XArraydrivers/gpu/drm/drm_debugfs.c drivers/gpu/drm/drm_gem.c include/drm/drm_device.h+13 -210 replies
3/6drm: Convert syncobj_idr to XArraydrivers/gpu/drm/drm_syncobj.c include/drm/drm_file.h+22 -480 replies
4/6drm: Convert magic_map to XArraydrivers/gpu/drm/drm_auth.c include/drm/drm_auth.h+10 -130 replies
5/6drm: Convert lessee_idr to XArraydrivers/gpu/drm/drm_auth.c drivers/gpu/drm/drm_lease.c include/drm/drm_auth.h+9 -140 replies
6/6drm: Convert tile_idr to XArraydrivers/gpu/drm/drm_connector.c drivers/gpu/drm/drm_mode_config.c include/drm/drm_mode_config.h+17 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/6] DRM IDR to Xarray conversions

v2[2] -> v3:
- indicate the indentifiers do not change in the commit mesage per Jani Nikula

v1[1] -> v2:
- rebase onto latest mainline v6.17-rc2
- fix build error in patch 1 per Intel Test Robot

This series is part of a project to depcrecate the IDR in favor of the Xarray. This simplifies the code as locking is handled by the Xarray internally and removes the need for a seperate mutex to proect the IDR.

The patches are from this tree and have been rebased to v6.17-rc2
https://git.infradead.org/?p=users/willy/xarray.git;a=shortlog;h=refs/heads/xarray-conv

The series has been compiled and tested with drivers/gpu/drm/tests/.kunitconfig and passes all tests.

[15:22:04] Testing complete. Ran 608 tests: passed: 608
[15:22:04] Elapsed time: 34.792s total, 3.086s configuring, 31.541s building, 0.141s running

[1]: https://lore.kernel.org/dri-devel/[email protected]/
[2]: https://lore.kernel.org/dri-devel/[email protected]/

Matthew Wilcox (6):
drm: Convert aux_idr to XArray
drm: Convert object_name_idr to XArray
drm: Convert syncobj_idr to XArray
drm: Convert magic_map to XArray
drm: Convert lessee_idr to XArray
drm: Convert tile_idr to XArray

 drivers/gpu/drm/display/drm_dp_aux_dev.c | 38 ++++++--------
 drivers/gpu/drm/drm_auth.c               | 22 ++++----
 drivers/gpu/drm/drm_connector.c          | 26 ++++------
 drivers/gpu/drm/drm_debugfs.c            | 19 +++----
 drivers/gpu/drm/drm_gem.c                | 11 ++--
 drivers/gpu/drm/drm_lease.c              | 15 +++---
 drivers/gpu/drm/drm_mode_config.c        |  3 +-
 drivers/gpu/drm/drm_syncobj.c            | 64 ++++++++----------------
 include/drm/drm_auth.h                   |  9 ++--
 include/drm/drm_device.h                 |  4 +-
 include/drm/drm_file.h                   |  6 +--
 include/drm/drm_mode_config.h            | 12 ++---
 12 files changed, 86 insertions(+), 143 deletions(-)
Signature · 1 line
2.43.0