From patchwork Mon May 27 12:55:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13675207 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 423E2C25B7E for ; Mon, 27 May 2024 12:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hr+JdOJF3yy8cJ8YnBZIKqQJ0eCK89BdsXRBkw28Xcc=; b=Htsqdd4F1UCnTG YIL1yO3tJuq1u4cpHtJXxcwObQxreD4I1S2XLItJJH0iPc9x806+zSJ/iqWc8mUl0euieAc/4C2Ea YQTjuVC/sfTceYR+6Qqxx6WnJ68zWCZHrauYMH+a2eQ0ME3v6eZBuhKlzftCm1zfWlzbcZjfVMNYq Kvk64rDr5grdvohe0X4wPjmB/6zBgycWNUTngyG3JBW+DzxglhewfEwvwfKmBRMCnUvw1rRKB0wxK sYgz9hSC51fxnWcdrUuDWQDKmZ7nBGoqRDqMDo7eHVvmKOYFoO68YDUwvJl2PZ2dcuoLwxhFVoUwH e5TbN3onk3sTMgauFIhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBZvj-0000000EyV9-2PYU; Mon, 27 May 2024 12:58:23 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBZuQ-0000000ExhG-1uCa for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2024 12:57:03 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2e95a1eff78so41697541fa.0 for ; Mon, 27 May 2024 05:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1716814619; x=1717419419; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=L8rkN2Rf2Hp0nSXd463a14N/vLIZb9qc33eAk0xmKNk=; b=UdiL8YW91kDN4Sr6vpfR5NZz4YTGGJeXRzTh1skZdzIlf02XJpHgM8BocR5rMAlbeM QlM4Shc/ZR92QK/HamzjlfBTm73E1aFUm9sHQ2o0Alr0mMpmZzAVmyZMClIOdAzNFlRC u6lvSlCvdvvq7T7pGU0wBdteTtOhVXtbIfX63tuolMU2TrbpIbbBQXPubmQ4yWKGaeyu Ct3uzVvm20ZF1IMvSXpjkole1EPiQb2fqfwJ+vqY45olyCs0YaJaQbTDHIzeXVsysr1V W2UKLEHw8B+70KI0F1D1UvFOpuvVSkHtmwDd36LxEG/DEnkWSx/XvfsgyzYgqT/sNuik sk/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716814619; x=1717419419; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L8rkN2Rf2Hp0nSXd463a14N/vLIZb9qc33eAk0xmKNk=; b=L6LSF9WVS3QSth7hTbIsJDX6QO9CbwwH2TAIk2Tiuo2GMNfX7Z6wLgtbDHXPppEn/0 IeUEgQTL+hAGWTrchIn3ZpzYOsBlyv8ZTd32in7QikfT9pn0zcSuZKx8rbJARz26rYCN GaTbt21h8kYSJN4BQ9a7zAsslxC7baPQw4xk6eTP0ugUTQEL3fZGH6ovUw2MH7DphO5m Lf8AWVN7MsXR8J3RJ+AUunBcvDpA2lSXXPwQp7l71U11PydrIYU+OK1Zo77UrMkhg7Hq 1L5G/eH6huyyg8K8Tz65UV8F+h9aw3g1znF3fCiUOu3AX37MHYKcUk+tFWbX8Jq3gdWQ AWyg== X-Forwarded-Encrypted: i=1; AJvYcCU5Tj6AtUH6EgAW/XeMoYz8NuPCNBibAqkAohTxsfF/BIaSL9U4TaWX3AJZGr5blY7ajFZ1dKIVtLfRBSS9nCwqBCY6Z1aX/Qd3PTDu/KJE+Y3tW/w= X-Gm-Message-State: AOJu0YxXi3nkORrIJoHStyl9k7lAmzozTbgOfU+QD5kL4bMDMkvAdga7 gl02srgIyJpBaNT4Bec4V6ASaaqMqZxC2nMccCYbu2OZ5na7aSXBllVUKzz7KI4= X-Google-Smtp-Source: AGHT+IGb0cN1IEanxjT22vgWa2Oh/Nwkk44pYpQ3psoE+0SJXnPbzhugKey/3Mfagl312ok7FO+FHg== X-Received: by 2002:a05:651c:4cd:b0:2e9:768a:12b0 with SMTP id 38308e7fff4ca-2e9768a144fmr29910491fa.50.1716814619437; Mon, 27 May 2024 05:56:59 -0700 (PDT) Received: from [127.0.1.1] ([2a01:cb1d:75a:e000:c322:131e:ff9d:ef41]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42100f64f98sm138753635e9.24.2024.05.27.05.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 05:56:59 -0700 (PDT) From: Bartosz Golaszewski Date: Mon, 27 May 2024 14:55:05 +0200 Subject: [PATCH v10 15/15] arm64: dts: qcom: sa8775p: add a dedicated memory carveout for TZ MIME-Version: 1.0 Message-Id: <20240527-shm-bridge-v10-15-ce7afaa58d3a@linaro.org> References: <20240527-shm-bridge-v10-0-ce7afaa58d3a@linaro.org> In-Reply-To: <20240527-shm-bridge-v10-0-ce7afaa58d3a@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Marko , Das Srinagesh , Bartosz Golaszewski , Maximilian Luz , Catalin Marinas , Will Deacon , Srini Kandagatla , Arnd Bergmann , Elliot Berman , Alex Elder Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@quicinc.com X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=965; i=bartosz.golaszewski@linaro.org; h=from:subject:message-id; bh=SVd7PalpjimcUnnSzGmMJxD42sVU9RNmLDvL9mtYIc4=; b=owEBbQKS/ZANAwAKARGnLqAUcddyAcsmYgBmVIML/1S/Eg3P8RXxcQCjjbb5YnkY2z+23gAer 8Pf6Xgu8fCJAjMEAAEKAB0WIQQWnetsC8PEYBPSx58Rpy6gFHHXcgUCZlSDCwAKCRARpy6gFHHX ctsGD/sHdMN9reDJMUt/1wjiJW9kBhGHtypqVB80ebCle5co7w4LFflL9JFi6RF/W8W+s1Vn2Rn lgy862NKRql+tnbWKURIgDtct4vRfDdXnZ1R+FvrJF2WqIHUg1rOGmTJ8c7dcE/h141vY3oXlHk y9Zv5/MFWfA7G9XHXgELLM4WmIr+53jZsdGJXttDMqwA5lo0bMZTWJxnQy7HdVdFlCA1hhBlBRX YRYIv+Q8Qt+51l/sxFsCjREZwuO8VxBPlIwnuhF24hOA28kvCCaEnKGesArM3BWJF55KS1nQOuF xwpgLDjUKEP+BuTpHS9xv7nD80JW7M3bhZTUv4KF9wwTL6T92k4lF4FHk12maDIIOp6mt1E5e/I hnDaH88SyX1lnjXivcke0Kr25SMzWWE5S3HZcjY+J9bUaXZwtC2diOkrdlBFGZ95zuFo1hLmYOD rLSqBNJTxWOddihl07lAviS0Yr6h0roTOtePkdXLPGMBreZN9T3ZQyuV8kL73KhDA/38vvXa201 VyRhsm8TrjDRvE2TP1afyT+yqsI/P4KMCtxRRa9c8RwW/P2cWklSXUaJ7gocy2rwdRs2fgj6BiN EXRPAaqJKMsTzxcYb16jRGgtLMMEWqIe1c2rRcqyqVsQ/hEW0cY0zl6qC10RggwANsDR+9jJZun OerT6qSU38nz0/Q== X-Developer-Key: i=bartosz.golaszewski@linaro.org; a=openpgp; fpr=169DEB6C0BC3C46013D2C79F11A72EA01471D772 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_055702_553128_FF0ED887 X-CRM114-Status: GOOD ( 10.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bartosz Golaszewski Add a 20MB reserved memory region for use by SCM calls. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 31de73594839..c183527452d7 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -208,6 +208,7 @@ core3 { firmware { scm { compatible = "qcom,scm-sa8775p", "qcom,scm"; + memory-region = <&tz_ffi_mem>; }; }; @@ -418,6 +419,12 @@ cdt_data_backup_mem: cdt-data-backup@91ba0000 { no-map; }; + tz_ffi_mem: tz-ffi@91c00000 { + compatible = "shared-dma-pool"; + reg = <0x0 0x91c00000 0x0 0x1400000>; + no-map; + }; + lpass_machine_learning_mem: lpass-machine-learning@93b00000 { reg = <0x0 0x93b00000 0x0 0xf00000>; no-map;