mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "msm: kgsl: Fix snapshot collection after preempt trigger failure"
This commit is contained in:
commit
c704b6fc48
1 changed files with 6 additions and 2 deletions
|
|
@ -374,10 +374,14 @@ void a6xx_preemption_trigger(struct adreno_device *adreno_dev)
|
|||
return;
|
||||
err:
|
||||
/* If fenced write fails, take inline snapshot and trigger recovery */
|
||||
if (!in_interrupt())
|
||||
if (!in_interrupt()) {
|
||||
gmu_core_snapshot(device);
|
||||
adreno_set_gpu_fault(adreno_dev,
|
||||
ADRENO_GMU_FAULT_SKIP_SNAPSHOT);
|
||||
} else {
|
||||
adreno_set_gpu_fault(adreno_dev, ADRENO_GMU_FAULT);
|
||||
}
|
||||
adreno_set_preempt_state(adreno_dev, ADRENO_PREEMPT_NONE);
|
||||
adreno_set_gpu_fault(adreno_dev, ADRENO_GMU_FAULT_SKIP_SNAPSHOT);
|
||||
adreno_dispatcher_schedule(device);
|
||||
/* Clear the keep alive */
|
||||
if (gmu_core_isenabled(device))
|
||||
|
|
|
|||
Loading…
Reference in a new issue