Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9729bb8 authored by Adrian Salido-Moreno's avatar Adrian Salido-Moreno
Browse files

msm: mdss: release rotator fence on kickoff failure



When rotator fails, the rotator fences will never be signaled through
rotator completion. For this case still need to release the sync fences
as the source buffers will no longer be used for this session.

Change-Id: Idfb2a4b042e89f28d19b10db8e77e06bebad8459
Signed-off-by: default avatarAdrian Salido-Moreno <adrianm@codeaurora.org>
parent f790b88c
Loading
Loading
Loading
Loading
+5 −8
Original line number Original line Diff line number Diff line
@@ -302,18 +302,15 @@ static void mdss_mdp_rotator_commit_wq_handler(struct work_struct *work)
	mutex_lock(&rotator_lock);
	mutex_lock(&rotator_lock);


	ret = mdss_mdp_rotator_queue_helper(rot);
	ret = mdss_mdp_rotator_queue_helper(rot);
	if (ret) {
	if (ret)
		pr_err("rotator queue failed\n");
		pr_err("rotator queue failed\n");
		mutex_unlock(&rotator_lock);
		return;
	}


	if (rot->rot_sync_pt_data) {
		atomic_inc(&rot->rot_sync_pt_data->commit_cnt);
		atomic_inc(&rot->rot_sync_pt_data->commit_cnt);

	if (rot->rot_sync_pt_data)
		mdss_fb_signal_timeline(rot->rot_sync_pt_data);
		mdss_fb_signal_timeline(rot->rot_sync_pt_data);
	else
	} else {
		pr_err("rot_sync_pt_data is NULL\n");
		pr_err("rot_sync_pt_data is NULL\n");
	}


	mutex_unlock(&rotator_lock);
	mutex_unlock(&rotator_lock);
}
}