Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp612761rwo; Fri, 21 Jul 2023 18:27:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7W9ZdGhKO1WMZla+0/4zf6x8n0RIGUgrmngfEkWRhSuNfQZ4Z3kw5ZlZPhOH3UUXecs69 X-Received: by 2002:a05:6871:154:b0:1b3:bc1d:d50e with SMTP id z20-20020a056871015400b001b3bc1dd50emr5054307oab.37.1689989227997; Fri, 21 Jul 2023 18:27:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689989227; cv=none; d=google.com; s=arc-20160816; b=qyq2WcId/KoanjtBdVryYqn2Ci6I2miWdx4YV4WqiLpYA0+K7F4D602kQIz243HNDK zX+728AQZAsfrhQ1HWgMaCm2Wp3Q+UH+9apPJY0Ix/sXpMxzVzu20MmgHfwknUK1yPPa r8mV1p43i+tgeTA/1QjU617gu0J6fbBj8xG+qKv+w5IFKBXPZ4unBAKCy94r+4S1FyZs itp/mYl3MUoc72/ljsLPjnxNg/KycqERc30YaoTFKG7be8zM2kJFm1rj/VVvDeVrSEi/ pM5nzhJWhZ+CiZHbeLVu3fwKVI0pEYu0IHXxgWJeg1hx/NzofVT31AAw3woUoTEs7b9e rhgg== 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=7Jq1s3/C0NtNh3dX18TSvni5iYYFkGdKSCeV0WJDbTw=; fh=LheFPsQK+DbIZ9IjEd5nb6M7x2KzefeBJJe9ChO3IO8=; b=y0gn9OeFFf3L3R1/23onSwjxg1Ef2lUICPanyWpKMql88tZrKYJ/s7l1dr7IqdO94u e1LKkp8lC/++UlDXjQh6B88aFj7XSRpsg/O6Qucex0AETMQ8OfGU1HTZSeP+vJdVLTuD 895jxNsVi4v60I/Go421Ecio47obZ18+2lwWCdXkvqFV/tZ5QxSeAcGdR4nKwxcU9ITr hW6EtK9gNOejUrqgA+ZV2rd56pPsn7HLVk7oAHFXkpGRYpSd2PJlbSLE9E8CfSzDKdCo tqX6mcYT0swiLywuwUcuEe6K1RsH2ArucbXPmi5xqxVouAkh2SyOgXX4wOnb+/CWqEnN /ceQ== 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 x69-20020a638648000000b005576229306esi4039446pgd.545.2023.07.21.18.26.47; Fri, 21 Jul 2023 18:27:07 -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 S230228AbjGVBXb (ORCPT + 99 others); Fri, 21 Jul 2023 21:23:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGVBXa (ORCPT ); Fri, 21 Jul 2023 21:23:30 -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 56D7E30C4; Fri, 21 Jul 2023 18:23:29 -0700 (PDT) Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1qN1Kt-002CvY-Tq; Sat, 22 Jul 2023 11:23:09 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 22 Jul 2023 13:23:01 +1200 Date: Sat, 22 Jul 2023 13:23:01 +1200 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 v7 12/14] crypto: iaa - Add support for deflate-iaa compression algorithm Message-ID: References: <20230710190654.299639-1-tom.zanussi@linux.intel.com> <20230710190654.299639-13-tom.zanussi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710190654.299639-13-tom.zanussi@linux.intel.com> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, 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, Jul 10, 2023 at 02:06:52PM -0500, Tom Zanussi wrote: > > Because the IAA hardware has a 4k history-window limitation, only > buffers <= 4k, or that have been compressed using a <= 4k history > window, are technically compliant with the deflate spec, which allows > for a window of up to 32k. Because of this limitation, the IAA fixed > mode deflate algorithm is given its own algorithm name, 'deflate-iaa'. So compressed results produced by this can always be decompressed by the generic algorithm, right? If it's only when you decompress that you may encounter failures, then I suggest that we still use the same algorithm name, but fall back at run-time if the result cannot be decompressed by the hardware. Is it possible to fail gracefully and then retry the decompression in this case? Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt