From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 826FAC433E2 for ; Fri, 4 Sep 2020 11:11:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4B37F20684 for ; Fri, 4 Sep 2020 11:11:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nRLjDQZ2"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="QkRmNCpt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B37F20684 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=mUGkhTiwOSSS+ptKbEhtSlxKClZD9+KcF5Plno/WLRo=; b=nRLjDQZ2Gu2QxlheU3bCEuxrAg qS7e1WOn9s9NkWLYXC0Bx5ad07g7XslHVFI3QOk+rKZmR0dWC72fr/nPlYpAJz926rzPmW3AWl7zV BnUzm/QpBz35PlPW5g6xv8pPjNHF5z9aL5ZcNSH6Lu9xKciLz41JifH7dwPqFegIbRTfOWk5OQXcI exF1q1rHXktUX56KXQj4h2cfwyF8JyMwxprHgzThQlhy5iD461mSq0Dr8B8bR6Ytvya6fV5Gv4ByI u+NU2bPTDtSS8NWAIuz1e0Lh46+AZ2yanz0eJwT7GiMiVjWljf9uYi6dBH5avLeN0v7JsG634B0pe SvEnTaoQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kE9bq-0001rG-NK; Fri, 04 Sep 2020 11:10:22 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kE9bi-0001nm-7x for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2020 11:10:15 +0000 Received: by mail-wr1-x42c.google.com with SMTP id j2so6324317wrx.7 for ; Fri, 04 Sep 2020 04:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ttSGaNWww4nvkMqgyedyrDpMFb/w80auwjdeLWq3O/c=; b=QkRmNCptT1MhVHtuNTgDbEyS5KPuEPkAR82TgVREIRG0eHWS/PwW+tbt3LIKrlOPkq d8wSBamdzeDbikMzGR+VMv+gpzjWarlnA7kfX3JG0N41rnrn3/eaKBK3DsrbuNmBY5lH w2OIYRC+60WSxTAr2E7ZZMP4zEdULO+j4500sKJbacBrhPZsuSXblcgWheNXnpAbmkHj 1SMBOMgkHBeHLwWpkce3gS89ams/urhRihXyl2Dd0YaE+pPnuRSrPIFJ1DvCK4SbP8NK k9UKHSI5RHXDu0FWbACw+LLjO3odrhhoRPRnSPsowQvZvGDNFDY+eW6hvhbh2brvS+Hp nC3w== 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; bh=ttSGaNWww4nvkMqgyedyrDpMFb/w80auwjdeLWq3O/c=; b=mT6Om4nmMRuEvJx7IIx3nbnGylVqyfMpXMWW/G6HDUpzGNOTA3AUOnfugqES50baQE FonQPo4uypDm4YANtqziPbOUJwntp18Yx8TBHWvlCOpDa1QmcuHc4NFUREyO84BVaiPX NI8H/6apudn32T8EU0NmEB+dh3s6tVn13vTOqmAWvwfVhj/xzkIXWbN+BNSIKbo06imU Ju+/78YvfnllDg87OFxMsdZoLJHQn3aBPVLDzAjvm3BMBVU7af8WDa9dGvXNbYk260Gc gvO8qfUJL3vB3ILtKBKUZIoZX8vVMGFAwmYRB8NqHKacBE9aZLIzPKmAUNfOn1EILSVk eQPw== X-Gm-Message-State: AOAM5323zbuH7HyBmLVPmJn7hiqB+nWZVbYPV+zPIvXiP9GbrJCMbiXR ucCzIZSX+wO0GAOlIoeKA+BrWg== X-Google-Smtp-Source: ABdhPJzxhA4ttKluvV9oDekJ4WV/HBT95FpaaYNGG+kM1y1tY48GTJdQZH+O6SHavh0KZa0C684P5Q== X-Received: by 2002:a5d:5090:: with SMTP id a16mr7584476wrt.247.1599217810710; Fri, 04 Sep 2020 04:10:10 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id m3sm10622743wmb.26.2020.09.04.04.10.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2020 04:10:10 -0700 (PDT) From: Corentin Labbe To: davem@davemloft.net, herbert@gondor.apana.org.au, mripard@kernel.org, wens@csie.org Subject: [PATCH v6 00/18] crypto: allwinner: add xRNG and hashes Date: Fri, 4 Sep 2020 11:09:45 +0000 Message-Id: <1599217803-29755-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200904_071014_431437_46AFC3F7 X-CRM114-Status: GOOD ( 15.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Corentin Labbe , linux-sunxi@googlegroups.com, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello The main goal of this serie is to add support for TRNG, PRNG and hashes to the sun8i-ss/sun8i-ce driver. The whole serie is tested with CRYPTO_EXTRA_TESTS enabled and loading tcrypt. The PRNG and TRNG are tested with rngtest. Both LE and BE kernel are tested. This serie was tested on: - sun50i-a64-pine64 - sun8i-a83t-bananapi-m3 - sun8i-r40-bananapi-m2-ultra - sun50i-h5-libretech-all-h3-cc - sun8i-h3-orangepi-pc Regards Change since v1: - removed _crypto_rng_cast patch Change since v2: - cleaned unused variables from sun8i-ce-prng - added some missing memzero_explicit Change since v3: - rebased on latest next - removed useless cpu_to_le32() in sun8i-ss - added 2 last patches - add handle endianness of t_common_ctl patch Change since v4: - added a style issue patch Changes since v5: - handle failure pattern of pm_runtime_get_sync - Add missing linux/dma-mapping.h Corentin Labbe (18): crypto: sun8i-ss: Add SS_START define crypto: sun8i-ss: Add support for the PRNG crypto: sun8i-ss: support hash algorithms crypto: sun8i-ss: fix a trivial typo crypto: sun8i-ss: Add more comment on some structures crypto: sun8i-ss: better debug printing crypto: sun8i-ce: handle endianness of t_common_ctl crypto: sun8i-ce: move iv data to request context crypto: sun8i-ce: split into prepare/run/unprepare crypto: sun8i-ce: handle different error registers crypto: sun8i-ce: rename has_t_dlen_in_bytes to cipher_t_dlen_in_bytes crypto: sun8i-ce: support hash algorithms crypto: sun8i-ce: Add stat_bytes debugfs crypto: sun8i-ce: Add support for the PRNG crypto: sun8i-ce: Add support for the TRNG crypto: sun8i-ce: fix comparison of integer expressions of different signedness crypto: sun8i-ss: fix comparison of integer expressions of different signedness crypto: sun8i-ce: fix some style issue drivers/crypto/allwinner/Kconfig | 43 ++ drivers/crypto/allwinner/sun8i-ce/Makefile | 3 + .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 117 +++-- .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 386 ++++++++++++++- .../crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 413 ++++++++++++++++ .../crypto/allwinner/sun8i-ce/sun8i-ce-prng.c | 164 +++++++ .../crypto/allwinner/sun8i-ce/sun8i-ce-trng.c | 127 +++++ drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 135 +++++- drivers/crypto/allwinner/sun8i-ss/Makefile | 2 + .../crypto/allwinner/sun8i-ss/sun8i-ss-core.c | 205 +++++++- .../crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 444 ++++++++++++++++++ .../crypto/allwinner/sun8i-ss/sun8i-ss-prng.c | 173 +++++++ drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h | 89 +++- 13 files changed, 2233 insertions(+), 68 deletions(-) create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c create mode 100644 drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c create mode 100644 drivers/crypto/allwinner/sun8i-ss/sun8i-ss-prng.c -- 2.26.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel