]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Convert vm idr to xarray
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Jan 2020 16:15:31 +0000 (16:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Jan 2020 17:17:41 +0000 (17:17 +0000)
commit3bc5c33c6ddaa46bdd79ea7479c353335781480d
treeca76d1033236f3039de761aa5d263591976308be
parent61a4148cb94b95ab94562e3d21d32b587b0f70c9
drm/i915/gem: Convert vm idr to xarray

Replace the vm_idr + vm_idr_mutex to an XArray. The XArray data
structure is now used to implement IDRs, and provides its own locking.
We can simply remove the IDR wrapper and in the process also remove our
extra mutex.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200122161531.508903-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c
drivers/gpu/drm/i915/i915_drv.h