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

Commit f5dce701 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ADSPRPC: Restrict access to hyp_assign_phys calls"

parents 2e6bce1c 6b7a4a2c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -74,9 +74,11 @@ Remote Heap:
Required properties:
- compatible : Must be "qcom,msm-adsprpc-mem-region"
- memory-region : CMA region which is owned by this device
- restrict-access : Blocking vote for hyp_assign_phys function call

Example:
       qcom,adsprpc-mem {
               compatible = "qcom,msm-adsprpc-mem-region";
               memory-region = <&adsp_mem>;
               restrict-access;
       };
+2 −1
Original line number Diff line number Diff line
@@ -3399,7 +3399,8 @@ static int fastrpc_probe(struct platform_device *pdev)
				break;
			}
		}
		if (range.addr) {
		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,
						VMID_ADSP_Q6};