drm/xe: Use DRM_GPUVM_RESV_PROTECTED for gpuvm
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 12 Dec 2023 10:01:44 +0000 (11:01 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:46:08 +0000 (11:46 -0500)
commit35705e32b13cf800a47f10844c4f8d1334d411c7
tree48c311aa4b14b0cc1139c4942aab9a268b05c0b8
parent24f947d58fe554cf38507b94a43d373acf1e5e73
drm/xe: Use DRM_GPUVM_RESV_PROTECTED for gpuvm

Use DRM_GPUVM_RESV_PROTECTED to use corse-grained locking for the
evict and external object list.
Since we are already holding the relevant RESV locks, for now at least,
we don't need the fine-grained locking.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231212100144.6833-3-thomas.hellstrom@linux.intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm.c