Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4987328rwd; Tue, 30 May 2023 12:51:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5pzZOhTjiBJeoZNLdKvl6c2oXBgIgFGjZWXbyg3XVjJJGOdN7cElArJGPUI02EmxFs/yPo X-Received: by 2002:a17:902:da8d:b0:1ac:6b92:a775 with SMTP id j13-20020a170902da8d00b001ac6b92a775mr387247plx.6.1685476319523; Tue, 30 May 2023 12:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685476319; cv=none; d=google.com; s=arc-20160816; b=TzXoRNVRA5h6u3hk15EdA7JVuSHxosoRTE8V6ojlc4PMDLPdXT0yoNmJtToJ0OIiCg hcdZOMYiEQ2nU+oDEa0N5/9jeZx5eKttTgfVyKLBBmJF8CqIDb3aoWhUp25U3ZtVHeD8 d5nM+lX0OoJommpfKcRrN1Mqsb2FkJnTnExtaD30DHj8dYYXeqDhBNSJzoIOCrEyVY96 7U+WiMnuWPeK++N/hCb6dI1JTB0/sRSq7bOXcbJKfmqNRMW6Rq773IbanDiLgMnRuQpW J97irLDtcRTrvbFAyfSEX13vTpYf0X9thP2FtPlefu6NLSLSgdr9USb8wWVFf/FjSpKF Cx9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=FYJupgcKUw3TlNJ8wB3V5QqJKh78KkJn62xXK+jIEk8=; b=rVbswZxKgzkztMHRk7WzGnUwV8V43Vrmu5Rvip25pYhcDBS4VgIzI42wcn7CbLn5Sb yTH64J1BE4Azgr9uRtvggjB01BbZCHI10Vfz0eqP+AZRoprYTCgOUBtBRf+NgHTv7UGZ bIAPE5KsF8R24435x7ibb5vbkhUcE0S+kn+cxSz9jz2be2IlCVuID6NfP91qYOgJfmuP QkV2FeLn1P2KnWlVa3oY+71cR4VpFsDvR9MBWN36MVDAR1uMoxYhJezgXHfibf/PLQuG QLU8ekzc4z3G2474Wp+4YfqhGMnCuSMBAB59cJx4a7dc7Cxz0EhKaCkjcsHREhgT/77a NNXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C2dF7ZOl; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a170902ab8800b001a51368b098si4366327plr.209.2023.05.30.12.51.41; Tue, 30 May 2023 12:51:59 -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=@intel.com header.s=Intel header.b=C2dF7ZOl; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231510AbjE3TuI (ORCPT + 99 others); Tue, 30 May 2023 15:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233478AbjE3TuH (ORCPT ); Tue, 30 May 2023 15:50:07 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9328CE8; Tue, 30 May 2023 12:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685476206; x=1717012206; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=0n3ZEj8ND8L8MlrI41iz7g/Mm8JdRRHHjctjs0qDPKc=; b=C2dF7ZOlWju8cBZoVUZf1kXy62BABJi9lyae/Ad48QYgkFalYs+3X+R0 vPEmbyD/afOZEjj/cZg7CRMr4w6AmzA2xdMhI/YH55eIayneqHQAvhxVP ynR5dlU/3bRBEDqLaat/8iuJK1N7JAfBTSWJhgOdxkEyQLwHXgLAOymjz c32Z2slxsmQ0k0foEOeaeNPAmxGAWqz511EXAUnbFvcdMw41UgMsa/Qqe nB9CO4NfmImqiLIV1jzNB9U9Togvj14Y7mKpgU4SwzTQ67TNL4TPSEBAc wuU2VgBw4VUGyrAVovwq2THYvV25YWl5Lb5c2ao6HcsagXN15KzdaRXmv g==; X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="352528600" X-IronPort-AV: E=Sophos;i="6.00,205,1681196400"; d="scan'208";a="352528600" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 12:50:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="771691794" X-IronPort-AV: E=Sophos;i="6.00,205,1681196400"; d="scan'208";a="771691794" Received: from lleonram-mobl.amr.corp.intel.com ([10.212.50.19]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 12:50:04 -0700 Message-ID: <1709001c3cba07ab058b602d628edff5ab72ada4.camel@linux.intel.com> Subject: Re: [PATCH v5 13/15] crypto: iaa - Add support for default IAA 'canned' compression mode From: Tom Zanussi To: Herbert Xu 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, giovanni.cabiddu@intel.com, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org Date: Tue, 30 May 2023 14:50:03 -0500 In-Reply-To: References: <20230516215009.51794-1-tom.zanussi@linux.intel.com> <20230516215009.51794-14-tom.zanussi@linux.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.1-0ubuntu1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Herbert, On Thu, 2023-05-25 at 08:37 +0800, Herbert Xu wrote: > On Wed, May 24, 2023 at 10:58:54AM -0500, Tom Zanussi wrote: > >=20 > > Yes, I think you're right.=C2=A0 The reason we did it this way was that > > we're expecting to add more modes, such as 'dynamic' and/or > > 'canned- > > dynamic' etc. > >=20 > > But I don't see a reason we couldn't just register them all and > > have > > the user choose using the algorithm names, especially if that's the > > way > > crypto users expect things to work. >=20 > Are these modes compatible with the deflate algorithm, that is, > can the generic deflate uncompress the output of these modes and > vice versa, can these modes uncompress the output of the generic > algorithm? >=20 > If they're all compatible, then you should just use the "deflate" > algorithm name and use different driver names to differentiate them. > But if they're not compatible then the modes should have distinct > algorithm names. Canned mode is not compatible with generic deflate. Fixed mode is, but due to history-window limitations in the hardware, only for buffers <=3D 4k, or that have been compressed using a <=3D 4k history window. So it sounds like we need to use distinct algorithm names, which I'll add in the next version. Thanks, Tom=20 >=20 > Cheers,