Message ID | 20231216141234.417498-1-jiajie.ho@starfivetech.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-2218-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp244039dyi; Sat, 16 Dec 2023 06:13:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfaxs2bsoLZ9ozI3+W65coD3qrl9xc9iyGcdp9elJGcEnPlssmKwUVU4YQKFQN41I0HGk1 X-Received: by 2002:ac8:5707:0:b0:425:4043:50f7 with SMTP id 7-20020ac85707000000b00425404350f7mr19137793qtw.134.1702736012848; Sat, 16 Dec 2023 06:13:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702736012; cv=none; d=google.com; s=arc-20160816; b=fDodkF/8b9+GaTcz90Q9qePdO+nPxyKY6yS1o19DTncypT8kAPftypUD7b3kN4ABvn erNKgMc0haXqQLq/rH46IL0Zu7hErzgGQIIMdgAtzKVh12Kf8kstbkQj8y4PRn2dPrcF IUUdjk5MUgUwwywqBx6QWAy+Yl68GIz9Q8IL5zYPa6xo0jCp7jLb75Lh1W+ehZvBTicY YUhIrO9XfTuc/k4q6YEq2kEhCbUCJw69W6Eu+ch4de7hSh4XQa51z1csN5XCjT59Dr+4 QwlyhsURq9bjK6Yw9WQJxPS9d8CRttYibzWsepRwdddyPDQq9ykFfD6kjbsjiX9K5kwY 8kWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from; bh=ZMNTekFLJVbVkQFPbieAWcJ4Exto7lpBxzi5KhpyAZQ=; fh=M1ffZiQBZp+wzMzUQjjhonHnNS3hL08RjbHiZ/37oNY=; b=quAoL978tH9dh05e8gHdD5GsFFY3yJghPpztXIVh9nKAjuPNG4X7R86oXd/W5uxM+z P4QE+5aAM0RF0AvEP1I4fXIKw8Kul2YDv80pDzzke2MfXBwt5B5fkMN+C7OZtFiO2vAt S8f1uD5SIXbbffcS7bxJBWv20igXBDtYyPzwk0dEJa7ndO//Vfl0fqD/vKgOh5qSya9u YihCARRB9//6YXKUPXptfPSQSVJHF+Vc7tNIElo1APnaycoM+75WVcz7ZDRzvsDyx0nP 64IhQoQbCOpTh71hdAl5w3+FrQiqc09c6g6bSE7qfRmrm9JIUf/u2obpKBatzD4sU23+ +KYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2218-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2218-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cj19-20020a05622a259300b004237dbacfcbsi20321896qtb.778.2023.12.16.06.13.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 06:13:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2218-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-2218-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2218-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A13821C21883 for <ouuuleilei@gmail.com>; Sat, 16 Dec 2023 14:13:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3856E30353; Sat, 16 Dec 2023 14:13:08 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D0712D797; Sat, 16 Dec 2023 14:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 304B024DB83; Sat, 16 Dec 2023 22:12:51 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sat, 16 Dec 2023 22:12:51 +0800 Received: from ubuntu.localdomain (161.142.156.108) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sat, 16 Dec 2023 22:12:46 +0800 From: Jia Jie Ho <jiajie.ho@starfivetech.com> To: Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, <linux-crypto@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 0/5] crypto: starfive: Add support for JH8100 Date: Sat, 16 Dec 2023 22:12:29 +0800 Message-ID: <20231216141234.417498-1-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785448117787066548 X-GMAIL-MSGID: 1785448117787066548 |
Series |
crypto: starfive: Add support for JH8100
|
|
Message
JiaJie Ho
Dec. 16, 2023, 2:12 p.m. UTC
This patch series add driver support for StarFive JH8100 SoC crypto engine. Patch 1 adds compatible for jh8100 to dt-bindings. Patch 2 and 3 updates current driver dma usage for compatibility with different device variants. Patch 4 and 5 adds new sm3 and sm4 algo support to device driver. Jia Jie Ho (5): dt-bindings: crypto: starfive: Add jh8100 compatible string crypto: starfive: Update hash dma usage crypto: starfive: Use dma for aes requests crypto: starfive: Add sm3 support for JH8100 crypto: starfive: Add sm4 support for JH8100 .../crypto/starfive,jh7110-crypto.yaml | 6 +- drivers/crypto/starfive/Kconfig | 28 + drivers/crypto/starfive/Makefile | 3 + drivers/crypto/starfive/jh7110-aes.c | 583 ++++++--- drivers/crypto/starfive/jh7110-cryp.c | 65 +- drivers/crypto/starfive/jh7110-cryp.h | 102 +- drivers/crypto/starfive/jh7110-hash.c | 275 ++-- drivers/crypto/starfive/jh8100-sm3.c | 532 ++++++++ drivers/crypto/starfive/jh8100-sm4.c | 1107 +++++++++++++++++ 9 files changed, 2327 insertions(+), 374 deletions(-) create mode 100644 drivers/crypto/starfive/jh8100-sm3.c create mode 100644 drivers/crypto/starfive/jh8100-sm4.c