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

Commit 9f25a0d5 authored by Lynus Vaz's avatar Lynus Vaz Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Enable the perfcounters with a protected mode packet



The perfcounter select registers may be write-protected from GPU
writes. Set the protected mode flag when enabling them through the
GPU path.

Change-Id: I255cc4e95ef36e5cddf559dc32add142ceaddc75
Signed-off-by: default avatarLynus Vaz <lvaz@codeaurora.org>
parent 900cea2a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -719,7 +719,8 @@ static int _perfcounter_enable_default(struct adreno_device *adreno_dev,
		*cmds++ = cp_register(adreno_dev, reg->select, 1);
		*cmds++ = countable;
		/* submit to highest priority RB always */
		ret = adreno_ringbuffer_issuecmds(rb, 0, buf, cmds-buf);
		ret = adreno_ringbuffer_issuecmds(rb, KGSL_CMD_FLAGS_PMODE,
						buf, cmds-buf);
		if (ret)
			return ret;
		/*