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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0999EC5DF70 for ; Tue, 18 Aug 2026 07:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rtkd86yXauUYJ1yESUkr9rEpociEDl/J/0AtQD1n78I=; b=C0wc9lzYSuJy1nXq/eV9VZk9GG aOup0suybheDLaFYF73f47LE/FrRgIYIf7WmgiYXqzwiDQdVUqgQHpUNa+juA7MKQf8RvWmvy9zKZ NobDZGUX4gtU2TCNNWRZRSM4Gyvl0UhKXS7enSQJihuUBd5S7hzNpnhFAPYEq3IPFhtGAgjz+UVg0 +bWeN0dY+hqjJ2MmpdjdV59dLAiFZrJEv3GrtjjMAvU9g4ry4OXmTR/io9yA4xUjijbuf4IT3SlI5 c6e+etE85WILsX13YwviotiJrzXDx9g2wepeo8SnzT+j6Cbi7dxP8dq8eGjnu15GxPL3Lg+j3qlA/ +VHDNnGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwENP-00000007Suz-2nYR; Tue, 18 Aug 2026 07:36:51 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wwENN-00000007Suc-48wZ; Tue, 18 Aug 2026 07:36:50 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 5A1BC41338; Tue, 18 Aug 2026 07:36:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 183431F000E9; Tue, 18 Aug 2026 07:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787038609; bh=rtkd86yXauUYJ1yESUkr9rEpociEDl/J/0AtQD1n78I=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=k1P4a9ou7tb8cnDpwVNWLEsgCBoIDWXh62nxOvjt5agsWxXw2VY9LykwQ43Y14OA2 mMWZTx8mlBD8sBZFdOx6oigS2bv8lnui8AX78kHz3vzHi14P7/I2XZW2yqqIFVLchg 5aHlx7touN00eIywRNx7wv04+yzZ+yV/FR0ecMlrpDM4+00HETwPoLd6zWAAcWtNYi 1dGrrCIIqlqj0TqcCOkWRZiYQq9y4JMtRMPGAK6nvpkLSZxrUZSBglboImWqyb5fHf 3Ald4L46lSnvTvpS2cvmGXjHipJZKUzWdIlfk2z4SmQKtC5QixdLQnzh8b9+MExgy6 ebLpSZUPIdVeA== Date: Tue, 18 Aug 2026 09:36:44 +0200 From: Krzysztof Kozlowski To: Dawid Olesinski Cc: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , Diederik de Haas , Eric Biggers , Sebastian Reichel , Philipp Zabel , Conor Dooley , Corentin Labbe , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/4] crypto: rockchip: Add RK356x/RK3588 cryptographic offloader driver Message-ID: <20260818-enigmatic-friendly-lizard-bc8aaf@quoll> References: <20260708175837.1718437-1-dawidro@gmail.com> <20260816194112.552100-1-dawidro@gmail.com> <20260816194112.552100-3-dawidro@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260816194112.552100-3-dawidro@gmail.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Aug 16, 2026 at 08:39:45PM +0100, Dawid Olesinski wrote: > Add a driver for the second-generation Rockchip cryptographic hardware > accelerator found on RK3568 and RK3588 SoCs (compatible strings > "rockchip,rk3568-crypto" and "rockchip,rk3588-crypto"). > > The hardware provides: > - AES block cipher engine: ECB, CBC, and XTS modes, 128/192/256-bit > keys. XTS hardware is limited to single-SG requests. > - Hash engine: SHA-1, SHA-256, SHA-384, SHA-512, MD5, SM3. > The hardware padding engine (HW_PAD) requires the total message > length upfront and cannot maintain state across LLI descriptor > boundaries, so multi-SG and unaligned requests are routed to a > software fallback. > - DMA engine: linked-list descriptor (LLI) based, with a 20-entry > coherent descriptor table. Hardware encryption drivers are being removed or at least tried to be removed multipled times, so would be nice to see here WHY this one should be added. Best regards, Krzysztof