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

Commit f247162b 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: Reset busy data after soft reset"

parents 1588ccfb f7d38697
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2200,6 +2200,11 @@ static int adreno_soft_reset(struct kgsl_device *device)
	/* Reset the GPU */
	_soft_reset(adreno_dev);

	/* Clear the busy_data stats - we're starting over from scratch */
	adreno_dev->busy_data.gpu_busy = 0;
	adreno_dev->busy_data.vbif_ram_cycles = 0;
	adreno_dev->busy_data.vbif_starved_ram = 0;

	/* Set the page table back to the default page table */
	adreno_ringbuffer_set_global(adreno_dev, 0);
	kgsl_mmu_set_pt(&device->mmu, device->mmu.defaultpagetable);