Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2164815lqz; Tue, 2 Apr 2024 08:59:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUk5z6yvKwflaT+k6VYTwB9Bqfgv/DdjNfUxF2fdzBXZW2K4olO9vBHUOPcSpl8iP1+UiLiPvXuH7uCX4tTDEC2STmU+ZhyqHzWY2tmeg== X-Google-Smtp-Source: AGHT+IEI7rWbSm6ArictKJ8bo488dD87A8cP37P1/JfKns6A3yOB4YLhSjXKyxSVDYhIjC/brNnL X-Received: by 2002:a17:907:7f17:b0:a46:8c03:b659 with SMTP id qf23-20020a1709077f1700b00a468c03b659mr9790884ejc.42.1712073587756; Tue, 02 Apr 2024 08:59:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712073587; cv=pass; d=google.com; s=arc-20160816; b=BDD4uJ/sqmvLDan//ipcUm+VJP1tsMmDXaZXqNRQp4aB1rEMVHNIXIney/pxZPmJND F9FPxnHD8c9poEIA+fJyRBTIEg7Kwg4OyHhpRf0Ez5B9W5+UixV+K6z8WScoMkdzueUl 7RNUDENUukI/loWcZAsQFvsvNSRfum8xt5CIIaOTL8dcf3czc96nCuWnHSfx2jBq1mde BxCziJqTgx15x/0C9e6zBnkqlZSSHa04vRXkAsm5h4xFEdJIAnsSO6LEKREuP9vLwvAq WavFtZhMRUMEg6LD5W7+iG82fa+92k3jxdv3c4oT/XJxk3WGY7hNBuWJphtFo1HKJ1mo 0wew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=+o7XM/+4QFL4NFpVeras/FA7hCjajIU2dOFHOBIo+B4=; fh=HTi7rsIjeo7Bih7OUcxQbQSCL/4tnMNdueXYRPQtdII=; b=GEuUbVfv7vSWJGtv0cGUErHOhFn4Geolf9SxzAzgt0P9PGstNF0rSZPEbb7Uszrhlc tCqCx8IjxR4j2FnEEDRmIMD0rmcACX1JAiCcCZvfZIMPbl4EzDTFCbMLUNJGBaGNehFY ZUL0PGSip9v3nrUTJExEbdod0ys98fHKLaBiJvZwz44T8UPcEzuBHcV3CPhdzzs9TOGX 3UrDztM/oBwlYQ0t9y32ctBIE2cjrgt9S7aDEu5yJ5P0A2QIszCb0XSwjiJ1Bd1Cz7AO Qg0kp2NknSEK8udmf0F2eR4OLHLbzfqj2ySFmXhEd6TbzSkJxEYOqqRws3tUmbtCPpHI VyYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ju3OhhWV; 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-128301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128301-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. [147.75.80.249]) by mx.google.com with ESMTPS id t11-20020a170906a10b00b00a4e207ee793si5757748ejy.646.2024.04.02.08.59.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 08:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ju3OhhWV; 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-128301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128301-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 7C6671F22371 for ; Tue, 2 Apr 2024 15:59:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B8DA1350FB; Tue, 2 Apr 2024 15:59:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ju3OhhWV" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 15EFD134740 for ; Tue, 2 Apr 2024 15:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712073543; cv=none; b=HInbtcb1lAn5IQ0nYjz9NLKe3yJJU08MSfq379eDhyMQLUVF5eg1sC/ykmTk9ADTQ92OdfJqr+kU1FSmIFReJ+HZrms94iO/+0Gyqn4XfNdsWyKyqSVUEGklwJvsSnhKTKwQ6cKTC0yCHY8SKLP4fswWJEheqJ3rjqYFk4B9PVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712073543; c=relaxed/simple; bh=8NAIgXsfazcwXjwK5f4+owrNYeHcAdGOOqJqfK2TAl0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Hb7BzmWaU9x1vzpTaDHqgKGP6O9YB1Oxn6gpG82k+p+J4rG7mKH6S6PPrwEcKUlhufd650wXYEzevQylt5hH6DqAgSwInlWkfME8H6DR2hMXVDWaK719gIAr1LMuzl20D/vQfWKShJ6Nd3LTw6dg6cvPnyEjQOC7/qjJuB8RIpw= 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=Ju3OhhWV; arc=none smtp.client-ip=209.85.210.170 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-pf1-f170.google.com with SMTP id d2e1a72fcca58-6e703e0e5deso4247810b3a.3 for ; Tue, 02 Apr 2024 08:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712073539; x=1712678339; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+o7XM/+4QFL4NFpVeras/FA7hCjajIU2dOFHOBIo+B4=; b=Ju3OhhWV/JgKLb/LsBqgqqhApdXynk6XID0duRJ5dletGGjZw0vAGFaEKDqlc26PRI CTfrt2IJJZQcS3yfA3C9W7zFJnP4lnUtQzfZYBZX1C4Q9i7YIj297ri5yo89jgfG1LHJ IrXA8sQMS0603egAkZUZBCv4Ioxb5QjTzi7Zz3HdDXaNJ5xIRXF3r1C0F79xJUmGl3lf Lme/p/Ehwhv0x6mLx9Erx1lsvYfNTw1eq5OjSgaWmDhxR+dpMTygEB9DMgsTZ/H3Ejij H9EkYkLzfFeujf+h8b1DJtDOO7/nvOdwGRL23PGEAUmZ0eYeY/tqrPkd9Q9uVes7RsO5 a/qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712073539; x=1712678339; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+o7XM/+4QFL4NFpVeras/FA7hCjajIU2dOFHOBIo+B4=; b=petP+rYoKJUsshG1QfoTfBaG1Pw/1swRx5n1oaPeqWROUynCgpzCIkQ5L0MJsjX567 HhTW4uk0jyQcIChmg1FTCHOvmcIqpKs0BQghSbYjrra6I2vc3TQqpeMBowjI/B2QRdKq vl/uZiig2c1lOvn0kaqM155NqK1l0rs0SvQ7cU1zg/cE3Wm9Z9Jtt0Xsr8+pVF69SJEz ne8s3O06gd2JeWbcRSz8E5YUH+pOX1bmI13MsY3w3Ru2A+cyKbEcqbXd1aD4sevqijcB HYflDlGtpsCoA7jbH+C5ZoM53A9K9IA/CozaBXQ24M4EaHTZUF8t4FwGfRoknI1fB9Lk uh+g== X-Forwarded-Encrypted: i=1; AJvYcCU4F4YyFCVJnzGzWJ5Nz8I4S4TQYuHhDjNi97HJMyohFhCXrNSJSh9MGxEf/4dD0899T2Og+VOHz5YldGgpcUbMkRQYa0/1xLjpq58n X-Gm-Message-State: AOJu0Yznm3uzMxlvdWHlWRv4/mvXKF8cPSs2e6bHVokltVwUrWsf7pJ/ mtXIZlPzxsbnAzsEjOoX0jEcbDhx+MtJQLc5QWwlddBTWuAQCDDx4IlOdXNjHZXBw5fAnajhtTW bWNZHbjI5l0xlH93vDFbWBxpQDPDCmWXx5QJJ0w== X-Received: by 2002:a05:6a20:3946:b0:1a3:32e5:f38a with SMTP id r6-20020a056a20394600b001a332e5f38amr13336915pzg.45.1712073539439; Tue, 02 Apr 2024 08:58:59 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240401-msm8996-remoteproc-v1-0-f02ab47fc728@linaro.org> <20240401-msm8996-remoteproc-v1-3-f02ab47fc728@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Tue, 2 Apr 2024 18:58:48 +0300 Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: msm8996: add fastrpc nodes To: Konrad Dybcio Cc: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mathieu Poirier , Sibi Sankar , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Content-Type: text/plain; charset="UTF-8" On Tue, 2 Apr 2024 at 17:47, Konrad Dybcio wrote: > > On 31.03.2024 11:10 PM, Dmitry Baryshkov wrote: > > From: Srinivas Kandagatla > > > > The ADSP provides fastrpc/compute capabilities. Enable support for the > > fastrpc on this DSP. > > > > Signed-off-by: Srinivas Kandagatla > > Signed-off-by: Dmitry Baryshkov > > --- > > arch/arm64/boot/dts/qcom/msm8996.dtsi | 57 +++++++++++++++++++++++++++++++++++ > > 1 file changed, 57 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > index 7ae499fa7d91..cf7ab01f3af6 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi > > @@ -3545,6 +3545,63 @@ q6routing: routing { > > }; > > }; > > }; > > + > > + fastrpc { > > + compatible = "qcom,fastrpc"; > > + qcom,smd-channels = "fastrpcsmd-apps-dsp"; > > + label = "adsp"; > > + qcom,non-secure-domain; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + cb@8 { > > + compatible = "qcom,fastrpc-compute-cb"; > > + reg = <8>; > > + iommus = <&lpass_q6_smmu 8>; > > + }; > > + > > + cb@9 { > > + compatible = "qcom,fastrpc-compute-cb"; > > + reg = <9>; > > + iommus = <&lpass_q6_smmu 9>; > > + }; > > + > > + cb@10 { > > + compatible = "qcom,fastrpc-compute-cb"; > > + reg = <10>; > > + iommus = <&lpass_q6_smmu 10>; > > + }; > > + > > + cb@11 { > > + compatible = "qcom,fastrpc-compute-cb"; > > + reg = <11>; > > + iommus = <&lpass_q6_smmu 11>; > > + }; > > + > > + cb@12 { > > + compatible = "qcom,fastrpc-compute-cb"; > > + reg = <12>; > > + iommus = <&lpass_q6_smmu 12>; > > + }; > > + > > + cb@5 { > > + compatible = "qcom,fastrpc-compute-cb"; > > + reg = <5>; > > No need to copy downstream's creative alphabetical-but-not-numerical > sorting.. Ack, I'll fix the order. > The entries look OK though.. although, any reason we have > such a weird binding including faux child nodes and not just an array > of iommus? Is the only way to discover the fastrpc nodes' properties > such as qcom,non-secure-domain or vmid belonging through hardcoding? No idea here. This is how fastrpc nodes are defined on all existing platforms. Maybe Srini knows the story and the reason behind the bindings?? -- With best wishes Dmitry