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

Commit 9a9008e8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: sde: modify the args for sid switch call"

parents 2e80fd0d 3f69caae
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -298,7 +298,12 @@ static int _sde_kms_scm_call(struct sde_kms *sde_kms, int vmid)

		sec_sid = (uint32_t *) shm.vaddr;
		desc.args[1] = shm.paddr;
		desc.args[2] = shm.size;
		/**
		 * SMMUSecureModeSwitch requires the size to be number of SID's
		 * but shm allocates size in pages. Modify the args as per
		 * client requirement.
		 */
		desc.args[2] = sizeof(uint32_t) * num_sids;
	} else {
		sec_sid = kcalloc(num_sids, sizeof(uint32_t), GFP_KERNEL);
		if (!sec_sid)