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

Commit 46d61435 authored by Tharun Kumar Merugu's avatar Tharun Kumar Merugu
Browse files

msm: ADSPRPC: Don't assign adsp_mem to modem



Remove VMID_MSS_MSA from destination list, as there is no modem
use case which uses adsp_mem

Change-Id: Iec9eabf4730b815c72f30f6e85368b6825af1a23
Acked-by: default avatarHimateja Reddy <hmreddy@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent 300632cd
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -4126,16 +4126,15 @@ static int fastrpc_probe(struct platform_device *pdev)
		if (range.addr && !of_property_read_bool(dev->of_node,
							 "restrict-access")) {
			int srcVM[1] = {VMID_HLOS};
			int destVM[4] = {VMID_HLOS, VMID_MSS_MSA, VMID_SSC_Q6,
			int destVM[3] = {VMID_HLOS, VMID_SSC_Q6,
						VMID_ADSP_Q6};
			int destVMperm[4] = {PERM_READ | PERM_WRITE | PERM_EXEC,
				PERM_READ | PERM_WRITE | PERM_EXEC,
			int destVMperm[3] = {PERM_READ | PERM_WRITE | PERM_EXEC,
				PERM_READ | PERM_WRITE | PERM_EXEC,
				PERM_READ | PERM_WRITE | PERM_EXEC,
				};

			VERIFY(err, !hyp_assign_phys(range.addr, range.size,
					srcVM, 1, destVM, destVMperm, 4));
					srcVM, 1, destVM, destVMperm, 3));
			if (err)
				goto bail;
			me->range.addr = range.addr;