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

Commit 50b38b14 authored by Harshdeep Dhatt's avatar Harshdeep Dhatt
Browse files

msm: kgsl: Decouple zap shader and content protection on a6x



The two features work independently from each other so decouple
them and we will not likely have any a6x targets without a secure
mmu.

Change-Id: I43f602b7a5f6b471b945c430976232808e5fdfc4
Signed-off-by: default avatarHarshdeep Dhatt <hdhatt@codeaurora.org>
parent 6cfce279
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -1031,13 +1031,6 @@ 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) {
		zap = subsystem_get(adreno_dev->gpucore->zap_name);