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

2025-09-20 Thread Sidhartha Kumar
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

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

2025-08-26 Thread Sidhartha Kumar
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 simplifi

[PATCH v3 3/6] drm: Convert syncobj_idr to XArray

2025-08-26 Thread Sidhartha Kumar
From: Matthew Wilcox From: Matthew Wilcox Remove syncobj_table_lock by converting the syncobj_idr to an XArray. handle and syncobj is not modified in this change so the indentifier value remains the same. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm

[PATCH v3 6/6] drm: Convert tile_idr to XArray

2025-08-26 Thread Sidhartha Kumar
From: Matthew Wilcox From: Matthew Wilcox Convert tile_idr to an Xarray. tg->id and tg are not modified so the indentifiers are unchanged. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_connector.c | 26 ++ drivers/gpu/

[PATCH v3 5/6] drm: Convert lessee_idr to XArray

2025-08-26 Thread Sidhartha Kumar
From: Matthew Wilcox From: Matthew Wilcox Part of the mass conversion of IDR users to the XArray API. lessee_id and lessee are not modified so the indentifiers are unchanged. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_auth.c | 4 +--- drivers/gpu

[PATCH v3 1/6] drm: Convert aux_idr to XArray

2025-08-26 Thread Sidhartha Kumar
From: Matthew Wilcox From: Matthew Wilcox Remove aux_idr_mutex by converting aux_idr to an XArray. aux_xa->index and aux_dev is not modified so the indentifier value is unchanged. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/display/drm_dp_aux_dev.c |

[PATCH v3 2/6] drm: Convert object_name_idr to XArray

2025-08-26 Thread Sidhartha Kumar
nchanged after this change. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_debugfs.c | 19 ++- drivers/gpu/drm/drm_gem.c | 11 +-- include/drm/drm_device.h | 4 ++-- 3 files changed, 13 insertions(+), 21 deletions(-) diff

[PATCH v3 4/6] drm: Convert magic_map to XArray

2025-08-26 Thread Sidhartha Kumar
From: Matthew Wilcox From: Matthew Wilcox Part of the mass conversion of IDR users to the XArray API. file_priv->master->magic_map, auth->magic, and file_priv->magic so the indentifiers are unchanged. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- dri

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

2025-08-25 Thread Sidhartha Kumar
On 8/25/25 2:52 AM, Jani Nikula wrote: On Fri, 22 Aug 2025, Matthew Wilcox wrote: On Fri, Aug 22, 2025 at 10:36:24AM -0400, Sidhartha Kumar wrote: On 8/22/25 8:33 AM, Jani Nikula wrote: It would be great if the commit messages mentioned whether the identifiers are expected to remain the same

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

2025-08-22 Thread Sidhartha Kumar
On 8/22/25 8:33 AM, Jani Nikula wrote: On Thu, 21 Aug 2025, Sidhartha Kumar wrote: From: Sidhartha 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. T

[PATCH v2 2/6] drm: Convert object_name_idr to XArray

2025-08-21 Thread Sidhartha Kumar
From: Matthew Wilcox It's not possible to replace object_name_lock as it protects more code than should be reasonably be run under a spinlock, so the xa_lock is nested under the object_name_lock. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_debu

[PATCH v2 6/6] drm: Convert tile_idr to XArray

2025-08-21 Thread Sidhartha Kumar
From: Matthew Wilcox Convert tile_idr to an Xarray. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_connector.c | 26 ++ drivers/gpu/drm/drm_mode_config.c | 3 +-- include/drm/drm_mode_config.h | 12 ++-- 3 files

[PATCH v2 4/6] drm: Convert magic_map to XArray

2025-08-21 Thread Sidhartha Kumar
From: Matthew Wilcox Part of the mass conversion of IDR users to the XArray API. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_auth.c | 18 -- include/drm/drm_auth.h | 5 ++--- 2 files changed, 10 insertions(+), 13 deletions

[PATCH v2 3/6] drm: Convert syncobj_idr to XArray

2025-08-21 Thread Sidhartha Kumar
From: Matthew Wilcox Remove syncobj_table_lock by converting the syncobj_idr to an XArray. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_syncobj.c | 64 +++ include/drm/drm_file.h| 6 ++-- 2 files changed, 22

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

2025-08-21 Thread Sidhartha Kumar
From: Sidhartha 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 f

[PATCH v2 5/6] drm: Convert lessee_idr to XArray

2025-08-21 Thread Sidhartha Kumar
From: Matthew Wilcox Part of the mass conversion of IDR users to the XArray API. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_auth.c | 4 +--- drivers/gpu/drm/drm_lease.c | 15 ++- include/drm/drm_auth.h | 4 ++-- 3 files changed, 9

[PATCH v2 1/6] drm: Convert aux_idr to XArray

2025-08-21 Thread Sidhartha Kumar
From: Matthew Wilcox Remove aux_idr_mutex by converting aux_idr to an XArray. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/display/drm_dp_aux_dev.c | 38 ++-- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/drivers/gpu

[PATCH 1/6] drm: Convert aux_idr to XArray

2025-08-18 Thread Sidhartha Kumar
From: Matthew Wilcox Remove aux_idr_mutex by converting aux_idr to an XArray. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/display/drm_dp_aux_dev.c | 38 ++-- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/drivers/gpu

[PATCH 3/6] drm: Convert syncobj_idr to XArray

2025-08-18 Thread Sidhartha Kumar
From: Matthew Wilcox Remove syncobj_table_lock by converting the syncobj_idr to an XArray. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_syncobj.c | 64 +++ include/drm/drm_file.h| 6 ++-- 2 files changed, 22

[PATCH 5/6] drm: Convert lessee_idr to XArray

2025-08-18 Thread Sidhartha Kumar
From: Matthew Wilcox Part of the mass conversion of IDR users to the XArray API. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_auth.c | 4 +--- drivers/gpu/drm/drm_lease.c | 15 ++- include/drm/drm_auth.h | 4 ++-- 3 files changed, 9

[PATCH 6/6] drm: Convert tile_idr to XArray

2025-08-18 Thread Sidhartha Kumar
From: Matthew Wilcox Convert tile_idr to an Xarray. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_connector.c | 26 ++ drivers/gpu/drm/drm_mode_config.c | 3 +-- include/drm/drm_mode_config.h | 12 ++-- 3 files

[PATCH 0/6] DRM IDR to Xarray conversions

2025-08-18 Thread Sidhartha Kumar
From: Sidhartha 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 drm-next-202

[PATCH 2/6] drm: Convert object_name_idr to XArray

2025-08-18 Thread Sidhartha Kumar
From: Matthew Wilcox It's not possible to replace object_name_lock as it protects more code than should be reasonably be run under a spinlock, so the xa_lock is nested under the object_name_lock. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_debu

[PATCH 4/6] drm: Convert magic_map to XArray

2025-08-18 Thread Sidhartha Kumar
From: Matthew Wilcox Part of the mass conversion of IDR users to the XArray API. Signed-off-by: Matthew Wilcox Signed-off-by: Sidhartha Kumar --- drivers/gpu/drm/drm_auth.c | 18 -- include/drm/drm_auth.h | 5 ++--- 2 files changed, 10 insertions(+), 13 deletions