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

Commit e8939c7e authored by Harshdeep Dhatt's avatar Harshdeep Dhatt Committed by Jonathan Wicks
Browse files

msm: kgsl: Trigger preemption from preemption complete interrupt



If a high priority context submits while preemption to a lower context
is underway, then preemption to higher context is not  triggered until
either we get a GPU command complete interrupt or another workload
from the higher context is submitted. To avoid this latency,
trigger preemption from the preemption complete interrupt.

CRs-Fixed: 1058401
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
Change-Id: I0a05df94e7bdd5daadfa0713371a595a06b7bda7
parent 4031d505
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -311,6 +311,8 @@ void a5xx_preempt_callback(struct adreno_device *adreno_dev, int bit)
		adreno_dev->cur_rb->dispatch_q.expires);

	adreno_set_preempt_state(adreno_dev, ADRENO_PREEMPT_NONE);

	a5xx_preemption_trigger(adreno_dev);
}

void a5xx_preemption_schedule(struct adreno_device *adreno_dev)