Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1256005pxj; Sat, 8 May 2021 12:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTjYWm/bbc7nbp6LLTGZ55kCMOtLzvrI6o6ytxOAd3nO3lbuYHKlMu0Zyp3/iGFPmIsnVb X-Received: by 2002:a05:6e02:1aaa:: with SMTP id l10mr14853164ilv.29.1620500412850; Sat, 08 May 2021 12:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620500412; cv=none; d=google.com; s=arc-20160816; b=oF6sF5vJ3+yoBajaghZtwM5t9ZiIP0Rs/V0EWdDFnvVIRc70sHAw8QGBxz6SniKKZp LhJOPhves12wO6qC8oz9q1NzEpulg+nVJkqQU9BbB681YcV7ypZQRX16Ic6wZ1jGAPwg 5eGLx3wSpC2q+l4kyL+1i9KzLkgM6IgckJf4oXSlzscHEhHSzIO0cjeLratyxSfh1nqE FgjvDYvtHGPZWRtp/IcxQskHe1dJn553+L8n7J9ZRqsXJ32TOet0z71W/YdTOVItHiLI JT05/i32LTk+DZKO/YWPwa1xC5imRirvdCtg4vKBEgk4G9nOj815WQyPNziz+3D0CGRc 9jHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=IF7Fac0YjVDycbq5PH+VvNCEX38AVPA4fKxY5+X2pvM=; b=Ci8aRaj0lpX4CjAvFoW4vaOFGPGFiNwAPVP4wHrULoAk4qmzRs/53TnEnjp9urTZGt IPhkFRHbHx2xfL/vq298VZiHMHwhC3QhxFk1S72hFJOiGnjOAB1xBk/U/eU8QofoYiiZ kAOIA+N/fquKLcCY21w9mt6Wtg3HX3R2K8/LjVqpbsh8qNvmHJjmkDxie0TQeElanF/a rBkW4pGv3PcTdGYC0hlU5GbxVvBKFxgkWK3lL7rCitopkHV0vJJVrTlL53qDrTl0eqG/ c/JNTAAyWurPbivy1pA16Kxoycq22iTRJnOyBhBrqskoIwiLXaCZdL4uBW04jX/qv2DS LJKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PUqcaScE; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 q145si10603475iod.36.2021.05.08.11.59.46; Sat, 08 May 2021 12:00:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=PUqcaScE; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S229667AbhEHS5U (ORCPT + 99 others); Sat, 8 May 2021 14:57:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbhEHS5T (ORCPT ); Sat, 8 May 2021 14:57:19 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01405C061760 for ; Sat, 8 May 2021 11:56:17 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id g15-20020a9d128f0000b02902a7d7a7bb6eso10833469otg.9 for ; Sat, 08 May 2021 11:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IF7Fac0YjVDycbq5PH+VvNCEX38AVPA4fKxY5+X2pvM=; b=PUqcaScEb9tsf7vUvHj3CnZsCwzWf3odcLsWYZX9AtdI1hc4sT58bXGsUhazsSPyWI 6Q6kBqJcVBJZgaxWMz3M7RZJYw4eqyTkDsILIbnC1E1xxqSzc316q931UtbagBNF20ma 156h+ehNaRPmn35EfI/9L4A5U6GjV4KBICyzI1eHarm/92TJyfZ0rREoWPcNWGegyDVv L1yO/eZLul0v1cZ41ndHwaMbCGiPESt4zyISiWKNkIHF5wwVjA84EkC9VkLvHvxF0RRb UzbBBWKZy5vRQlr9iE1nZLtvcescqeEuUx9GHyqoND2oK+jyGr+AZVrK+LrPt6b5XP1H j2CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IF7Fac0YjVDycbq5PH+VvNCEX38AVPA4fKxY5+X2pvM=; b=g/KiirOVuiryTHuEbJxEj9441WCwyIR6lE+oG3lrGDE2P9tC1Y5iiTQtvYbxVbDBEO IePrNyFElHy8XkIoSWAA9xSOJB5sP3TknqDuTgOHtScWwJ71NA2KK0avpjw6UhmqGIoY 4dFOQtseadyM5wlJLbvnKTRNHv/1IjzO7hWGjKNI8C/OgJaYVGqHlJPJ3wjAYiqCYPbe Dh9l9khG2LmZcxj0E3SOHPV3Yzjf9woSrf88n/jb9kPtXQnnswpv6IyROw0P4bIG0VH4 cWUVPlybt6ZvJG0ecbtkO3Oee9cXw2Hn2qZGamwue0725mw+pZnIO9vyJXPytPg95mkL y6Fg== X-Gm-Message-State: AOAM532T/UEcxaMkLgw2GGWEPASfei7qig6q/zSYP6nfvSMZynj/QOD1 ISzDbClgOBVWFLojfazwGVMQi1W3/bMbriD6AJPceQ== X-Received: by 2002:a9d:51c7:: with SMTP id d7mr5449017oth.51.1620500177155; Sat, 08 May 2021 11:56:17 -0700 (PDT) MIME-Version: 1.0 References: <20210505213731.538612-1-bhupesh.sharma@linaro.org> <20210507211434.GA2879094@robh.at.kernel.org> In-Reply-To: <20210507211434.GA2879094@robh.at.kernel.org> From: Bhupesh Sharma Date: Sun, 9 May 2021 00:26:06 +0530 Message-ID: Subject: Re: [PATCH v2 00/17] Enable Qualcomm Crypto Engine on sm8250 To: Rob Herring Cc: linux-arm-msm@vger.kernel.org, Thara Gopinath , Bjorn Andersson , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , Vinod Koul , dmaengine@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Rob, On Sat, 8 May 2021 at 02:44, Rob Herring wrote: > > On Thu, May 06, 2021 at 03:07:14AM +0530, Bhupesh Sharma wrote: > > Changes since v1: > > ================= > > - v1 can be seen here: https://lore.kernel.org/linux-arm-msm/20210310052503.3618486-1-bhupesh.sharma@linaro.org/ > > - v1 did not work well as reported earlier by Dmitry, so v2 contains the following > > changes/fixes: > > ~ Enable the interconnect path b/w BAM DMA and main memory first > > before trying to access the BAM DMA registers. > > ~ Enable the interconnect path b/w qce crytpo and main memory first > > before trying to access the qce crypto registers. > > ~ Make sure to document the required and optional properties for both > > BAM DMA and qce crypto drivers. > > ~ Add a few debug related print messages in case the qce crypto driver > > passes or fails to probe. > > ~ Convert the qce crypto driver probe to a defered one in case the BAM DMA > > or the interconnect driver(s) (needed on specific Qualcomm parts) are not > > yet probed. > > > > Qualcomm crypto engine is also available on sm8250 SoC. > > It supports hardware accelerated algorithms for encryption > > and authentication. It also provides support for aes, des, 3des > > encryption algorithms and sha1, sha256, hmac(sha1), hmac(sha256) > > authentication algorithms. > > > > Tested the enabled crypto algorithms with cryptsetup test utilities > > on sm8250-mtp and RB5 board (see [1]). > > > > While at it, also make a minor fix in 'sdm845.dtsi', to make > > sure it confirms with the other .dtsi files which expose > > crypto nodes on qcom SoCs. > > > > Cc: Thara Gopinath > > Cc: Bjorn Andersson > > Cc: Rob Herring > > Cc: Andy Gross > > Cc: Herbert Xu > > Cc: David S. Miller > > Cc: Stephen Boyd > > Cc: Michael Turquette > > Cc: Vinod Koul > > Cc: dmaengine@vger.kernel.org > > Cc: linux-clk@vger.kernel.org > > Cc: linux-crypto@vger.kernel.org > > Cc: devicetree@vger.kernel.org > > Cc: linux-kernel@vger.kernel.org > > Cc: bhupesh.linux@gmail.com > > > > Bhupesh Sharma (14): > > dt-bindings: qcom-bam: Add 'interconnects' & 'interconnect-names' to > > optional properties > > dt-bindings: qcom-bam: Add 'iommus' to required properties > > dt-bindings: qcom-qce: Add 'iommus' to required properties > > dt-bindings: qcom-qce: Add 'interconnects' and move 'clocks' to > > optional properties > > arm64/dts: qcom: sdm845: Use RPMH_CE_CLK macro directly > > dt-bindings: crypto : Add new compatible strings for qcom-qce > > Please convert these bindings to schemas. Ok, will fix it in v3. Thanks, Bhupesh > > > arm64/dts: qcom: Use new compatibles for crypto nodes > > crypto: qce: Add new compatibles for qce crypto driver > > crypto: qce: Print a failure msg in case probe() fails > > crypto: qce: Convert the device found dev_dbg() to dev_info() > > dma: qcom: bam_dma: Create a new header file for BAM DMA driver > > crypto: qce: Defer probing if BAM dma is not yet initialized > > crypto: qce: Defer probe in case interconnect is not yet initialized > > arm64/dts: qcom: sm8250: Add dt entries to support crypto engine. > > > > Thara Gopinath (3): > > dma: qcom: bam_dma: Add support to initialize interconnect path > > crypto: qce: core: Add support to initialize interconnect path > > crypto: qce: core: Make clocks optional > > > > .../devicetree/bindings/crypto/qcom-qce.txt | 22 +- > > .../devicetree/bindings/dma/qcom_bam_dma.txt | 5 + > > arch/arm64/boot/dts/qcom/ipq6018.dtsi | 2 +- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 6 +- > > arch/arm64/boot/dts/qcom/sm8250.dtsi | 28 ++ > > drivers/crypto/qce/core.c | 112 +++++-- > > drivers/crypto/qce/core.h | 3 + > > drivers/dma/qcom/bam_dma.c | 306 ++---------------- > > include/soc/qcom/bam_dma.h | 290 +++++++++++++++++ > > 9 files changed, 457 insertions(+), 317 deletions(-) > > create mode 100644 include/soc/qcom/bam_dma.h > > > > -- > > 2.30.2 > >