summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_device.c
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2024-09-17 22:44:36 -0700
committerMatthew Brost <matthew.brost@intel.com>2024-09-18 08:46:24 -0700
commit1378c633a3fbfeb344c486ffda0e920a21e62712 (patch)
tree890c9af02a398006b5802740e6d6583b277e9bb9 /drivers/gpu/drm/xe/xe_device.c
parent17d32430361898932678fc6d77e448f260c8a3a8 (diff)
downloadlwn-1378c633a3fbfeb344c486ffda0e920a21e62712.tar.gz
lwn-1378c633a3fbfeb344c486ffda0e920a21e62712.zip
drm/xe: Convert to USM lock to rwsem
Remove contention from GPU fault path for ASID->VM lookup. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240918054436.1971839-1-matthew.brost@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_device.c')
-rw-r--r--drivers/gpu/drm/xe/xe_device.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 4d3c794f134c..38eade07a004 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -335,9 +335,7 @@ struct xe_device *xe_device_create(struct pci_dev *pdev,
init_waitqueue_head(&xe->ufence_wq);
- err = drmm_mutex_init(&xe->drm, &xe->usm.lock);
- if (err)
- goto err;
+ init_rwsem(&xe->usm.lock);
xa_init_flags(&xe->usm.asid_to_vm, XA_FLAGS_ALLOC);