drm/i915/guc: Remove usage of the deprecated ida_simple_xx() API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 14 Jan 2024 15:15:34 +0000 (16:15 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Sun, 14 Apr 2024 19:09:18 +0000 (15:09 -0400)
commit2af231e1b8f374895d5d6db2517804c4848d3161
tree155b8488a2452dc5a02839e482301432422d87bc
parent3563d855312acedcd445a3767f0cb07906f1c26f
drm/i915/guc: Remove usage of the deprecated ida_simple_xx() API

ida_alloc() and ida_free() should be preferred to the deprecated
ida_simple_get() and ida_simple_remove().

Note that the upper limit of ida_simple_get() is exclusive, but the one of
ida_alloc_range() is inclusive. So a -1 has been added when needed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7108c1871c6cb08d403c4fa6534bc7e6de4cb23d.1705245316.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c