diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3346-drm-dp-Use-non-cyclic-idr.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3346-drm-dp-Use-non-cyclic-idr.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3346-drm-dp-Use-non-cyclic-idr.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3346-drm-dp-Use-non-cyclic-idr.patch new file mode 100644 index 00000000..a6f157fa --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3346-drm-dp-Use-non-cyclic-idr.patch @@ -0,0 +1,36 @@ +From 7c14e97f165f19fd3a48876c9136df2405ee5bb8 Mon Sep 17 00:00:00 2001 +From: Leo Li <sunpeng.li@amd.com> +Date: Thu, 11 Apr 2019 14:07:25 -0400 +Subject: [PATCH 3346/4256] drm/dp: Use non-cyclic idr +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +In preparation for adding aux devices for DP MST, make the IDR +non-cyclic. That way, hotplug cycling MST devices won't needlessly +increment the minor version index. + +Signed-off-by: Leo Li <sunpeng.li@amd.com> +Reviewed-by: Lyude Paul <lyude@redhat.com> +Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> +--- + drivers/gpu/drm/drm_dp_aux_dev.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/drm_dp_aux_dev.c b/drivers/gpu/drm/drm_dp_aux_dev.c +index 0e4f25d63fd2..6d8461105ed4 100644 +--- a/drivers/gpu/drm/drm_dp_aux_dev.c ++++ b/drivers/gpu/drm/drm_dp_aux_dev.c +@@ -80,8 +80,7 @@ static struct drm_dp_aux_dev *alloc_drm_dp_aux_dev(struct drm_dp_aux *aux) + kref_init(&aux_dev->refcount); + + mutex_lock(&aux_idr_mutex); +- index = idr_alloc_cyclic(&aux_idr, aux_dev, 0, DRM_AUX_MINORS, +- GFP_KERNEL); ++ index = idr_alloc(&aux_idr, aux_dev, 0, DRM_AUX_MINORS, GFP_KERNEL); + mutex_unlock(&aux_idr_mutex); + if (index < 0) { + kfree(aux_dev); +-- +2.17.1 + |