Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2467950rwd; Fri, 16 Jun 2023 04:14:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nrsm1JYx95mDk6xc/FgZgVJRmG0J+FjBorfuPUK8UmEw13WwseMuAwYv10lxgc2f5MEl7 X-Received: by 2002:a05:6a20:8f22:b0:111:ee3b:59a7 with SMTP id b34-20020a056a208f2200b00111ee3b59a7mr2678282pzk.5.1686914042108; Fri, 16 Jun 2023 04:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686914042; cv=none; d=google.com; s=arc-20160816; b=NqOcZ0yrjO0iSPkqc09YjF2j+NMH6jNt91ve4fT6U8aWj/hnj+I8fVw+z/dzQJ8Pm+ QMRyFyURtxCVkGcjIxcX50CJftu21NKzmwwF9w4rP2eZg20kxkwpy/sIWb23PERjErzl 7sA6KT9Wrhj8sIr44Jztj88ZubLYNOBKCxNIf1ieD+bF9/hNuIIEGNxn10T5HUM7MDtG SenOT9f+tYJBcZFDizhXKepjYExao6CsZvFlkd/mQC5AXyItWnjNUREOeDY2dpzHgM/m wwpmnwZBlsNKXCThbTxsvkDCCDlPl9tDcK5zoK6jnxqjiE7ez9tplAwtAmd2NnL7N3mE Y2Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QZDTFoLUH05oqSdYYQ9W5EsooiuPH2uwrGghXREYp3s=; b=bZ1hm/wvDgL+anwAMFnB0//LrLJeu28iUORusUrHOd3qoN93nNF+KZjQY4lAoRvOt5 2yUWOYkA415WVFHSv7xGYYGoF9ZbxJLXc9xgT6trRALqxcULoC3DxCKJdhjDohY9NWN8 GDrG5y2XtDbskxfnFs3lvbini6Pn5xEnVC9slLR/6GcT709Kva6kBPZFUjWxNh3ffnoa grv5zYNqoNR7cpzh4MasHQNV1R6NF0qEN6eO0Vi/r37ttg/gojYSZywqZ5af3XvD8a4g tHdPk8pb1vbGqkdGfnEgnQWNwGtkwp9MWRvKW38w3E41olfUqgKcC2uCRScg5drodGU5 y4tQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020aa78f0e000000b00650cabb6e66si620528pfr.370.2023.06.16.04.13.49; Fri, 16 Jun 2023 04:14:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344612AbjFPLB7 (ORCPT + 99 others); Fri, 16 Jun 2023 07:01:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344586AbjFPLBk (ORCPT ); Fri, 16 Jun 2023 07:01:40 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F06727282; Fri, 16 Jun 2023 03:55:27 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qA76k-003mcA-3A; Fri, 16 Jun 2023 18:55:11 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 16 Jun 2023 18:55:10 +0800 Date: Fri, 16 Jun 2023 18:55:10 +0800 From: Herbert Xu To: Tom Zanussi Cc: davem@davemloft.net, fenghua.yu@intel.com, vkoul@kernel.org, dave.jiang@intel.com, tony.luck@intel.com, wajdi.k.feghali@intel.com, james.guilford@intel.com, kanchana.p.sridhar@intel.com, vinodh.gopal@intel.com, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH v6 13/15] crypto: iaa - Add support for deflate-iaa-canned compression algorithm Message-ID: References: <20230605201536.738396-1-tom.zanussi@linux.intel.com> <20230605201536.738396-14-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230605201536.738396-14-tom.zanussi@linux.intel.com> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** 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 On Mon, Jun 05, 2023 at 03:15:34PM -0500, Tom Zanussi wrote: > Add support for a 'canned' compression mode using the IAA compression > mode in-kernel API. > > The IAA 'canned' compression mode is added alongside the existing > 'fixed' compression mode and a crypto algorithm named > 'deflate-iaa-canned' is registered using it. So you said that canned is not compatible with the generic deflate algorithm. Does that mean that there is no way for it to decompress something compressed by the generic deflate algorithm, and vice versa its compressed output cannot be decompressed by generic deflate? We don't add an algorithm to the Crypto API if the only implementation is by hardware. IOW if you are adding a new algorithm, then a software version must be the first patch. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt