Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp673720lqb; Wed, 29 May 2024 07:27:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWE3OiKKugXEJGAk7HqEYm4+FetqWfsqDPsuzWRJxtIXT8Q9e+SDWTEqYZHNJ6l/Wh8XSufdf7hbB2dxXA3lbiYqKGf99FrF9r3x2rzzg== X-Google-Smtp-Source: AGHT+IHYcU4oVOYf13f/EVWiv6A9eyNXunVO1OtnQS8pMYABKu+oSqvkethfsDzScwoHzfWAQ7aI X-Received: by 2002:a05:6512:2159:b0:52a:d07f:48c4 with SMTP id 2adb3069b0e04-52ad07f497bmr1325358e87.52.1716992820767; Wed, 29 May 2024 07:27:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716992820; cv=pass; d=google.com; s=arc-20160816; b=n3GMma6LGqgrqzXb5BzoLmK4MpWXhyrsM+LsV1Ehb/RSoJKW5TIRBtGcGuD2Ugv62N fXETvK7nd5hakR1ah+Jslq+0l/H3HWz+q+5c1yx931BuO5XTPW+2zEYge9mlWifzQ5Rq sKw2CzRB/YHxMy4TCxzZXJCfwv6FaTyrx5wOPTryWvI37aWgR3aQkcQao9kuccXjSBbE b4O+lozXcOhAH5hvDf8JvZ6BqWkswiW568CMf0ybs1JA1T6bGefox0/+6i0uM4sZbgJr vO9Id5NVSbvN261/6SYmDzAp4gqr6ErKVZrE8ZDs/1+qtVNzywCZDAtKwvsJH2dSr19w CbXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=t9und5k3EPAWeDAxO2liROy1Lyi+UxLY0JPYPD1aV7w=; fh=1wjG3LDvXPAUtvxf/464sNBQ5qtJvdaJMqxL1xx858c=; b=CJXe6G7azW77cp6To+47/l9n9OqNbriw/f8AKXwQcFZDwuvWF2Iy3TVQPnX0o15/Yi 9cHjTbr3aglwKVefWzPIAI9AnYxztmvpoLl64PtziWuLAp+Pn4T39nICyhWqdhunMJ9N a6Jjd1lZAbX2daMH30odmMz5r9gscCbmweblFafNZGouK4mwPx3TScfH/VQCgjW6hIoE 9joeWI9pR+RHBQN0b38DnTGrwvNa8wbVmbBZr/WE94+gQJU4LMVnJoN/F89OQ9WUJugp SEBVXLw+aXfcXi1pNwcjOr9qGQRSKcnugKGxJtNWvMI3oJhKBSb70rBRYO243yxeQjy+ SAGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IgcWFLIf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-194266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c800decsi635587866b.49.2024.05.29.07.27.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 07:27:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IgcWFLIf; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-194266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4D1431F241DF for ; Wed, 29 May 2024 14:27:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA7B3158214; Wed, 29 May 2024 14:26:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IgcWFLIf" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3249A1581F4 for ; Wed, 29 May 2024 14:26:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716992809; cv=none; b=RUzDOwOBMtdIHHhhQbeSDnGjRStICbu+n2RQFU2joOUsXl4j0Jxc6ZNaajRMb8t5HgBw3D1O9BFDO3J3OTne3SYBf3wsk31iEfea5NNcy+ZlgLu7wOEib826WxDJ5/XeF4SXec9RWWLPWuBxUfRJQrIB9yQ6fYcq9Ql8jLg6JMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716992809; c=relaxed/simple; bh=HwJzftLA1+dQNuWJ93GUEzlbuhARUmppvfMGRyd+Pgk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UsPtUoljmhkS6W+eZX0aED0LeEOvCGkSH5SOYdkHxWIDEYKLUnn1rysNKKjbyZ4zwJ2/97z7FKwX8ldFRhhK7yvJ9pnNUhYl+gKuBs8TQK0fXzOBebDA9/de1Qbbt5EGH8SOpL5Is+t6VVVRrc8kNBRTI3mdnKSg7npC4oJTook= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IgcWFLIf; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a6266ffdba8so216713466b.1 for ; Wed, 29 May 2024 07:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716992806; x=1717597606; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=t9und5k3EPAWeDAxO2liROy1Lyi+UxLY0JPYPD1aV7w=; b=IgcWFLIfsVZVC0+1kW4MrwMJW3vkgE/Bfuvyb4PF5vvzfILWc+seYxxssROaCW1bvU 0kp7+JsuhYWItd5+AVY39P+u55DO+j+xF8uIL9PRBdiDFEfuwvSeyQZlhpWuGZlLWJId UyjPLD+O8GuLGdfqJ8E5qg5hIN0GqTY5kSG1e1orf6EoOIbkWM2mRC+Zs7Dmd/IXk1fF Gp9betvTo+lYYrOn+RYNcoUlKTi+ZwUi044QmUaB8I8HyvZq9mS/goLBiTEVkXfGGJ7g m7P3i8culHT5wRtWzQRDmZQZ+Sl20+v8OirUQO53ODOlAIAM8ZTLYW/db45OR9XmpeGh KSuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716992806; x=1717597606; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=t9und5k3EPAWeDAxO2liROy1Lyi+UxLY0JPYPD1aV7w=; b=UEoyLzwcQ9KlX7UaZR/+wLjzykP7quQ0whWjflc+UXyQXxGXV5x7h0k3pjk0TG20Ar 1az7kXnijMJtyMLKFHGpFh6BvkF5zWKhbnQDNpmuf8tu8fUydPqj6J8tqVdAKQmbW9MU hAWhRdHOHz54llfH/zAlJbR1YvJe95GZ5XTBApEHuyH1GI6rQsmoMXfk4p/BUTttZFEo lastk3GaeYmU+yllmDHw+SbBH2MemD40GMyBNBtT42QqqZLwsX1Vy5RP030yLkgX2t/9 Bjoet7MQZpU/Scg1dUSfWqH3r95vqRCGcEt+b2YLQcZ6tDhDZh5WjyjTcIuzh6pq1uPE fKrg== X-Forwarded-Encrypted: i=1; AJvYcCVx8NYbyNOH02Th3NNjeZt+twfJUkk827FHOTdi2PkaqTqcuFGpu/tM7Qax+/K831yWYQp5I2nxKY+6pnTa4FqHT5HZuarxqZZLPKqo X-Gm-Message-State: AOJu0YyThvV34ZDdvXwdqNBAUF3NLklwBz58IEAQTKADEk89AD5vlmdl 0G7y3awgf8b7eAczpMX42RCtOjCm5gTbPjhTjZUpc5TgAJSg+jaWtYVz1pAFkyQ= X-Received: by 2002:a17:906:874c:b0:a59:c3e2:712f with SMTP id a640c23a62f3a-a6264192ff3mr1071760566b.9.1716992806572; Wed, 29 May 2024 07:26:46 -0700 (PDT) Received: from [192.168.128.35] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc4f56asm719071966b.115.2024.05.29.07.26.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 May 2024 07:26:46 -0700 (PDT) Message-ID: <8f3f1e88-426d-4254-a31c-afcb88fc08f3@linaro.org> Date: Wed, 29 May 2024 16:26:44 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 15/15] arm64: dts: qcom: sa8775p: add a dedicated memory carveout for TZ To: Bartosz Golaszewski , Bjorn Andersson , 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 References: <20240527-shm-bridge-v10-0-ce7afaa58d3a@linaro.org> <20240527-shm-bridge-v10-15-ce7afaa58d3a@linaro.org> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1Bt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dRtcgC6F3NfuNYkYDAQgHwsF2BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240527-shm-bridge-v10-15-ce7afaa58d3a@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27.05.2024 2:55 PM, Bartosz Golaszewski wrote: > 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>; How does that size relate to + pool_config.max_size = SZ_256K; in patch 3? Konrad