[Intel-xe] [PATCH] drm/xe: Add missing spin_lock_inits for display

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Fri Apr 14 15:00:25 UTC 2023


We have gained 2 locks, better init those.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/xe/xe_display.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
index aae362f27c77..719a64005e29 100644
--- a/drivers/gpu/drm/xe/xe_display.c
+++ b/drivers/gpu/drm/xe/xe_display.c
@@ -91,6 +91,8 @@ int xe_display_create(struct xe_device *xe)
 	int err;
 
 	spin_lock_init(&xe->display.fb_tracking.lock);
+	spin_lock_init(&xe->display.dkl.phy_lock);
+	spin_lock_init(&xe->display.wm.dsparb_lock);
 
 	xe->display.hotplug.dp_wq = alloc_ordered_workqueue("xe-dp", 0);
 
-- 
2.34.1



More information about the Intel-xe mailing list