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

Commit de679dc6 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: ipa3: fix holb sequence for SSR



The correct sequence for enabling HOLB drop is first
to suspend the pipe and then to HOLB drop.

Change-Id: I78b7b268eec230a4993e446bd90846f800364e06
CRs-Fixed: 2141518
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent ab2cc234
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -2116,6 +2116,12 @@ static void ipa3_q6_avoid_holb(void)
			if (ep_idx == -1)
				continue;

			/* from IPA 4.0 pipe suspend is not supported */
			if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_0)
				ipahal_write_reg_n_fields(
				IPA_ENDP_INIT_CTRL_n,
				ep_idx, &ep_suspend);

			/*
			 * ipa3_cfg_ep_holb is not used here because we are
			 * setting HOLB on Q6 pipes, and from APPS perspective
@@ -2128,12 +2134,6 @@ static void ipa3_q6_avoid_holb(void)
			ipahal_write_reg_n_fields(
				IPA_ENDP_INIT_HOL_BLOCK_EN_n,
				ep_idx, &ep_holb);

			/* from IPA 4.0 pipe suspend is not supported */
			if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_0)
				ipahal_write_reg_n_fields(
					IPA_ENDP_INIT_CTRL_n,
					ep_idx, &ep_suspend);
		}
	}
}