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

Commit 3d503d5b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa4: Disable uc monitoring stats for holi target"

parents 08bb775b 8cb85b52
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -270,7 +270,8 @@ static void ipa3_start_gsi_debug_monitor(u32 clnt_hdl)

	/* start uC gsi dbg stats monitor */
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
		switch (client_type) {
		case IPA_CLIENT_MHI_PRIME_TETH_PROD:
			gsi_info = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_MHIP];
+6 −3
Original line number Diff line number Diff line
@@ -2115,7 +2115,8 @@ int ipa3_disconnect_gsi_wdi_pipe(u32 clnt_hdl)
	else
		IPADBG("uc_wdi_ctx.stats_notify already null\n");
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7)
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_11)
		ipa3_uc_debug_stats_dealloc(IPA_HW_PROTOCOL_WDI);
	IPADBG("client (ep: %d) disconnected\n", clnt_hdl);

@@ -2510,7 +2511,8 @@ int ipa3_resume_gsi_wdi_pipe(u32 clnt_hdl)
	pcmd_t = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_WDI];
	/* start uC gsi dbg stats monitor */
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
		if (IPA_CLIENT_IS_PROD(ep->client)) {
			pcmd_t->ch_id_info[0].ch_id
				= ep->gsi_chan_hdl;
@@ -2688,7 +2690,8 @@ int ipa3_suspend_gsi_wdi_pipe(u32 clnt_hdl)
	pcmd_t = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_WDI];
	/* stop uC gsi dbg stats monitor */
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
		if (IPA_CLIENT_IS_PROD(ep->client)) {
			pcmd_t->ch_id_info[0].ch_id
				= 0xff;
+2 −1
Original line number Diff line number Diff line
@@ -8347,7 +8347,8 @@ static int __ipa3_stop_gsi_channel(u32 clnt_hdl)

	/* stop uC gsi dbg stats monitor */
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7) {
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_7 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
		switch (client_type) {
		case IPA_CLIENT_MHI_PRIME_TETH_PROD:
			gsi_info = &ipa3_ctx->gsi_info[IPA_HW_PROTOCOL_MHIP];
+2 −1
Original line number Diff line number Diff line
@@ -3186,7 +3186,8 @@ static int rmnet_ipa3_set_data_quota_wifi(struct wan_ioctl_set_data_quota *data)
	IPAWANDBG("iface name %s, quota %lu\n",
		  data->interface_name, (unsigned long) data->quota_mbytes);

	if (ipa3_ctx_get_type(IPA_HW_TYPE) >= IPA_HW_v4_5) {
	if (ipa3_ctx_get_type(IPA_HW_TYPE) >= IPA_HW_v4_5 &&
		ipa3_ctx_get_type(IPA_HW_TYPE) != IPA_HW_v4_11) {
		IPADBG("use ipa-uc for quota\n");
		rc = ipa3_uc_quota_monitor(data->set_quota);
	} else {
+2 −1
Original line number Diff line number Diff line
@@ -737,7 +737,8 @@ static int ipa_test_hw_stats_set_uc_event_ring(void *priv)
	/* set uc event ring */
	IPA_UT_INFO("========set uc event ring ========\n");

	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5) {
	if (ipa3_ctx->ipa_hw_type >= IPA_HW_v4_5 &&
		ipa3_ctx->ipa_hw_type != IPA_HW_v4_11) {
		if (ipa3_ctx->uc_ctx.uc_loaded &&
			!ipa3_ctx->uc_ctx.uc_event_ring_valid) {
			if (ipa3_uc_setup_event_ring()) {