Received: by 10.192.165.148 with SMTP id m20csp485139imm; Fri, 20 Apr 2018 09:54:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx48UhoZhlYfWq2jGWEuS8355cOMOuRUcitizRCVGb9UmzMEEAeEykYSKZExxbuqJiwTrd3Yf X-Received: by 10.99.158.85 with SMTP id r21mr9175573pgo.312.1524243265136; Fri, 20 Apr 2018 09:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524243265; cv=none; d=google.com; s=arc-20160816; b=c2UhqLE5N6waVwVUPWzS4XXd5T2bgr+G7BUJBYbHCK3wrUJdudqgPj4d/oAakLyYd6 230mox+fPTz+/fI8S/b4txKkL3/eDCd9ClVjJcz7J0uMGdIW8+culfYyQ9o2eJZmMMb4 8FAVXQ5VG5z3Ymi26sK16cwDlM4XzPKTRVrILOMl5BcMX12w01XuK2saELtNPzg/p2Sh yoO/e6PI0+CRC8/+7gviRaWgVKDeOulh54wQskwOYRYOXJMaj0UwUMkGL86mVqDfOyJk pnf+guJQZyL6VI7cU0Q62EPnolxsGFipRZds/NFfW4P7j4+iQCmVgFYKXYIP4GGos+pu 07AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4GriETqodiAoN2oCWmnEf3zkFkPJf3FbdqBZdkQGoJE=; b=sqS1C4E0CkHjJ9lOxQGuxebI/apBkwZPlu5kGKas9LByD0BZkL2eZAJ5EFOWNCBFnV Si0Mq0/HpqlHsb+Pbj0oGkvMcUTfpTp8MoT5CPh7qbvb+kV3huTgPSNeFBTbNgeChYxl Wuh9bHNIk+3BlCw/S4Du0BozRpeDsVu/w6RZS9iQf1wkDeZ/LIlyeFXQrv5f1draguXG advP2uCc0iCYpwTokGCKAEVTvJMby7xBkVa7YQgY6Lj02vDP0Y4HDKXHg3B42pnaVioI NZbyJ+Ih1REGaNsjNdyTLMOTbmobpW9NnFnbi7OsSz2O83k9ffnCVNZ7wXQaJwBL+Zw+ FtUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k76si5895180pfb.146.2018.04.20.09.54.10; Fri, 20 Apr 2018 09:54:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753179AbeDTQwe (ORCPT + 99 others); Fri, 20 Apr 2018 12:52:34 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:34410 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753067AbeDTQwb (ORCPT ); Fri, 20 Apr 2018 12:52:31 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1f9ZGu-0001lf-U8; Sat, 21 Apr 2018 00:52:29 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1f9ZGt-0002Fz-Sf; Sat, 21 Apr 2018 00:52:27 +0800 Date: Sat, 21 Apr 2018 00:52:27 +0800 From: Herbert Xu To: Jan Glauber Cc: "David S . Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Mahipal Challa , Balakrishna Bhamidipati Subject: Re: [PATCH] crypto: testmgr: Allow different compression results Message-ID: <20180420165227.wb2hsckedgkauxz4@gondor.apana.org.au> References: <20180411182832.27761-1-jglauber@cavium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411182832.27761-1-jglauber@cavium.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 11, 2018 at 08:28:32PM +0200, Jan Glauber wrote: > From: Mahipal Challa > > The following error is triggered by the ThunderX ZIP driver > if the testmanager is enabled: > > [ 199.069437] ThunderX-ZIP 0000:03:00.0: Found ZIP device 0 177d:a01a on Node 0 > [ 199.073573] alg: comp: Compression test 1 failed for deflate-generic: output len = 37 > > The reason for this error is the verification of the compression > results. Verifying the compression result only works if all > algorithm parameters are identical, in this case to the software > implementation. > > Different compression engines like the ThunderX ZIP coprocessor > might yield different compression results by tuning the > algorithm parameters. In our case the compressed result is > shorter than the test vector. > > We should not forbid different compression results but only > check that compression -> decompression yields the same > result. This is done already in the acomp test. Do something > similar for test_comp(). > > Signed-off-by: Mahipal Challa > Signed-off-by: Balakrishna Bhamidipati > [jglauber@cavium.com: removed unrelated printk changes, rewrote commit msg, > fixed whitespace and unneeded initialization] > Signed-off-by: Jan Glauber Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt