From patchwork Thu Nov 19 15:52:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 328423 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp471542ejb; Thu, 19 Nov 2020 07:54:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF4TjYewbUT+Lmib8yfEBDvPR5O9bR/aypxEu6EqlWwIoQQmOXbppit0noJMXDnxUVKONv X-Received: by 2002:a17:906:1186:: with SMTP id n6mr31823192eja.89.1605801242256; Thu, 19 Nov 2020 07:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605801242; cv=none; d=google.com; s=arc-20160816; b=ufOiQEs7+VPhvFAK7Z7JH4Mo+VHZir9l4dOJhR9hhywwh2hn3exb7bVvfWBH3yuB6w wD7NnvH+IYupQIMaFT9s5eIJZ28AgLiLLUIWenHdQUXaT0nc9gZjRFh+9fLlXZ7att5Z ggK869Q7N4Px2PXm/9MeclrMnvz1oTt4sAb9GAzTFpV1vNGXHxJbQuPlJshRKFafj2EQ IHavsO0lcqj7g6iAG5a3TBU/r7hV6OHUWCkadRjUAm5xVeROBgYga5uKiulS+pi1CDze MUoZBlRLCqFb1qyVa97ieuoIK5P4QT9I4ZT60vWmNyBBgsEK+xpEXMpDU6LYj+Ev7NSx qwCg== 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=bvhfCLHTYs7l5lsgLwNrBMAcXk6yVVYBXG3jF5cS+kE=; b=EIBZcrZEgnAIh9OjxQxQI3tacbjUBVReoa2qI2EMszDgrkpJtJVIocm0D1NK/WBNuC JuzYp3n9M0R/3m9vbF1c99FFpaVh/gFyG1KxhRdHe38SrHaX4MEq4waol8X01y4/BC6z frPEijK7fPgpyCdBdwAyoYk3v0G6i4bKjOoJLe7CyzwwAIvBAf/rwsmMUTaIj/dxKTfD jLHIOzJxEL+t0LH3OXSI1ZNFMksVr/odZ1IBpmWqnHGnRwiERgscuYAiG9s/fAnHR27c G/A4Ife9T9heZKo2zYJwo6UBYRl/LnONPVV6J69sdqrGmrd7JLqb6FTIhl8o25mYI0Oi 4lAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MjOP4uTZ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 ok23si67063ejb.243.2020.11.19.07.54.02; Thu, 19 Nov 2020 07:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=MjOP4uTZ; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728826AbgKSPwi (ORCPT + 6 others); Thu, 19 Nov 2020 10:52:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728857AbgKSPwg (ORCPT ); Thu, 19 Nov 2020 10:52:36 -0500 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C7E6C061A04 for ; Thu, 19 Nov 2020 07:52:36 -0800 (PST) Received: by mail-qt1-x843.google.com with SMTP id i12so4700329qtj.0 for ; Thu, 19 Nov 2020 07:52:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bvhfCLHTYs7l5lsgLwNrBMAcXk6yVVYBXG3jF5cS+kE=; b=MjOP4uTZ8G2drLy+R/RvDTmkhN1lqBygMFznKx7ziyTeTkXMBCOuGlBlydlYEhLWX7 ngUt75ThmQcdsQuf23omAO99hc0OHT4DMkNHzyw35nmR0qg0s6at9GgiN+un8UB0ZKyt CN4stsYDR09rcHDLMSmGEJrVrd4zlDh1e4KeQIIWdH5+qDmKUYeCd//oeo/cqgs6nsdt j8qQee8N+1vo5OCO9WkAZ4udArOify2tn9Nx90pk4hRlDz5UHBL6bXfaCzizk8pLV5yO Hp4BsToydhApUMbA8R8RMc5zkYXqh6w6yNqGjPM5FdTUNrV2PYxa4yX/hHiDjNfprfqw Yggg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bvhfCLHTYs7l5lsgLwNrBMAcXk6yVVYBXG3jF5cS+kE=; b=frZ298OsLysu57ahgocJChS+ayCGU+U3RcFoRz8qpILN12KgfW66wwglY4m3Tr9Zbm r+8ADaWBmu8fOOY4kDmCEHXM4DxO12A/LlNgpcKE6jSWoMZbOydp5uNTxCffVoP+X2V0 67dOnZSeInkHY01edqK7xheh4XgT5Dm0yv1yj7JErv0xL9kYlJ2Y9PxNSnAk9PGZw32T 34tkcVLKXkZ3lt7NZJ4rF5/xs7PPcYo7OaWg02dvgcYc6Hn3kHWtYeaWzRNuw1mw7fCv hfRP7tk6jt/3oJ2zCiIQTnIbo4XaCJV9N95QnhY2Nl1G1B+l6mJYd3iu6lV11UerKwjd 5u+A== X-Gm-Message-State: AOAM531xQgDiSDvHJtnalu+39Iw+H3amRy4oQXyeWIbC2bkvrEuWr/48 TrrAyZWwyGxqITI5MhQuEgNalA== X-Received: by 2002:aed:2084:: with SMTP id 4mr10469682qtb.81.1605801155263; Thu, 19 Nov 2020 07:52:35 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id g70sm127290qke.8.2020.11.19.07.52.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 07:52:34 -0800 (PST) From: Thara Gopinath To: agross@kernel.org, bjorn.andersson@linaro.org, herbert@gondor.apana.org.au, davem@davemloft.net, robh+dt@kernel.org, sboyd@kernel.org, mturquette@baylibre.com Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [Patch v2 0/6] Enable Qualcomm Crypto Engine on sdm845 Date: Thu, 19 Nov 2020 10:52:27 -0500 Message-Id: <20201119155233.3974286-1-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Qualcomm crypto engine supports hardware accelerated algorithms for encryption and authentication. Enable support for aes,des,3des encryption algorithms and sha1,sha256, hmac(sha1),hmac(sha256) authentication algorithms on sdm845.The patch series has been tested using the kernel crypto testing module tcrypto.ko. v1->v2: - Rebased to linux-next v5.10-rc4. - Fixed subject line format in all patches as per Bjorn's feedback. Thara Gopinath (6): dt-binding:clock: Add entry for crypto engine RPMH clock resource clk:qcom:rpmh: Add CE clock on sdm845. drivers:crypto:qce: Enable support for crypto engine on sdm845. drivers:crypto:qce: Fix SHA result buffer corruption issues. dts:qcom:sdm845: Add dt entries to support crypto engine. devicetree:bindings:crypto: Extend qcom-qce binding to add support for crypto engine version 5.4 .../devicetree/bindings/crypto/qcom-qce.txt | 4 ++- arch/arm64/boot/dts/qcom/sdm845.dtsi | 30 +++++++++++++++++++ drivers/clk/qcom/clk-rpmh.c | 2 ++ drivers/crypto/qce/core.c | 17 ++++++++++- drivers/crypto/qce/sha.c | 2 +- include/dt-bindings/clock/qcom,rpmh.h | 1 + 6 files changed, 53 insertions(+), 3 deletions(-) -- 2.25.1