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: Harshdeep Dhatt <hdhatt@codeaurora.org>
Change-Id: I0a05df94e7bdd5daadfa0713371a595a06b7bda7
This commit is contained in:
Harshdeep Dhatt 2016-06-29 17:14:21 -06:00
parent 28352998de
commit 3a206e4c0f

View file

@ -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)