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

Commit b477fc53 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Run the event group after the context is invalidated"

parents f474354a 8e680a1f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -150,6 +150,7 @@ void adreno_drawctxt_invalidate(struct kgsl_device *device,
			KGSL_MEMSTORE_OFFSET(context->id, eoptimestamp),
			drawctxt->timestamp);

	/* Get rid of commands still waiting in the queue */
	while (drawctxt->cmdqueue_head != drawctxt->cmdqueue_tail) {
		struct kgsl_cmdbatch *cmdbatch =
			drawctxt->cmdqueue[drawctxt->cmdqueue_head];
@@ -170,6 +171,9 @@ void adreno_drawctxt_invalidate(struct kgsl_device *device,

	mutex_unlock(&drawctxt->mutex);

	/* Make sure all "retired" events are processed */
	kgsl_process_event_group(device, &context->events);

	/* Give the bad news to everybody waiting around */
	wake_up_all(&drawctxt->waiting);
	wake_up_all(&drawctxt->wq);