Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp126406ybk; Fri, 8 May 2020 21:07:26 -0700 (PDT) X-Google-Smtp-Source: APiQypLWRk/4VPESGu7IO2Mf4FGfOlCJxtWwLs/DTsy7v8eyFZjpRM5OzDqZpb6l3RfKWRnU4sfV X-Received: by 2002:aa7:d6c7:: with SMTP id x7mr4910614edr.313.1588997246263; Fri, 08 May 2020 21:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588997246; cv=none; d=google.com; s=arc-20160816; b=rrhrO3lVjwzTX4tuhUa8ydBPUt7QHiJcp/hIhwMNdCV2x+O1J1YKfaDk1W6QpnW1Xl P7agXIUNor4SsbB0KBeaJQx6Kl6Z7R1+g6tu1dI/caNDiMxXKx/Wr5g9t8X/jgqx7SUN Xd2Xlm8PKzkG47Rf75r253pKfnBR+lhpdcuHLvEAVMhXgEhLDLjWAaQmn4rRvmlwae3V 1QM5vK8XixJxpgXdTF/h8QlbO5IAfV9N4DmCpjkBmdAGt7XF/9x2N83uKuvpqrROjqwu z0j1qCaqercpO/HW/IE/XvRNpztdSQZMeUPeuNd8aHALBNSW/t43Nu2iUnOg+VdUAte9 lhFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=l9frvPiJyQDr8oGwHOoqRX7eyOipI+wraMXY7S/Wgyg=; b=pGRUtk6xquojvj0gzGhjp1zEWgXOdqJ8nmVO+u5+/Bagzi/qVK4+rj/lH5OeE2IOu8 lyzv44sZZpOVtAC0FJ5Gtb9wCQAx9ujYsbDGNGIq1Mo494BTYIWZbIrfqZoQW8Z4brsE 0SQvoQ4hBB0hKRiqvvTWZFGTe1eLws6z7uoti55VGh5diKwCO+a7gSxhFO3xopNeUFwD kwiSTwDWtW1W9kX0AH7HC5VWqt5VO5nR9sZGsOXkb8B+lrNjQAgrCObyWSxNc0wN/Hbc zQX50u/8cirH4ttoaah0D6iHVM8ty3yrmqgkwLEbMH+IAiIxpHAdh1LMK/TV8oMrEMS+ 0E+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm27si2083689edb.49.2020.05.08.21.06.53; Fri, 08 May 2020 21:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725730AbgEIEGs (ORCPT + 99 others); Sat, 9 May 2020 00:06:48 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4363 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725613AbgEIEGs (ORCPT ); Sat, 9 May 2020 00:06:48 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5C3456FF66906F70912C; Sat, 9 May 2020 12:06:46 +0800 (CST) Received: from [10.63.139.185] (10.63.139.185) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 12:06:36 +0800 Subject: Re: [PATCH 13/13] crypto: hisilicon/zip - Make negative compression not an error To: Song Bao Hua , "tanshukun (A)" , "herbert@gondor.apana.org.au" , "davem@davemloft.net" References: <1588921068-20739-1-git-send-email-tanshukun1@huawei.com> <1588921068-20739-14-git-send-email-tanshukun1@huawei.com> CC: "linux-crypto@vger.kernel.org" , Xu Zaibo From: Zhou Wang Message-ID: <5EB62C36.3070005@hisilicon.com> Date: Sat, 9 May 2020 12:06:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/5/9 11:25, Song Bao Hua wrote: >> -----Original Message----- >> From: linux-crypto-owner@vger.kernel.org [mailto:linux-crypto-owner@vger.kernel.org] On Behalf Of Shukun Tan >> Sent: Friday, May 8, 2020 6:58 PM >> To: herbert@gondor.apana.org.au; davem@davemloft.net >> Cc: linux-crypto@vger.kernel.org; Xu Zaibo ; Wangzhou (B) >> Subject: [PATCH 13/13] crypto: hisilicon/zip - Make negative compression not an error > >> From: Zhou Wang > >> Users can decide whether to use negative compression result, so it should not be reported as an error by driver. > >> Signed-off-by: Zhou Wang >> Signed-off-by: Shukun Tan >> --- >> drivers/crypto/hisilicon/zip/zip_crypto.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/crypto/hisilicon/zip/zip_crypto.c >> index 5fb9d4b..0f158d4 100644 >> --- a/drivers/crypto/hisilicon/zip/zip_crypto.c >> +++ b/drivers/crypto/hisilicon/zip/zip_crypto.c > @@ -341,7 +341,7 @@ static void hisi_zip_acomp_cb(struct hisi_qp *qp, void *data) > >> status = sqe->dw3 & HZIP_BD_STATUS_M; > >> - if (status != 0 && status != HZIP_NC_ERR) { >> + if (status != 0) { > > Hi Zhou, it seems your comment is saying we won't report errors for some cases. But the code seems to report more errors by removing the "&&" as the condition becomes weaker. > Anything have I lost? My bad here. We already did this in driver. Please drop this patch. Best, Zhou > >> dev_err(dev, "%scompress fail in qp%u: %u, output: %u\n", >> (qp->alg_type == 0) ? "" : "de", qp->qp_id, status, >> sqe->produced); > > Best Regards > Barry > > . >