[PATCH v2 0/6] DRM IDR to Xarray conversions

From: Sidhartha Kumar
Date: Thu Aug 21 2025 - 11:02:14 EST


From: Sidhartha <sidhartha.kumar@xxxxxxxxxx>

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/20250818190046.157962-1-sidhartha.kumar@xxxxxxxxxx/

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(-)

--
2.43.0