Ver código fonte

msm: ipa: update the MHIP rp moderation threshold for APQ IPA

Set update rp moderation count to 1 which will make IPA host
return buffers to IPA Device side for each buffer copy.

Change-Id: If8795acf5f8b52657bd09a3c100e5b1dc5763025
Signed-off-by: Michael Adisumarta <[email protected]>
Michael Adisumarta 4 anos atrás
pai
commit
77449e0686
1 arquivos alterados com 1 adições e 4 exclusões
  1. 1 4
      drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c

+ 1 - 4
drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c

@@ -1103,9 +1103,6 @@ static int ipa_mpm_connect_mhip_gsi_pipe(enum ipa_client_type mhip_client,
 	gsi_params.evt_scratch.mhip.rp_mod_timer_running = 0;
 	gsi_params.evt_scratch.mhip.fixed_buffer_sz = TRE_BUFF_SIZE;
 
-	if (IPA_CLIENT_IS_PROD(mhip_client))
-		gsi_params.evt_scratch.mhip.rp_mod_threshold = 4;
-
 	/* Channel Params */
 	gsi_params.chan_params.prot = GSI_CHAN_PROT_MHIP;
 	gsi_params.chan_params.dir = IPA_CLIENT_IS_PROD(mhip_client) ?
@@ -2256,7 +2253,7 @@ static int ipa_mpm_mhi_probe_cb(struct mhi_device *mhi_dev,
 		ch->chan_props.ch_ctx.rlen = (IPA_MPM_RING_LEN) *
 			GSI_EVT_RING_RE_SIZE_16B;
 		/* Store Event properties */
-		ch->evt_props.ev_ctx.update_rp_modc = 0;
+		ch->evt_props.ev_ctx.update_rp_modc = 1;
 		ch->evt_props.ev_ctx.update_rp_intmodt = 0;
 		ch->evt_props.ev_ctx.ertype = 1;
 		ch->evt_props.ev_ctx.rlen = (IPA_MPM_RING_LEN) *