mirror-linux/drivers/gpu/drm/amd
Danilo Krummrich c4f306e316
drm/amdgpu: use idr_init_base() to initialize fpriv->bo_list_handles
idr_init_base(), implemented by commit 6ce711f275 ("idr: Make 1-based
IDRs more efficient"), let us set an arbitrary base other than
idr_init(), which uses base 0.

Since, for this IDR, no ID < 1 is ever requested/allocated, using
idr_init_base(&idr, 1) avoids unnecessary tree walks.

Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220701185303.284082-3-dakr@redhat.com
2022-07-28 15:35:55 +01:00
..
acp
amdgpu drm/amdgpu: use idr_init_base() to initialize fpriv->bo_list_handles 2022-07-28 15:35:55 +01:00
amdkfd drm/amdkfd: Asynchronously free smi_client 2022-06-30 15:31:30 -04:00
display drm/plane-helper: Export individual helpers 2022-07-26 18:42:07 +02:00
include drm/amdgpu/mes11: update mes interface for acessing registers 2022-06-30 15:27:36 -04:00
pm Merge tag 'amd-drm-next-5.20-2022-07-05' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2022-07-12 11:07:32 +10:00