devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Gaurav Kashyap (QUIC)" <quic_gaurkash@quicinc.com>
To: Stephan Gerhold <stephan.gerhold@linaro.org>,
	"Melody Olvera (QUIC)" <quic_molvera@quicinc.com>
Cc: Thara Gopinath <thara.gopinath@gmail.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	"Rob Herring" <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	"Konrad Dybcio" <konradybcio@kernel.org>,
	Vinod Koul <vkoul@kernel.org>,
	"Satya Durga Srinivasu Prabhala (QUIC)" <quic_satyap@quicinc.com>,
	"Trilok Soni (QUIC)" <quic_tsoni@quicinc.com>,
	"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
	"linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Gaurav Kashyap (QUIC)" <quic_gaurkash@quicinc.com>
Subject: RE: [PATCH 2/6] arm64: dts: qcom: sm8750: Add QCrypto nodes
Date: Mon, 10 Mar 2025 17:13:50 +0000	[thread overview]
Message-ID: <28715695978543f7884357bd7c4153cb@quicinc.com> (raw)
In-Reply-To: <Z4k8kibtnlnpKspN@linaro.org>

On Thu, Jan 16, 2025 at 9:06 AM PST, Stephan Gerhold wrote:
> On Mon, Jan 13, 2025 at 01:16:22PM -0800, Melody Olvera wrote:
> > From: Gaurav Kashyap <quic_gaurkash@quicinc.com>
> >
> > Add the QCE and Crypto BAM DMA nodes.
> >
> > Signed-off-by: Gaurav Kashyap <quic_gaurkash@quicinc.com>
> > Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
> > ---
> >  arch/arm64/boot/dts/qcom/sm8750.dtsi | 30
> > ++++++++++++++++++++++++++++++
> >  1 file changed, 30 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi
> > b/arch/arm64/boot/dts/qcom/sm8750.dtsi
> > index
> >
> 3bbd7d18598ee0a3a0d5130c03a3166e1fc14d82..1ddb33ea83885e73bf15244c
> 9cbd
> > 7067ae28cded 100644
> > --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
> > +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
> > @@ -1939,6 +1939,36 @@ mmss_noc: interconnect@1780000 {
> >                       #interconnect-cells = <2>;
> >               };
> >
> > +             cryptobam: dma-controller@1dc4000 {
> > +                     compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0";
> > +                     reg = <0x0 0x01dc4000 0x0 0x28000>;
> > +
> > +                     interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
> > +
> > +                     #dma-cells = <1>;
> > +
> > +                     iommus = <&apps_smmu 0x480 0>,
> > +                              <&apps_smmu 0x481 0>;
> 
> Should be equivalent to iommus = <&apps_smmu 0x480 0x1>?
> 

Hello Stephan, we tried this out internally, and the use case was not functional.
The masks are explicitly mentioned in our hardware documents and we are just following that.

So, we are looking to keep it the same.

> > +
> > +                     qcom,ee = <0>;
> > +                     qcom,controlled-remotely;
> 
> If you don't have clocks here, you need to provide num-channels and
> qcom,num-ees. Otherwise, there is a risk this will crash if the BAM is not up
> while being probed.
> 

Ack.

> Thanks,
> Stephan

Regards,
Gaurav

  reply	other threads:[~2025-03-10 17:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-13 21:16 [PATCH 0/6] arm64: dts: qcom: sm8750: Introduce crypto support for SM8750 Melody Olvera
2025-01-13 21:16 ` [PATCH 1/6] dt-bindings: crypto: qcom-qce: Document the SM8750 crypto engine Melody Olvera
2025-01-14 21:58   ` Rob Herring (Arm)
2025-01-13 21:16 ` [PATCH 2/6] arm64: dts: qcom: sm8750: Add QCrypto nodes Melody Olvera
2025-01-16 17:06   ` Stephan Gerhold
2025-03-10 17:13     ` Gaurav Kashyap (QUIC) [this message]
2025-01-13 21:16 ` [PATCH 3/6] dt-bindings: crypto: qcom,prng: Document SM8750 RNG Melody Olvera
2025-01-14 22:21   ` Rob Herring (Arm)
2025-01-13 21:16 ` [PATCH 4/6] arm64: dts: qcom: sm8750: Add TRNG nodes Melody Olvera
2025-01-13 21:16 ` [PATCH 5/6] dt-bindings: crypto: qcom,inline-crypto-engine: Document the SM8750 ICE Melody Olvera
2025-01-15  1:43   ` Rob Herring (Arm)
2025-01-13 21:16 ` [PATCH 6/6] arm64: dts: qcom: sm8750: Add ICE nodes Melody Olvera
2025-02-11 13:21   ` Konrad Dybcio
2025-01-19  4:49 ` [PATCH 0/6] arm64: dts: qcom: sm8750: Introduce crypto support for SM8750 Herbert Xu
2025-03-14 20:01 ` (subset) " Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28715695978543f7884357bd7c4153cb@quicinc.com \
    --to=quic_gaurkash@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=quic_molvera@quicinc.com \
    --cc=quic_satyap@quicinc.com \
    --cc=quic_tsoni@quicinc.com \
    --cc=robh@kernel.org \
    --cc=stephan.gerhold@linaro.org \
    --cc=thara.gopinath@gmail.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).