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

Commit 230d1add authored by Prakash Kamliya's avatar Prakash Kamliya
Browse files

msm: kgsl: Reduce active context timer from 500ms to 100ms



Reduce the active context time from 500ms to 100ms, 500ms
seems to be a larger value for tracking active contexts
seen for the command queue.

Change-Id: I258e162b179451fa1f7774e0cc29a1e8be56195e
Signed-off-by: default avatarPrakash Kamliya <pkamliya@codeaurora.org>
parent 9d19a050
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static int dispatcher_do_fault(struct kgsl_device *device);
 * @id: ID of the context to add
 *
 * This function is called when a new item is added to a context - this tracks
 * the number of active contexts seen in the last 500ms for the command queue
 * the number of active contexts seen in the last 100ms for the command queue
 */
static void _track_context(struct adreno_dispatcher_cmdqueue *cmdqueue,
		unsigned int id)
@@ -102,7 +102,7 @@ static void _track_context(struct adreno_dispatcher_cmdqueue *cmdqueue,

		/* If the new ID matches the slot update the expire time */
		if (list[i].id == id) {
			list[i].jiffies = jiffies + msecs_to_jiffies(500);
			list[i].jiffies = jiffies + msecs_to_jiffies(100);
			updated = true;
			count++;
			continue;
@@ -127,7 +127,7 @@ static void _track_context(struct adreno_dispatcher_cmdqueue *cmdqueue,
	if (updated == false) {
		int pos = (empty != -1) ? empty : oldest;

		list[pos].jiffies = jiffies + msecs_to_jiffies(500);
		list[pos].jiffies = jiffies + msecs_to_jiffies(100);
		list[pos].id = id;
		count++;
	}
@@ -136,7 +136,7 @@ static void _track_context(struct adreno_dispatcher_cmdqueue *cmdqueue,
}

/*
 *  If only one context has queued in the last 500 millseconds increase
 *  If only one context has queued in the last 100 milliseconds increase
 *  inflight to a high number to load up the GPU. If multiple contexts
 *  have queued drop the inflight for better context switch latency.
 *  If no contexts have queued what are you even doing here?