Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3111672rwb; Mon, 19 Sep 2022 15:21:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4kFiZSql+7MCShqymW8OHtSPiMsQzoKYnuIJ9t+p79378XnRIvaR7CxZuxqVtZSRj2Jg1c X-Received: by 2002:a17:907:6e10:b0:781:19a3:53d0 with SMTP id sd16-20020a1709076e1000b0078119a353d0mr7402230ejc.215.1663626108165; Mon, 19 Sep 2022 15:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663626108; cv=none; d=google.com; s=arc-20160816; b=0b/5odlJ9TcfYajUFONXcQfVOeECn0QterKNiboDeCP2Y1yvUPetG2+waOBV74yL2F CHWLcad6lj4oxbT3HmlEEh6qhYTL0OU+4xUFo/sOC0t4hxt/1gNMclmPi7p2Ew0XRO7K DQmTAQtZIjlyK37l/wGRETj7fqKg4JCM6IWAwDnYEV4QbKOGAqe6x7dkv4MbrzRPuDeg 5FTsGEzqseaBUMBe8KnsmyvbGHYFc/VywNC1lYUUmQRgpNWrWRBuoUWXvYjHNbsUAIPQ +22t7KmmxCP5wiNqsmQAw5POB+UXfnX1I68Wc4VRl+InLC1sNEawZed1kTH2zHu2NwUb PNVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hFNxb6Whue0oJiz38AdcZGTZ6n+cVRFbGd4gEmlGGD0=; b=aHlzRWp/XsBCi2ZoZSjdcwtc2Wc9ce004HqRoGqGEfBSjxyXB2m47gezl3xzt3UEOM Kha1NTzNBbSF6zs/GkYf563SuarDcITRUdkbwslSWgxJn6cuJwPpuvEPyVfaXC1zoSPj W1TOSjO+PHRL8STxfF11JiGRBE2TFlKMQob04y0g853AF9bYzf04n3SW17DScCLd1w5Y npSC7bEF3acSwtut7cGiwSwNCvXbDs05seKwuyjADf+/MohvHf8qdhPiS8LTrIK0y9Z2 pvhIDLTC8Jgv0vvRGb24XGMYZZyIiRBYXus9cEMH2gaJIxAmWS30mDrCfCOfA55hmr3j WUew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jP7rxFie; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a50fe04000000b00442edebe687si8474503edt.633.2022.09.19.15.21.22; Mon, 19 Sep 2022 15:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=jP7rxFie; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229863AbiISWP3 (ORCPT + 99 others); Mon, 19 Sep 2022 18:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229839AbiISWPX (ORCPT ); Mon, 19 Sep 2022 18:15:23 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACA7840E1D for ; Mon, 19 Sep 2022 15:15:21 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id o99-20020a17090a0a6c00b002039c4fce53so3350582pjo.2 for ; Mon, 19 Sep 2022 15:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=hFNxb6Whue0oJiz38AdcZGTZ6n+cVRFbGd4gEmlGGD0=; b=jP7rxFieQRiXFRZ2axWLx3gqRhoWsQMcKRvVznGi22vxx5FOla3IqFrAKL61+6a2xE tPNaZQwXIy7FPgRF+KnuVXptIEBAJfZRsxqTd8R0NciWeRILAQg4cw90+rxZ+rL+E6m+ hrf9wgJpWDOBtK4nbyUzn9b/tN0wvAYldTkVCJK/pwZ1Xqrhi6MnRLQSUnGb6kJMl3x/ 6+Sp6lghVOHbRBX3+463BzQNN2z9tazJdl3VIWuyGLM+duRdIqfeQiyRdDPaEGOQT7uk bgYoy7W3H39Ilh8s7fo3YA9lRweXp3I4EMtwVykO0c2LCndnD1BH6Zd9tz94EBw+06k8 GGmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=hFNxb6Whue0oJiz38AdcZGTZ6n+cVRFbGd4gEmlGGD0=; b=tJu9PVpbXjbwgAHwMFkUZ6JzyVfQgilgQo073gjNCXZ0fkziz3EcSVOdeJ9QanVUbW xa0FbOuaHev77ZdOxqXhHu7mhmEWXgAU4vCOH8QZf0ldnBwjLVl5aqd++DBIrlrRwASh pqN3ZoHQ4+ntklja6RPFfURG6VIZF84qEE/w90L1rI/cFEDU0SSY7IYX/owBcDzB7NU2 I6VD75/QsDOqQKo8yKpGXfx/mkE1p2jLGKWwlR3FZbtpkGziai5X8sA91Yr0Uh4zS6dh IXZ9IuW+uLtwDQGiDgc2sFnWnuWbgdzgAg0hfK+7O4pfde+yjjpRVi3Ve01Uygjd8krd VnSg== X-Gm-Message-State: ACrzQf34Aq83boKOYXyQOGEgra4AWNSiHEK9EqaoSQfdDFB9rWLUIEoR 5LY8I4BjUdwbxBs8Gv1KGFsTew== X-Received: by 2002:a17:902:d54e:b0:178:2da7:1bea with SMTP id z14-20020a170902d54e00b001782da71beamr1797101plf.161.1663625721063; Mon, 19 Sep 2022 15:15:21 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id b22-20020a170902d89600b00176ab6a0d5fsm16198966plz.54.2022.09.19.15.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:15:20 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, Jordan Crouse Subject: [PATCH v6 0/4 RESEND] ARM: dts + defconfig: Add support for Qualcomm QCE block on new SoCs and in defconfig Date: Tue, 20 Sep 2022 03:45:05 +0530 Message-Id: <20220919221509.1057574-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org Fixed the typos in the cover letter while resending this version. Changes since v5: ================= - v5 can be seen here: https://lore.kernel.org/lkml/20211110105922.217895-1-bhupesh.sharma@linaro.org/ - As per Bjorn's suggestion on irc, broke down the patchset into 4 separate patchsets, one each for the following areas to allow easier review and handling from the respective maintainer(s): 'arm-msm', 'crypto', 'dma' and 'devicetree' This patchset is directed for the 'arm-msm' tree / area. - Addressed Rob's, Vladimir's and Bjorn's review comments on v5. - Added Tested-by from Jordan received on the v5. - Also added a 'defconfig' change where I enabled the QCE block as a module. Changes since v4: ================= - v4 for sm8250 can be seen here: https://lore.kernel.org/linux-arm-msm/20211013105541.68045-1-bhupesh.sharma@linaro.org/ - v1 for sm8150 qce enablement can be seen here: https://lore.kernel.org/linux-arm-msm/20211013165823.88123-1-bhupesh.sharma@linaro.org/ - Merged the sm8150 and sm8250 enablement patches in the same patchset, as per suggestions from Bjorn. - Dropped a couple of patches from v4, as these have been picked by Bjorn already via his tree. - Addressed review comments from Vladimir, Thara and Rob. - Collect Reviewed-by from Rob and Thara on some of the patches from the v4 patchset. Changes since v3: ================= - v3 can be seen here: https://lore.kernel.org/linux-arm-msm/20210519143700.27392-1-bhupesh.sharma@linaro.org/ - Dropped a couple of patches from v3, on basis of the review comments: ~ [PATCH 13/17] crypto: qce: core: Make clocks optional ~ [PATCH 15/17] crypto: qce: Convert the device found dev_dbg() to dev_info() - Addressed review comments from Thara, Rob and Stephan Gerhold. - Collect Reviewed-by from Rob and Thara on some of the patches from the v3 patchset. Changes since v2: ================= - v2 can be seen here: https://lore.kernel.org/dmaengine/20210505213731.538612-1-bhupesh.sharma@linaro.org/ - Drop a couple of patches from v1, which tried to address the defered probing of qce driver in case bam dma driver is not yet probed. Replace it instead with a single (simpler) patch [PATCH 16/17]. - Convert bam dma and qce crypto dt-bindings to YAML. - Addressed review comments from Thara, Bjorn, Vinod and Rob. 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 (qce) is available on several Snapdragon SoCs. The qce block 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 sm8150-mtp, sa8155p-adp, sm8250-mtp and RB5 boards (see [1]) and also with crypto self-tests, including the fuzz tests (CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y). Note that this patchset is dependent on the dt-bindings patchset (see [2]) sent to devicetree list. [1]. https://linux.die.net/man/8/cryptsetup [2]. https://lore.kernel.org/linux-arm-msm/20220919195618.926227-1-bhupesh.sharma@linaro.org/ Cc: thara.gopinath@gmail.com Cc: robh@kernel.org Cc: andersson@kernel.org Tested-by: Jordan Crouse Bhupesh Sharma (4): ARM: dts: qcom: Use new compatibles for crypto nodes arm64: dts: qcom: sm8250: Add dt entries to support crypto engine. arm64: dts: qcom: sm8150: Add dt entries to support crypto engine. arm64: defconfig: Enable Qualcomm QCE crypto arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 2 +- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 2 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 +++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 28 +++++++++++++++++++++++++++ arch/arm64/configs/defconfig | 1 + 8 files changed, 62 insertions(+), 5 deletions(-) -- 2.37.1