Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2787097rdh; Mon, 30 Oct 2023 07:44:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPh1ERWET0zy8etVGqJgcm0FfqG4XuylcJMJp94pK82U2Iqw/Rr7nz2+9ylPJuU7icOkW4 X-Received: by 2002:a17:902:c146:b0:1c6:3157:29f3 with SMTP id 6-20020a170902c14600b001c6315729f3mr7628665plj.36.1698677040970; Mon, 30 Oct 2023 07:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698677040; cv=none; d=google.com; s=arc-20160816; b=RNE/DJiZzReugbRUeZ1NjKRaNQSkaJzilv6sFAm868pDZsuSlmqIs/O6N7E+SSfEm7 kSclhoFZ4yvRceeHIxYjZj1pVlOIvpPhcgFzxOBb8fLpnGG1ztiEj9E9wIRSV+MTQZf1 VIXKOTH6Jg+cVCYATxfdlbjC1VyY6hHiyVbsRz77Y9cGJJ/cBicHbyaO+KgCH8Iol0LZ OjJ0aasmOPcd8zzYP1xZUTdeOt7OObteM0XOLdAjHVnAQisfrTBYFc84FoVg7AUww1Bw EH1AMIm8u/Y/K7v/R/7o5HZP+ZZSAdnhvEsW8WGc2pbcfYvL3uYEISJqjLvkVsR9mfOZ jSAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=4nwo0UYDV4o06Mzw9WU2DYO+XxHpuorjy7eMshi09Lk=; fh=9G9K0CR1Q97FTRD/5z7RKOB5N4pQ4V6Xl7RzhMtgOhM=; b=OajELidBAiqk6Hlu8eJBRYg6dJk++jr73HANidhu1uz69rQ0chDQqrK4nKdlYXfsP5 LAJuRspN91XYNG//YextoRQMeW4cdrnM4j3CeMbDsqd7jA2v/kWSFBEG//fRl3X5ykav CJIbqmjojIP0kgqwQryejVzSA9g5fR3tCRutV6FNEJSB5oGHq9HJTBziYDJCqsEGiQRg EyNYEgt2+z9hl/JtgBrJjfCXI5E97+OB6lNiP0XGakz1PuDNDl6I5g3byOMP0D+yDE89 10/HKR0PAcASQCzbwUe613u0mwtSnPq7N6Ogf7x31CDve7JBo9JkQVBn8FvawVILRk6g i6uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=2OESjA41; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s4-20020a170902ea0400b001c7388413besi5237422plg.529.2023.10.30.07.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 07:44:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=2OESjA41; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 799E8809540D; Mon, 30 Oct 2023 07:43:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231919AbjJ3Ono (ORCPT + 99 others); Mon, 30 Oct 2023 10:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233361AbjJ3Onm (ORCPT ); Mon, 30 Oct 2023 10:43:42 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 414F2DB for ; Mon, 30 Oct 2023 07:43:40 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-53e08e439c7so7746767a12.0 for ; Mon, 30 Oct 2023 07:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1698677019; x=1699281819; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4nwo0UYDV4o06Mzw9WU2DYO+XxHpuorjy7eMshi09Lk=; b=2OESjA41F9aeEf4pRwy2E815bTZti3+39VGllMtCc00lpc549g4Kom0Y10M4gYNSHE ZNNQO+cBqrmBAAY5Muk0aP3CieqiTm15yOXfQWi2heAHGoBiLLhaPDvzJJpF8/8J1pq9 IfwnXst+MYR7Yw4pKDevoffkybX6f88HiXfMSuxsd3Rvf5HjC8bpCJndcpPBGRpkJeVQ yZKXZ2q9x43/LRasiJs110sx0Qrjh0aDNioGGiImAIaCZDH9P5Z48uGmCUZ4X+ZggN/w wgGvEdKoZqiFKrh2doJi92eCWe+84dJHd0h4AUXuxgF6AXYG6n6714VYUiyszgdVIhF5 LU4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698677019; x=1699281819; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=4nwo0UYDV4o06Mzw9WU2DYO+XxHpuorjy7eMshi09Lk=; b=uFa68hL3WpmMceXgPaDVrSeC/X5EkLxo7zA2rW4iXzhJ8JkrUvhBvkt/8CmvWkvZY2 wifio1rXuOUD6kelI5YgKEud69dlz0/HcqqmZMk+K+CfFnLKnEkALaQKdDZpRhiOaxUV h26jpH2NE0BeyU7VKLFDIHSGmYURzubg6CV6fn+YpugKjXQXqFw5YgaiRZvouYtX246X 22FZo4le+Uu3pzhEFu/BeCob24MeJIt4sKphJ/5ArZeTYr7fIU/+PEVAYYPqo81zV5fb up7qIWplKFd/2YlD+3Ij6tzQuGwj1kbwCH3Drde8EzgxnGx0W2cSE/F8CPEyU6SqdCxY qziA== X-Gm-Message-State: AOJu0YxHkl6qhg4fDcncYt/uaNB6hzrch3FESsyZM9NyluVKPp8/rtJc lZ8tZCCBjcZKZED25UkYrxBhMg== X-Received: by 2002:a17:906:38e:b0:9d3:8d1e:cee with SMTP id b14-20020a170906038e00b009d38d1e0ceemr2667017eja.70.1698677018573; Mon, 30 Oct 2023 07:43:38 -0700 (PDT) Received: from localhost (k10064.upc-k.chello.nl. [62.108.10.64]) by smtp.gmail.com with ESMTPSA id n11-20020a170906b30b00b00989828a42e8sm6035976ejz.154.2023.10.30.07.43.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 07:43:38 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 30 Oct 2023 15:43:37 +0100 Message-Id: Cc: "Mukesh Ojha" , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Mathieu Poirier" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Manivannan Sadhasivam" , , <~postmarketos/upstreaming@lists.sr.ht>, , "Krzysztof Kozlowski" , "Rob Herring" , =?utf-8?q?Matti_Lehtim=C3=A4ki?= , , , , Subject: Re: [PATCH 7/9] arm64: dts: qcom: sc7280: Add CDSP node From: "Luca Weiss" To: "Doug Anderson" X-Mailer: aerc 0.15.2 References: <20231027-sc7280-remoteprocs-v1-0-05ce95d9315a@fairphone.com> <20231027-sc7280-remoteprocs-v1-7-05ce95d9315a@fairphone.com> <7934a36a-9438-719a-2ed0-4a78757b044b@quicinc.com> In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 07:43:58 -0700 (PDT) On Mon Oct 30, 2023 at 3:11 PM CET, Doug Anderson wrote: > Hi, > > On Mon, Oct 30, 2023 at 2:12=E2=80=AFAM Luca Weiss wrote: > > > > On Mon Oct 30, 2023 at 10:04 AM CET, Mukesh Ojha wrote: > > > > > > > > > On 10/27/2023 7:50 PM, Luca Weiss wrote: > > > > Add the node for the ADSP found on the SC7280 SoC, using standard > > > > Qualcomm firmware. > > > > > > > > The memory region for sc7280-chrome-common.dtsi is taken from msm-5= .4 > > > > yupik.dtsi since the other areas also seem to match that file there= , > > > > though I cannot be sure there. > > > > > > > > Signed-off-by: Luca Weiss > > > > --- > > > > arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 5 + > > > > arch/arm64/boot/dts/qcom/sc7280.dtsi | 138 ++++++++= +++++++++++++ > > > > 2 files changed, 143 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi b/a= rch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > > > > index eb55616e0892..6e5a9d4c1fda 100644 > > > > --- a/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > > > > +++ b/arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi > > > > @@ -29,6 +29,11 @@ adsp_mem: memory@86700000 { > > > > no-map; > > > > }; > > > > > > > > + cdsp_mem: memory@88f00000 { > > > > + reg =3D <0x0 0x88f00000 0x0 0x1e00000>; > > > > + no-map; > > > > + }; > > > > + > > > > > > Just a question, why to do it here, if chrome does not use this ? > > > > Other memory regions in sc7280.dtsi also get referenced but not actuall= y > > defined in that file, like mpss_mem and wpss_mem. Alternatively we can > > also try and solve this differently, but then we should probably also > > adjust mpss and wpss to be consistent. > > > > Apart from either declaring cdsp_mem in sc7280.dtsi or > > "/delete-property/ memory-region;" for CDSP I don't really have better > > ideas though. > > > > I also imagine these ChromeOS devices will want to enable cdsp at some > > point but I don't know any plans there. > > Given that "remoteproc_cdsp" has status "disabled" in the dtsi, it > feels like the dtsi shouldn't be reserving memory. I guess maybe > memory regions can't be status "disabled"? Hi Doug, That's how it works in really any qcom dtsi though. I think in most/all cases normally the reserved-memory is already declared in the SoC dtsi file and also used with the memory-region property. I wouldn't be against adjusting sc7280.dtsi to match the way it's done in the other dtsi files though, so to have all the required labels already defined in the dtsi so it doesn't rely on these labels being defined in the device dts. In other words, currently if you include sc7280.dtsi and try to build, you first have to define the labels mpss_mem and wpss_mem (after this patch series also cdsp_mem and adsp_mem) for it to build. I'm quite neutral either way, let me know :) Regards Luca > > -Doug