From patchwork Wed Mar 2 21:10:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 547680 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B41AC433F5 for ; Wed, 2 Mar 2022 21:11:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245123AbiCBVMO (ORCPT ); Wed, 2 Mar 2022 16:12:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245098AbiCBVMK (ORCPT ); Wed, 2 Mar 2022 16:12:10 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52865DD47B for ; Wed, 2 Mar 2022 13:11:23 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id i66so1955684wma.5 for ; Wed, 02 Mar 2022 13:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E4ln3wZSFy5ygWivBAZ51NJDAFnU2GvQHlM0R2GzsJk=; b=bJIL0p9pOk2OYxkv4MgssHYy583tVP3qI9kh5i+J6fdhzIZaUQ6qV4dRNmXg2nOoAV xGSU6184/6Papd9QxDjUVh2EMscFRMunogHDJshyMBup66uO0h5hs7IC5zmLDZhfDRVz u6jvoIYBvzLyRZ9Pd89jakr/6bSunhJdg+6Msfz/2kbIOIjmQ3281yto6xsdt/h1k1w5 zvwxgHvW3BzdVIi2abn69Ple0W+TStSeOSdyRVYxOjxZvmlT0YVbGPsLq0tH98fmrEmY gwKLmyNEPJVwBI+CR/4UeH9aFBn09hn35MDX8HI3/mPBpEW+jJD+dry/n78x1rZ+YD+v 9eGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=E4ln3wZSFy5ygWivBAZ51NJDAFnU2GvQHlM0R2GzsJk=; b=XFVv8uClH1Ph4JM18Pxm47f9uRE2hq8n3QHYq3gzfSptR5xxKWf+oZfZPPFzF2Z6+z Z1/X3+XZUti/nt/gO43c3mqrmu00AWuCSFQj/6ft91C3OceWh1mO0FufucJlFsvYRvi+ cv0CmJjWU0dXwpy0YDvt9hJ3ABcRD2DJ4x/LB6m5ITJp0sfzW9x01lUw5O2xrUD/AOB+ szD1P1cfetj5Y8uHgN865kHusP17xn/zoTKWbk7gG/pbWdOdRpGkrr6/1oTBlHMqGMut r8IWTlsh+tsY1DxeTrz8oVST/QED/7pnKil6d1T+qPgpuOjIjpzEU0cPK0pPqX2Zul3R B/bA== X-Gm-Message-State: AOAM532voBt4d2fngCaa/d7ixTai8GhKACkC9LDUE/+FxHIYNvrH/Lz9 BWS5Pi2e09E61d/hGplqsv72wA== X-Google-Smtp-Source: ABdhPJwJBTQ00m+t9wxyzB1cXj8n/0LaZCqu4MpcCdI94b0Fd6Skv6Vca/UH6uS9c3TZZ8GgpF704w== X-Received: by 2002:a7b:c455:0:b0:380:a646:eb0e with SMTP id l21-20020a7bc455000000b00380a646eb0emr1350654wmi.170.1646255481699; Wed, 02 Mar 2022 13:11:21 -0800 (PST) Received: from localhost.localdomain (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id z5-20020a05600c0a0500b0037fa93193a8sm145776wmp.44.2022.03.02.13.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 13:11:21 -0800 (PST) From: Corentin Labbe To: heiko@sntech.de, herbert@gondor.apana.org.au, robh+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, john@metanate.com, Corentin Labbe Subject: [PATCH v2 00/18] crypto: rockchip: permit to pass self-tests Date: Wed, 2 Mar 2022 21:10:55 +0000 Message-Id: <20220302211113.4003816-1-clabbe@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hello The rockchip crypto driver is broken and do not pass self-tests. This serie's goal is to permit to become usable and pass self-tests. This whole serie is tested on a rk3328-rock64 with selftests (with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y) Regards Changes since v1: - select CRYPTO_ENGINE - forgot to free fallbacks TFMs - fixed kernel test robots warning - add the PM patch Corentin Labbe (18): crypto: rockchip: use dev_err for error message about interrupt crypto: rockchip: do not use uninit variable crypto: rockchip: do not do custom power management crypto: rockchip: fix privete/private typo crypto: rockchip: do not store mode globally crypto: rockchip: add fallback for cipher crypto: rockchip: add fallback for ahash crypto: rockchip: better handle cipher key crypto: rockchip: remove non-aligned handling crypto: rockchip: rework by using crypto_engine crypto: rockhip: do not handle dma clock ARM: dts: rk3288: crypto do not need dma clock crypto: rockchip: rewrite type crypto: rockchip: add debugfs crypto: rockchip: introduce PM arm64: dts: rockchip: add rk3328 crypto node dt-bindings: crypto: convert rockchip-crypto to yaml crypto: rockchip: add myself as maintainer .../crypto/rockchip,rk3288-crypto.yaml | 64 +++ .../bindings/crypto/rockchip-crypto.txt | 28 -- MAINTAINERS | 6 + arch/arm/boot/dts/rk3288.dtsi | 4 +- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 11 + drivers/crypto/Kconfig | 12 + drivers/crypto/rockchip/rk3288_crypto.c | 307 +++++------- drivers/crypto/rockchip/rk3288_crypto.h | 69 ++- drivers/crypto/rockchip/rk3288_crypto_ahash.c | 222 +++++---- .../crypto/rockchip/rk3288_crypto_skcipher.c | 452 +++++++++++------- 10 files changed, 648 insertions(+), 527 deletions(-) create mode 100644 Documentation/devicetree/bindings/crypto/rockchip,rk3288-crypto.yaml delete mode 100644 Documentation/devicetree/bindings/crypto/rockchip-crypto.txt