Browse Source

msm: eva: Init fence queue before its use

Fence queue could be used during SSR, which may happen right after
session is created. Relocate fence queue init to the point before
session creation becomes visible to SSR handling.

Change-Id: Ie21537383b44bbdf40d87af434df0e55a677a85d
Signed-off-by: George Shen <[email protected]>
George Shen 2 năm trước cách đây
mục cha
commit
efdc66a282
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      msm/eva/msm_cvp_core.c

+ 1 - 2
msm/eva/msm_cvp_core.c

@@ -219,6 +219,7 @@ void *msm_cvp_open(int core_id, int session_type, struct task_struct *task)
 
 	msm_cvp_session_init(inst);
 
+	__init_fence_queue(inst);
 	mutex_lock(&core->lock);
 	mutex_lock(&core->clk_lock);
 	list_add_tail(&inst->list, &core->instances);
@@ -226,8 +227,6 @@ void *msm_cvp_open(int core_id, int session_type, struct task_struct *task)
 	mutex_unlock(&core->clk_lock);
 	mutex_unlock(&core->lock);
 
-	__init_fence_queue(inst);
-
 	rc = __init_session_queue(inst);
 	if (rc)
 		goto fail_init;