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

Commit e1391978 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Move preemption start to ringbuffer start



We should not be doing anything specific to preemption like
accessing preemption buffers in a6xx_start as a6xx_start is
called for both eCP and non eCP paths.

Change-Id: Ia7f9e7a54bcbbb6365ddd1f621e1c582faabd962
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 840f7b8a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -539,8 +539,6 @@ static void a6xx_start(struct adreno_device *adreno_dev)
		patch_reglist = true;
	}

	a6xx_preemption_start(adreno_dev);

	/*
	 * We start LM here because we want all the following to be up
	 * 1. GX HS
@@ -794,6 +792,8 @@ static int a6xx_rb_start(struct adreno_device *adreno_dev)
	uint64_t addr;
	int ret;

	a6xx_preemption_start(adreno_dev);

	addr = SCRATCH_RPTR_GPU_ADDR(device, rb->id);

	adreno_writereg64(adreno_dev, ADRENO_REG_CP_RB_RPTR_ADDR_LO,