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

Sidhartha Kumar posted 6 patches 1 month, 1 week ago
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(-)
[PATCH v3 0/6] DRM IDR to Xarray conversions
Posted by Sidhartha Kumar 1 month, 1 week ago
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/20250818190046.157962-1-sidhartha.kumar@oracle.com/
[2]: https://lore.kernel.org/dri-devel/20250821145429.305526-1-sidhartha.kumar@oracle.com/

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
Re: [PATCH v3 0/6] DRM IDR to Xarray conversions
Posted by Sidhartha Kumar 3 weeks, 2 days ago
On 8/26/25 11:48 AM, Sidhartha Kumar wrote:
> v2[2] -> v3:
>    - indicate the indentifiers do not change in the
>      commit mesage per Jani Nikula
> 

Just a friendly ping to check if this series needs anything else before 
landing.

Thanks,
Sid

> 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@oracle.com/
> [2]: https://lore.kernel.org/dri-devel/20250821145429.305526-1-sidhartha.kumar@oracle.com/
> 
> 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(-)
>