Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6154182rwd; Wed, 24 May 2023 11:27:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6uHid0+0llbneXt8Mk7klzmLWrgfFbEDSozC4pZpIlRylXBEA1InBDvQAF55ZFk33Q5KtK X-Received: by 2002:a05:6a20:3ca7:b0:101:47d8:ff80 with SMTP id b39-20020a056a203ca700b0010147d8ff80mr21739003pzj.41.1684952865074; Wed, 24 May 2023 11:27:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684952865; cv=pass; d=google.com; s=arc-20160816; b=C0WpOwhBnO71HQbfxU6ZTvyiqTjanyOC58kq3dpinspOga0vdOqtXQ4g6bQAb13C74 PNdrWMJo8kxDvXmqL+74mHCFkjNYBEuvLC6hy57tsUta5PI8upn0y8Qw/RxGcI5yjLOs BoZO7DFVymz14+xW3YlneYV84UoBgVeU42e7EnI79vgDuCgAvD7fvKKXAZWJN+r2I6d6 4dDZEXC5Mx+tiXu+Q6VVNKf2wobc09qFoPMHEdrscY4ic6foCjuL/aYXQIWdjECyfdu3 9SkW3Qc1gGJljkDSrtwoHT1KdSbCqXBVyyLpfL1CxbT0+bBorY0bmyO2FF5uadIL01TR s5nA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=nzYxZfqmHZu3SMkFeRkte0uFwcfOH5DKN0TXvCovBVQ=; b=cor/e3hXpMT4IRs2rC59ACgLtHaLgsUvc0w9Sq5izXtzV6nS1DnBPtAPAlykCPlNtc mSUJLwXHFKi0K5VyZvNVpfVwE62iieMVGHiLvjuXyy0RkpnQpRzmYAugXA69ZvYWVdWw YSZGCfBrmLXO730H8Jvzop3V6prDe0HLFQPDYAt8rOGwzHOqatPYcC1YBsB4dIQLk7et rFHQxjQCQhVC6h2/K9j/C0Vg+g1uyBL0lPCY9g2yYIJCL1L/q5H/iudmg4eAn+Mmx5Dw n7ZHWAzz21YqTXghRP9uzPPIdxPm69hfYw4z+ZIc8Wf5k3J89Sj1sihRhof7sX8DiDIB FlEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b="FAxfvv/T"; dkim=neutral (no key) header.i=@gerhold.net header.b=cUG5TmSr; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j70-20020a638049000000b0053440fe17b0si9127043pgd.623.2023.05.24.11.27.11; Wed, 24 May 2023 11:27:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gerhold.net header.s=strato-dkim-0002 header.b="FAxfvv/T"; dkim=neutral (no key) header.i=@gerhold.net header.b=cUG5TmSr; arc=pass (i=1); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236143AbjEXSXU (ORCPT + 99 others); Wed, 24 May 2023 14:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233242AbjEXSXT (ORCPT ); Wed, 24 May 2023 14:23:19 -0400 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [85.215.255.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BD2398; Wed, 24 May 2023 11:23:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684952583; cv=none; d=strato.com; s=strato-dkim-0002; b=ob3b5pyUB/sVCDpeDAp5fvv4InkL31L0mFUlY+biIdMdNe/hZu6/GfaOdDLLVqoroU lAJLMzRoJqewgsfzX6YKxLfdefTALphvGBDFHPwPwqgisxqe7AL8QmOguhSO7Gc323UE A08eXy5pH6aQke93MPHWKVpyAzXRz+wjKsG//4yxWLUwiy/jAdlHyotf3S+CjvH+v4Ys 5x3A7yrn4N3Wfgsjpz2Ns1T4jQw87Wekuj6UjTy78PGPq/60pBNVv7qfNhfoh9OXOutK J9+/+2DiSvGenSFRmyte7wWhigq6KeoaWPyM9GxVjpgriSE3GxPQYjW5yqME9zzERlZ8 tuBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1684952583; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=nzYxZfqmHZu3SMkFeRkte0uFwcfOH5DKN0TXvCovBVQ=; b=FXHitUZG1ABgi+2GACyDpZgZ4Yd/mJEkMnRIlpfM28+uju14ghUutapCxbOcKFdzSB Ct235Pq+9X9A9/ysCAF/+hEHpeUsID+JMu6+/ji1RVkp2/XBVZUAdfZmPpIMhLOcD2PM I5KbGMmBXceQ1CDgDqe7KphO5aCWRJBgYfl2bJXVQrQy9jlkIa4JxfPg39NgV79+xshT Hah9sXemZ354/68TI27OmzHOYxMoVhpiUSgMO9h95x6eON2Dk+ZxtzHCuw6MTZC0q6q1 1WBNM29y+vZEBRrD37zTARCG00j6pLwxEz35tLwer0liHbOxvQU+4kny0WBBsHla18hE 83Qw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1684952583; s=strato-dkim-0002; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=nzYxZfqmHZu3SMkFeRkte0uFwcfOH5DKN0TXvCovBVQ=; b=FAxfvv/TeGW16P5eCa74Wz6dDYpPUw/xRuU4ENBPNM5ksHknmgcFWFcNHoHW/004j0 pJ25qXSumLLmnl9VWKhnDVbjkVAy+1epic8EU+gxZYJFOmlPIivw/gHxT0zgV5+AJMGa tyAceX5/4t98HYoEcWGQMqC8ks14BGmlDxO47Qu1fycOgmO9yDYFIh0x9CwKhrwzWt/T 1jH2CWZgqhA46nVvioNZNJORhk9XuDod8cXqqExwhZ3L3tKkO30s/Z1ekRODNB1kMTLu ix2iyuYGzWpuQq41rznrpbWuE5p4vNtCGr/GZ518gWxB8V0+KEkcDv/yD/V3TlpVXNXx OMww== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1684952583; s=strato-dkim-0003; d=gerhold.net; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=nzYxZfqmHZu3SMkFeRkte0uFwcfOH5DKN0TXvCovBVQ=; b=cUG5TmSrmsgFIBqfSlw5if33jRV9c1CyOKl2GVK6PuOG77KDiLSyWWP7sCUll8BB1D hzTpKoki8Q5iuz6zG9Aw== X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVOQ/OcYgojyw4j34+u261EJF5OxJD4peA8Z+J1A==" Received: from gerhold.net by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id j6420az4OIN3UKQ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 24 May 2023 20:23:03 +0200 (CEST) Date: Wed, 24 May 2023 20:23:02 +0200 From: Stephan Gerhold To: Bhupesh Sharma Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org, djakov@kernel.org, Anders Roxell , Linux Kernel Functional Testing Subject: Re: [PATCH v7 07/11] arm64: dts: qcom: sm6115: Add Crypto Engine support Message-ID: References: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> <20230519214813.2593271-8-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230519214813.2593271-8-bhupesh.sharma@linaro.org> Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sat, May 20, 2023 at 03:18:09AM +0530, Bhupesh Sharma wrote: > Add crypto engine (CE) and CE BAM related nodes and definitions to > 'sm6115.dtsi'. > > Reviewed-by: Konrad Dybcio > Tested-by: Konrad Dybcio > Tested-by: Anders Roxell > Tested-by: Linux Kernel Functional Testing > Signed-off-by: Bhupesh Sharma > --- > arch/arm64/boot/dts/qcom/sm6115.dtsi | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi > index 631ca327e064..27ff42cf6066 100644 > --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi > @@ -661,6 +661,31 @@ usb_hsphy: phy@1613000 { > status = "disabled"; > }; > > + cryptobam: dma-controller@1b04000 { > + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; > + reg = <0x0 0x01b04000 0x0 0x24000>; > + interrupts = ; > + #dma-cells = <1>; > + qcom,ee = <0>; > + qcom,controlled-remotely; > + num-channels = <8>; > + qcom,num-ees = <2>; I would also add the RPM_SMD_CE1_CLK clock here and then omit "num-channels" and "qcom,num-ees" (with [1]). It's not strictly necessary but will guarantee that the clock is running whenever the BAM is accessed (potentially avoiding crashes). And it seems to be the typical approach so far, see e.g. sdm845. RPMH_CE_CLK is used on both &cryptobam and &crypto there. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git/commit/?id=8975dd41a9dbca3b47f7b8dac5bc4dfb23011000 Thanks, Stephan