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

Commit 2c6ac670 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Requeue context if dispatcher signaled to stop



Correctly requeue a context on dispatcher->pending list if a cmdbatch
didn't submit because the dispatcher signaled to stop submitting
commands.

CRs-Fixed: 720249
Change-Id: I553e9db139978b6b269255a643087363c28e04bc
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 8a68fd00
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -466,7 +466,7 @@ static int sendcmd(struct adreno_device *adreno_dev,
	mutex_lock(&device->mutex);
	if (adreno_gpu_halt(adreno_dev) != 0) {
		mutex_unlock(&device->mutex);
		return -EINVAL;
		return -EBUSY;
	}

	dispatcher->inflight++;
@@ -629,8 +629,9 @@ static int dispatcher_context_sendcmds(struct adreno_device *adreno_dev,
		 * conditions improve
		 */
		if (ret) {
			ret = adreno_dispatcher_requeue_cmdbatch(drawctxt,
				cmdbatch);
			if (adreno_dispatcher_requeue_cmdbatch(drawctxt,
				cmdbatch))
				ret = -EINVAL;
			break;
		}