drm/xe: Only try to lock external BOs in VM bind
authorMatthew Brost <matthew.brost@intel.com>
Tue, 28 Mar 2023 01:34:49 +0000 (18:34 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:34:50 +0000 (11:34 -0500)
commit73c09901b0240bb6acdd957330e456e808ec52e6
tree47b7e56b57460571e2849702b365a4c66deb65ae
parent911cd9b3b4e1d10250987864fa19315c772edf9d
drm/xe: Only try to lock external BOs in VM bind

We only need to try to lock a BO if it's external as non-external BOs
share the dma-resv with the already locked VM. Trying to lock
non-external BOs caused an issue (list corruption) in an uncoming patch
which adds bulk LRU move. Since this code isn't needed, remove it.

v2: New commit message, s/mattthew/matthew/

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_vm.c