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

Commit ba7ba4ea authored by Krishna Manikandan's avatar Krishna Manikandan
Browse files

msm: mdss: Ensure mdp splash cleanup before initiating rotation request



If rotation request comes when MDP is operating on physical address
then fail the request such that composition can fall back onto GPU.
Allow HW rotation when MDP switches to Virtual address access.

Change-Id: Id8762a011ab3d991527a87cb70cd48877820792f
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent 4439da13
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2151,6 +2151,12 @@ static int mdss_rotator_handle_request(struct mdss_rot_mgr *mgr,
	struct mdss_rot_entry_container *req = NULL;
	int size, ret;
	uint32_t req_count;
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();

	if (mdata->handoff_pending) {
		pr_err("Rotator request failed. Handoff pending\n");
		return -EPERM;
	}

	if (mdss_get_sd_client_cnt()) {
		pr_err("rot request not permitted during secure display session\n");