Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp219759rdb; Sat, 16 Dec 2023 06:13:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7VANmNr4af1c2ZHz8qEZbAkeJZ0KttORakHmv2cc+6s9Uiv0W3SkBRCeeJ5AIcq69boJc X-Received: by 2002:a17:903:1245:b0:1d0:9e84:6a93 with SMTP id u5-20020a170903124500b001d09e846a93mr8220400plh.81.1702735992609; Sat, 16 Dec 2023 06:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702735992; cv=none; d=google.com; s=arc-20160816; b=TUM68jExtK7wnMupCvpIH4+r4VxQN65a87JNCOLyWpe0JpZaICWVwMf5xmjLIOPNhG CG6V9fv9V/OXDJU8yfGF4uDyoS5TD1tQ/znjLLASAcy8xMwZ54QVDT5Dj1CmkpIqF/jF LnDPSbno9DPNBK4F9tDIBAOdC0AQla1o/gdHDuESCH7VPb2VIYuZpLKOsCe/xlcWZOBi rTZo2U9p0/qMQvBETX6bz3HxDfEhmOWe/cPVLJzjYGkjFKA3RcLsZ9j08YImFRDNlLWY SZWDC47TDHqj7sgDM/KZvuGKLQCwDzFhYsMF1D266SG6r/ReQJc5kl+sODFllXOBkBXl CVxA== 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=niq1+MqZ0NhZ6m9/6NQxeM4ESJmci2vO4JMJAXtvDF/ifSA6tsxGkIsj3sPJIYeooS HKGYToCk8SojlKOURb/sODyicTTdAMQpHTEq8V7rWMJZxdZoESOe2OviX4emx/x/8uTo oI7odILIwMLGuXOdUBF05Lkgbi68cCP12JWeOvF/vUItbAtlO7ku8WQImkQq4OmCzR+N TRPrklG8GStJSgPZaB0nuxvSgQsKP/x8wm0/zNuLWD8ofTcBk7K9KJJiwg+E4DXuqHMY 45om5JL5Btl2yE1F9jrCo9WoZEQYNpGsz0lNrko1NAZSmX8TtSPWwhMr2KQ2U4nAmpJg iP9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u2-20020a170902e5c200b001d3479a9d60si7253284plf.499.2023.12.16.06.13.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 06:13:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto+bounces-881-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-881-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4C94E285C2C for ; Sat, 16 Dec 2023 14:13:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C5BA82DB71; Sat, 16 Dec 2023 14:13:06 +0000 (UTC) X-Original-To: linux-crypto@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 To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , 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-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 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 --=20 2.34.1