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

Commit 39242b7d authored by Suman Tatiraju's avatar Suman Tatiraju
Browse files

msm: kgsl: Reorder SP/TP and PPD initialization



Enable SP/TP and PPD after loading GPU microcode. This is to make
sure no microcode memory is accessed till it is fully loaded.

Change-Id: Id6a2c2de00459285e4808418afefb75bf65002fd
Signed-off-by: default avatarSuman Tatiraju <sumant@codeaurora.org>
parent 3511ae2a
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1144,6 +1144,11 @@ static int _adreno_start(struct adreno_device *adreno_dev)

	adreno_perfcounter_start(adreno_dev);

	status = adreno_ringbuffer_cold_start(adreno_dev);

	if (status)
		goto error_irq_off;

	/* Enable h/w power collapse feature */
	if (gpudev->enable_pc)
		gpudev->enable_pc(adreno_dev);
@@ -1152,10 +1157,6 @@ static int _adreno_start(struct adreno_device *adreno_dev)
	if (gpudev->enable_ppd)
		gpudev->enable_ppd(adreno_dev);

	status = adreno_ringbuffer_cold_start(adreno_dev);
	if (status)
		goto error_irq_off;

	/* Start the dispatcher */
	adreno_dispatcher_start(device);