From patchwork Tue Nov 17 13:47:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 325457 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4182153ils; Tue, 17 Nov 2020 05:49:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrgWLUctIDRTt8x0Au5KMx4LXykyh1gbw7No21ZJkPX+o4PX6EN3YJyUBQUFbgiWH56rEh X-Received: by 2002:a17:907:42cf:: with SMTP id nz23mr19716146ejb.138.1605620940813; Tue, 17 Nov 2020 05:49:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620940; cv=none; d=google.com; s=arc-20160816; b=mji4MgOsUAme2N6l4g5iVnGcq3hwf6iKjQnNFKJW9ig8l9f7stZNxkeyFHizRM3TjD wUCUECQLOqoFJB2QWtBqyeHG6FQgvytorQ5Z56GVzQrfSPS+iWFgE1rv10y3+O02VH9z nQ11peRH0ya4ngrOm0s0YquZRHwyp3GyE+y/81L0Uio7B69vV+OLPzAZq8B+XOwlGumz X0QM1EFmFXL5I72B4Foc+EO2vQ890rKBSut2tXAQWquip57HsvMcqiUhA/jg4i0eO3WI lQSuZP2nQ56A3ZAquuvY+tLmjUe9Thr81MDzLvrTOtuuXHSSPZMXyp7wTHIzC0TJHt6W q8zA== 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=XGZNfBnMhcoajJLQ/PaK163KVnh/WRfsEYaW7uieePg=; b=svqia/23BaqxWSX5gtZMnoCCzMobl4kv2fkEC0aG9l+gJNCF/NZm4qGTbHfnUxLqZD iK7P2q5XPEb6s6bpI2fjz8PpEugC3Cd6YghclqXwOYa2O00/+O66V2IrqjtlqbZyiyUK 7iv6Qnat7ZCrriDa7jPTgHIMfouJ0eMxV7ji5BsPbL2Tw7WrgnJQ8t/BgTVr1KQLLt8E b/ZzYJqoTS9zijIQz2fv/5MqYy5IqyUc1lBn7rXdreMRwPmdRGjgLomofdlc6gsiPvxl zRVcuK4oRm7094bK3v0yum0KdRrjfWt80FAKXT8RRqSIpHalnsKeMlYOzAP/ti2pIl+L eZjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uITHCquF; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 b26si14421865edy.172.2020.11.17.05.49.00; Tue, 17 Nov 2020 05:49:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=uITHCquF; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S2387698AbgKQNrS (ORCPT + 15 others); Tue, 17 Nov 2020 08:47:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733284AbgKQNrR (ORCPT ); Tue, 17 Nov 2020 08:47:17 -0500 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFDB1C061A04 for ; Tue, 17 Nov 2020 05:47:16 -0800 (PST) Received: by mail-qk1-x741.google.com with SMTP id q5so20300023qkc.12 for ; Tue, 17 Nov 2020 05:47:16 -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=XGZNfBnMhcoajJLQ/PaK163KVnh/WRfsEYaW7uieePg=; b=uITHCquF0CJt2Uab+/hGYZm0vWFhcGH9FRKGyQXczn6wRa24Wy4LVxkn98bIOrZVOh qKY0FmAmQLVAbapXIlEJsmkbgjcWmZvCvr8+EkkpNNOXelHLN9exGQ0OdpUkW/GQsXIo d/uIsmLcPBKghxGUHgSOGc6oy9mo4MyJnFCV5B/8DhL/l6wKzc1lEvIrTK4Bv881A2/T mz3hv1zc0NbhEgWLJLsTUemzWAH1rQE6ijp1+ntSy6/FrW56sYkQmYUqqeoGvgfpVhz4 Y8CORkb3QWgvfNsuaYXbqBWgt3XxnUVuhR6YPLGLjpq2RovdyKq+Y2Q3spgD/zVWZBYq CSbw== 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=XGZNfBnMhcoajJLQ/PaK163KVnh/WRfsEYaW7uieePg=; b=D5TUTw/Ulw3iEmA87OxzhckGtjwCKfyhqYoKxI76Dm6Fu7HET3OMOA90AsHlOJYixp AR1pTVSyyjjhu0Upo74VwQHhRid3jHgiwaPIvQW3g60a4/9KR7TyVz6z4Zq/VkBQluyD h1kPGWpaFhIaeBA+1oBGjjJrOB2xf5oLyk67JuM/ylKN3+nfw8oFQfinDzETugReegNV xeqLXtFcwU9uXwAFEYsmigwKBjrTdBEN5Yh5wUCI7fMYsMJuJ1RBH080F8Y/mDcEwfVP e9EMqJhkbzZykmQDh5rYEZNcxCg8EKhAagnOsZdvGnz8mcp5VJRoj9xJXpYp1vCBcq1Y g4aw== X-Gm-Message-State: AOAM532MydcV2nwjYM6iBpNAyI+InjKFYAyEXHTOLPdMZiIqydF8y/Wk 8sgR9VwRRg/iPv6CYLVjeDkqaw== X-Received: by 2002:a05:620a:5f6:: with SMTP id z22mr19190467qkg.211.1605620835911; Tue, 17 Nov 2020 05:47:15 -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 t133sm14607355qke.82.2020.11.17.05.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 05:47:15 -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 0/6] Enable Qualcomm Crypto Engine on sdm845 Date: Tue, 17 Nov 2020 08:47:08 -0500 Message-Id: <20201117134714.3456446-1-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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. 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 Reviewed-by: Bjorn Andersson Reviewed-by: Bjorn Andersson