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

Commit d2a71a56 authored by Ghanim Fodi's avatar Ghanim Fodi Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Fix timeout period of IPA resource add dependency



Currently the timeout period of IPA resource add dependency
is HZ jiffies (1 second). We have seen situations
where this timeout period is too small especially on heavy
loaded system with debug log enabled.
Enlarge the period to 5 HZ jiffies.

Change-Id: Ia678276ed1c3c223b1cedd1e6e8713ca06aefd14
CRs-fixed: 1057013
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent 9698583e
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -267,18 +267,19 @@ static int _ipa_rm_add_dependency_sync(enum ipa_rm_resource_name resource_name,
		time = wait_for_completion_timeout(
				&((struct ipa_rm_resource_cons *)consumer)->
				request_consumer_in_progress,
				HZ);
				HZ * 5);
		result = 0;
		if (!time) {
			IPA_RM_ERR("TIMEOUT waiting for %s GRANT event.",
					ipa_rm_resource_str(depends_on_name));
			result = -ETIME;
		}
		} else {
			IPA_RM_DBG("%s waited for %s GRANT %lu time.\n",
				ipa_rm_resource_str(resource_name),
				ipa_rm_resource_str(depends_on_name),
				time);
		}
	}
	IPA_RM_DBG("EXIT with %d\n", result);

	return result;