Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3886626ybz; Mon, 4 May 2020 11:31:31 -0700 (PDT) X-Google-Smtp-Source: APiQypIRaF+b+/kv7anJSCXfnhRs46plY3zNG86qmKCR5EF2Ki6mYOnmRwfKMW3vTOP6wVi2JcI2 X-Received: by 2002:aa7:daca:: with SMTP id x10mr15168633eds.59.1588617090935; Mon, 04 May 2020 11:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588617090; cv=none; d=google.com; s=arc-20160816; b=NXLPGRIcyhSSIBXmda9MtODqdSyjPg0wZcGlUuqGH3yUcCSqznnxTiwFfNDS0+6cKb cRS0lzNO29utmoopt9lz73Xm7Nz+Zpz87RpUAr1SgXh5imwJJooqhvbzcZMbMoTEwDYt c+dioiXqszdgYn50tK8u45rfbWyD4fF+5jBkmB1lrAU2qm50tVwGAhvgC/EK/qXGWoSV V2quDEt3lk2Rs/7/atcGnh3lNNlgXwl2aSvVkFTscp6IAL0yR5VuU0tv8c/cGl4ZRWql Utdn4WQz6r2UUsr/LmRLfqXeA+ofIQRnmc0ZILYN24JuhYGuk80/j+Fp+crjKnu+0zSh 2ihw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3mcb3hEms/g2cRqXnF9mYGpTlaunEURjVZJCsIzGh9k=; b=hcdSMCBwv2Y+gFEnvXjT9UnRLT9ZGnOHL6MJZKmUABcRQSxpD15o59KLFV9b78IBoO z3T4IFVariHXiwgEYSURrkZUBkSEr94IEdfd+Jwif59gvZzrq0EZcR7auJVkUo/6QwWo VTgFwrGin1OY7Ej9r9YtN/gpItsRM3iV3Uecc1Yzz19tqzkcG+Zdvl70fUFNHSzT/+cv 7XjyEeNCcf5BzPBd+xMcgciSY595gIjtzcjGC3baGdohCAd6CqEJ6zuanFda6qbPOD4E 0ryVA5e+okc/IBvGkPWGEOMsmB6AcbWckw3UYJr1wEri082EhOBn8wZvOxhPpmVS8yU+ N8SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Zh/W+EiE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d3si7309936edr.351.2020.05.04.11.31.06; Mon, 04 May 2020 11:31:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Zh/W+EiE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730908AbgEDS3f (ORCPT + 99 others); Mon, 4 May 2020 14:29:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730555AbgEDS31 (ORCPT ); Mon, 4 May 2020 14:29:27 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B41EC061A0E for ; Mon, 4 May 2020 11:29:27 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id f7so5944201pfa.9 for ; Mon, 04 May 2020 11:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3mcb3hEms/g2cRqXnF9mYGpTlaunEURjVZJCsIzGh9k=; b=Zh/W+EiE3lvTwm+HWpVVsbuUMLNuAdreiZ2ZqOc+C3Ch5E1CjUraKKj4/BATTkl0SQ nvB715f5f1/i8/QqCGuaBQQmLrIX/rGOkI7uCqvJgOziqNe4wpbCZDC64EOO8tEneDC8 5xZC438qx9k6dBvlrMI4JqvZbGDHXCci/LtIt8oaHR8w9sxBUtyE8LE/Fr77j5ASvaT5 EE5davlIM9hmPW7dbjVYycDHUjQYDbcrNLIGZv+yOb/kyKoUtTcWkcdTkEJE4O00VAUF teOcH6GUEH+lU+8sdTOS1kCwvq4f5hoc7ZzEmJ4rFkPmkhdOHR+KOlMuGINjD/FbCU9L D3NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3mcb3hEms/g2cRqXnF9mYGpTlaunEURjVZJCsIzGh9k=; b=KyIKnkMSBHYErcBGfnkGhVApGSIvmwHDRVuaRIamwyyWZsaRb8aRHh/WrOrgqzzQ4f mzZB+EyDSTzHITtQQZL3/ZAbr6xJBJe8uSsDVi8Jv8+mBKcKAx6ObRiiL5BHorRIzkP1 3rHgW7441LYIi+2AK1DnSrVA5LM3zboOvOArC90TYL7QVJLu4SyNt+4HgNC7JQQnTGKH qw49E8rJ4xaTQFMVy+xADgFUpIBTGhCQT26kkTe6mEpNJ5+h8vj7DUiK0raiOS6pyvfn tDxX8LcAe1/D45qedmRhnSiOTy2J/mbrfqfnUp25npuRzi8o/qr9JjW4GMB9ulf8wn7u CGdQ== X-Gm-Message-State: AGi0PubADI5VmbR5WDkBgTsIfJrTqvK41vlEb611nA58MIJNBCdSbS1a uESjOA3v4NA8Q+kJv1M+6MVvqg== X-Received: by 2002:aa7:82d7:: with SMTP id f23mr19851746pfn.198.1588616966991; Mon, 04 May 2020 11:29:26 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 13sm9402013pfv.95.2020.05.04.11.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 11:29:26 -0700 (PDT) Date: Mon, 4 May 2020 11:30:10 -0700 From: Bjorn Andersson To: Alex Elder Cc: robh+dt@kernel.org, davem@davemloft.net, evgreen@chromium.org, subashab@codeaurora.org, cpratapa@codeaurora.org, agross@kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 1/4] dt-bindings: net: add IPA iommus property Message-ID: <20200504183010.GD20625@builder.lan> References: <20200504175859.22606-1-elder@linaro.org> <20200504175859.22606-2-elder@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200504175859.22606-2-elder@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 04 May 10:58 PDT 2020, Alex Elder wrote: > The IPA accesses "IMEM" and main system memory through an SMMU, so > its DT node requires an iommus property to define range of stream IDs > it uses. > > Signed-off-by: Alex Elder > --- > Documentation/devicetree/bindings/net/qcom,ipa.yaml | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.yaml b/Documentation/devicetree/bindings/net/qcom,ipa.yaml > index 140f15245654..7b749fc04c32 100644 > --- a/Documentation/devicetree/bindings/net/qcom,ipa.yaml > +++ b/Documentation/devicetree/bindings/net/qcom,ipa.yaml > @@ -20,7 +20,10 @@ description: > The GSI is an integral part of the IPA, but it is logically isolated > and has a distinct interrupt and a separately-defined address space. > > - See also soc/qcom/qcom,smp2p.txt and interconnect/interconnect.txt. > + See also soc/qcom/qcom,smp2p.txt and interconnect/interconnect.txt. See > + iommu/iommu.txt and iommu/arm,smmu.yaml for more information about SMMU > + bindings. > + > > - | > -------- --------- > @@ -54,6 +57,9 @@ properties: > - const: ipa-shared > - const: gsi > > + iommus: > + maxItems: 1 > + > clocks: > maxItems: 1 > > @@ -126,6 +132,7 @@ properties: > > required: > - compatible > + - iommus This technically "breaks" backwards compatibility, but the binding is rather new and in limited use, so I think we should do this. Reviewed-by: Bjorn Andersson Regards, Bjorn > - reg > - clocks > - interrupts > @@ -164,6 +171,7 @@ examples: > modem-init; > modem-remoteproc = <&mss_pil>; > > + iommus = <&apps_smmu 0x720 0x3>; > reg = <0 0x1e40000 0 0x7000>, > <0 0x1e47000 0 0x2000>, > <0 0x1e04000 0 0x2c000>; > -- > 2.20.1 >