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

Commit 3e0fd3eb authored by Sunil Khatri's avatar Sunil Khatri Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Do not invoke loading of GPU ZAP shader



Do not invoke GPU ZAP shader loading if secure context
is not enabled on a target.

Change-Id: I6509e5c37ae45f1486da6af7f60da055c5f080c2
Signed-off-by: default avatarSunil Khatri <sunilkh@codeaurora.org>
parent 9b0f7eab
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2225,6 +2225,13 @@ static int a5xx_microcode_load(struct adreno_device *adreno_dev)
	kgsl_regwrite(device, A5XX_CP_PFP_INSTR_BASE_HI,
				upper_32_bits(gpuaddr));

	/*
	 * Do not invoke to load zap shader if MMU does
	 * not support secure mode.
	 */
	if (!device->mmu.secured)
		return 0;

	/*
	 * Resume call to write the zap shader base address into the
	 * appropriate register,
+7 −0
Original line number Diff line number Diff line
@@ -853,6 +853,13 @@ static int a6xx_microcode_load(struct adreno_device *adreno_dev)
	kgsl_regwrite(device, A6XX_CP_SQE_INSTR_BASE_HI,
				upper_32_bits(gpuaddr));

	/*
	 * Do not invoke to load zap shader if MMU does
	 * not support secure mode.
	 */
	if (!device->mmu.secured)
		return 0;

	/* Load the zap shader firmware through PIL if its available */
	if (adreno_dev->gpucore->zap_name && !adreno_dev->zap_loaded) {
		/*