Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp988659iog; Fri, 24 Jun 2022 20:33:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u/zoKmlppPzsClaxMKlMS1xlnILfoUC8qLUOZUwY4McyEGqCdSwWwlUidfpnR0uJMBtfeW X-Received: by 2002:a17:902:e8d7:b0:168:e2da:893c with SMTP id v23-20020a170902e8d700b00168e2da893cmr2273949plg.152.1656128027753; Fri, 24 Jun 2022 20:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656128027; cv=none; d=google.com; s=arc-20160816; b=GE+bAn1y1WjgVrk674DGN2cjmXyXDP968J+Tde1wuxv2b5DvML+q15QULnVvnG6vrb KjFMYjYyD1RMBJxZ2jmylIMveh9cT/iwx3KFU0jYhEYOM4sKS/5+8JvkfiCz0hMGbDg9 2tvaFwHBLpLh1H3QOffwOfXOSCc5NqfzSaXu+Z7U7eUI3YXyGW1jHblp7ng7dodHUCTM XD41Uf0bmcQnLW3+B80RrCfopUYqwWJ8/2ldU3H1GUJAUtvVc5DoTsBHxbSWvSXzS3Ds DP5etrCu+g/NzGV4I7ip/7TeK2RUapLvUJAoWriY68lHSaiqdCmMzfvU5nz/TXKV1Rpd rDWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=JQrEV25Qq2xdPblGSoG19vTOK76ID9Ode4ej2R5wAh8=; b=0i4QdhvnDH29Ac7Vrc3f9ITYkmSAWAZo1KG57jSzpEVX2QZO5L25nsqzOjk0ZDWnbM OTtEYfw3pWa1IidYXiN3id7pn1l8QU9vcDIUB6Y02VV4nsgZQKQHGGiEXy3A2KSq6XBe ZqsxkKwI1a3dH5BOg18jB02ObVhd1HaBzx0to2q3o+vi5g0CKXnV2oBoT9FNzbvXYGvq ByabQYhTkbD0TGoZs6KznsqQeVp0ey6EXoDlacKtyPoSaz/qwP+oNc+ip5/jgY25bI37 8mO8lDkTVjAge0eHUB4UfQpsDonjGO8dsscQ+qjLRQIM9OQ82WSM0BQ8RsqrV3lwZkto mAsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=OspP72b4; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a654d05000000b0040cf0428184si4979264pgt.434.2022.06.24.20.33.20; Fri, 24 Jun 2022 20:33:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=OspP72b4; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbiFYD2o (ORCPT + 99 others); Fri, 24 Jun 2022 23:28:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiFYD2m (ORCPT ); Fri, 24 Jun 2022 23:28:42 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D632F3DA7A; Fri, 24 Jun 2022 20:28:41 -0700 (PDT) Received: from [192.168.86.247] (23-119-123-228.lightspeed.sntcca.sbcglobal.net [23.119.123.228]) by linux.microsoft.com (Postfix) with ESMTPSA id 7234E20C7956; Fri, 24 Jun 2022 20:28:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7234E20C7956 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1656127721; bh=JQrEV25Qq2xdPblGSoG19vTOK76ID9Ode4ej2R5wAh8=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OspP72b4TUDmYtGZoMOvxPICki6wwW3eHAaAo/JIHK4PRJagLc+N0v38EbMeQQMHE GQmbi9VPrzmjZCQgEKjbZsfSqFXD6mjNCv52DKX+35DahzdvBxkqCAPz007w9QwIYP Ov8ZnP1gQaUxChSEwjmi+22z47+4jZ4M51gTFSp4= Message-ID: <3dde4d8e-5f97-dc07-1763-981942d23f12@linux.microsoft.com> Date: Fri, 24 Jun 2022 20:28:39 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v4 0/5] Add Aspeed crypto driver for hardware acceleration Content-Language: en-US To: Neal Liu , Corentin Labbe , Christophe JAILLET , Randy Dunlap , Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Joel Stanley , Andrew Jeffery , Dhananjay Phadke , Johnny Huang Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, BMC-SW@aspeedtech.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220624090827.3909179-1-neal_liu@aspeedtech.com> From: Dhananjay Phadke In-Reply-To: <20220624090827.3909179-1-neal_liu@aspeedtech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Neal, On 6/24/2022 2:08 AM, Neal Liu wrote: > Aspeed Hash and Crypto Engine (HACE) is designed to accelerate the > throughput of hash data digest, encryption and decryption. > > These patches aim to add Aspeed hash & crypto driver support. > The hash & crypto driver also pass the run-time self tests that > take place at algorithm registration. > > Tested-by below configs: > - CONFIG_CRYPTO_MANAGER_DISABLE_TESTS is not set > - CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y > - CONFIG_DMA_API_DEBUG=y > - CONFIG_DMA_API_DEBUG_SG=y > - CONFIG_CPU_BIG_ENDIAN=y > > Change since v3: > - Use dmam_alloc_coherent() instead to manage dma_alloc_coherent(). > - Add more error handler of dma_prepare() & crypto_engine_start(). > > Change since v2: > - Fix endianness issue. Tested on both little endian & big endian > system. > - Use common crypto hardware engine for enqueue & dequeue requests. > - Use pre-defined IVs for SHA-family. > - Revise error handler flow. > - Fix sorts of coding style problems. > > Change since v1: > - Add more error handlers, including DMA memory allocate/free, DMA > map/unmap, clock enable/disable, etc. > - Fix check dma_map error for config DMA_API_DEBUG. > - Fix dt-binding doc & dts node naming. > > > Neal Liu (5): > crypto: aspeed: Add HACE hash driver > dt-bindings: clock: Add AST2600 HACE reset definition > ARM: dts: aspeed: Add HACE device controller node > dt-bindings: crypto: add documentation for aspeed hace > crypto: aspeed: add HACE crypto driver The driver claims compatible with aspeed,ast2500-hace, but there's no equivalent g5 DTS change (patch 3/5) or reset definition (patch 2/5) in aspeed-clock.h? Either drop ast2500 compatible from this patch series or fix these. Thanks, Dhananjay