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

Commit 196d2b76 authored by Mohammed Javid's avatar Mohammed Javid
Browse files

msm: ipa3: Changes made to mitigate OUT_OF_BUFEER error



New check is added to see if any interrupt pending for a
corresponding channel and continue in loop till interrupt
received successfully. Also increased Stop channel timeout
value.

Change-Id: Ie0e54c1d3b1308f977ebd6ed3a9f560532cb5939
Acked-by: default avatarPraveen Kurapati <pkurapat@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent bdd918fd
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
#define GSI_CMD_TIMEOUT (5*HZ)
#define GSI_START_CMD_TIMEOUT_MS 1000
#define GSI_CMD_POLL_CNT 5
#define GSI_STOP_CMD_TIMEOUT_MS 10
#define GSI_STOP_CMD_TIMEOUT_MS 200
#define GSI_MAX_CH_LOW_WEIGHT 15

#define GSI_RESET_WA_MIN_SLEEP 1000
@@ -153,6 +153,14 @@ static void gsi_channel_state_change_wait(unsigned long chan_hdl,
		gsi_pending_intr = gsi_readl(gsi_ctx->base +
			GSI_EE_n_CNTXT_SRC_GSI_CH_IRQ_OFFS(ee));

		/*
		 * Continue in the loop if a pending interrupt of
		 * corresponding channel is present till an interrupt
		 * is received.
		 */
		if ((gsi_pending_intr >> chan_hdl) & 1)
			poll_cnt = 0;

		GSIDBG("GSI wait on chan_hld=%lu chan=%lu state=%u intr=%u\n",
			chan_hdl,
			ch,