]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Simplify locking in new_vma
authorMatthew Brost <matthew.brost@intel.com>
Tue, 18 Jun 2024 00:38:59 +0000 (17:38 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 20 Jun 2024 22:33:48 +0000 (15:33 -0700)
commit33991ae8f40a8245f68e8e442766bf9072eaaa2a
treebed0eb971724e99c175a1dac21d45582500a6f93
parent0d39640ace670bccb7f03b2a9e5463ec0885a9ca
drm/xe: Simplify locking in new_vma

Rather than acquiring and dropping the VM / BO dma-resv around
xe_vma_create and do the same thing upon adding preempt fences or an
error, hold these locks through the entire new_vma() function.

v2:
 - Rebase (CI)

Cc: Fei Yang <fei.yang@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jagmeet Randhawa <jagmeet.randhawa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240618003859.3239239-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c