Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp252437rdh; Thu, 23 Nov 2023 03:08:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgbIh2ag33R/CYPJqHnquI7xlY1pNNj82wlVKRq6Y+yZwmh8p9GJo6GJcbwYO8Dyr3k/HG X-Received: by 2002:a17:903:41c7:b0:1cf:6f1a:33b0 with SMTP id u7-20020a17090341c700b001cf6f1a33b0mr5439266ple.59.1700737732621; Thu, 23 Nov 2023 03:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700737732; cv=none; d=google.com; s=arc-20160816; b=hgMZPTpTT/6rsD9JyrTywcoBqVGRizHFeJn8I2xu9ixZKraZQH3SxNilfXf2yZ4UZk +CK69LY6jsK+FjKSv7SWuMKHLV9VtYBv3lvzix2enDerwAwXf+v1digBJgM4xjP2OwGa ZD6/M1XTpSqIEXgzVBaKpBZkY+JRGwmXV2i7198/8Yer5F1lzeKrkXGmBfW7nlEHfQ4V 5zi46HTfFHPXb4CaWHgvD1YoVWKsvJJp82EfXjBUm3fIsvjQ9p6uKIeNzwwjQX+9gJwF VsWJgSht4Cuy26YcjGyXV1ErWTGfe+LDFk9sw2mY82VMsI9+Ir1ZiRuiCKQD0hYl2Lm5 W8JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=n6nCZ6sFDE9HKcyS72jkyFGZ9WcPmQdgK3mKu1u+jI4=; fh=QEgo2wY1iaL97bGsQoahL0cxu3scKD8VgIe1qfV9hIA=; b=F+wWrugn9plCIbItwdawXvQxF6wk+iz1pfoNjLHWb+76tvCm8mbr0YyGMXdCkuqS/2 2znJ00z/PbIorMvOzowUGB3nUMp9oO2yml3m7DukHSLGddEF4LCcFA53rMR7BVEot3Lb ey/xXqAWsmrTV7F5UWGLJyWwrdgjKkQ+eJVLXTsGpcwn/9wB/pCQSz+ENbLct3psqW2W ysszzbM/dXYIi73F8JR78ObDNLsfaezrj+hQagUt7sv2mRTa/5jJ/A1F/xuGFrih/b6B ChMJSb8pEGx9Ozr7WCL7+PA8QhmhsKuP/lAmVYghJUHP7bxIpFbQquHnEiZu7w1baFhl Z78w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k17-20020a170902c41100b001c3a05b0b58si927569plk.500.2023.11.23.03.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 03:08:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9473E80AEB01; Thu, 23 Nov 2023 03:07:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344910AbjKWLGv (ORCPT + 99 others); Thu, 23 Nov 2023 06:06:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230150AbjKWLGt (ORCPT ); Thu, 23 Nov 2023 06:06:49 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69BA1BE; Thu, 23 Nov 2023 03:06:55 -0800 (PST) Received: from dggpemd200003.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SbZv41Zh9zMnNK; Thu, 23 Nov 2023 19:02:08 +0800 (CST) Received: from [10.67.120.171] (10.67.120.171) by dggpemd200003.china.huawei.com (7.185.36.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.28; Thu, 23 Nov 2023 19:06:52 +0800 Message-ID: <234619d9-c1ae-4663-9c4a-de6f18dcedba@huawei.com> Date: Thu, 23 Nov 2023 19:06:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] crypto: hisilicon/zip - add zip comp high perf configuration To: Herbert Xu CC: , , , References: <20231121134024.114476-1-huangchenghai2@huawei.com> From: huangchenghai In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.120.171] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemd200003.china.huawei.com (7.185.36.122) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 23 Nov 2023 03:07:12 -0800 (PST) On Wed, Nov 22, 2023 at 05:56PM, Herbert Xu wrote: > On Tue, Nov 21, 2023 at 09:40:24PM +0800, Chenghai Huang wrote: >> To meet specific application scenarios, the function of switching between >> the high performance mode and the high compression mode is added. >> >> Use the perf_mode=0/1 configuration to set the compression high-perf mode, >> 0(default, high compression mode), 1(high performance mode). >> >> Signed-off-by: Chenghai Huang > Is it still compatible with the software algorithm implementation > when in high performance mode, in both directions? > > Cheers, The high performance mode only improves the performance of the compression direction, and it is compatible with the software algorithm implementation in both directions. The v2 patch will be sent for adding comments "These two modes only apply to the compression direction." to the code and "crypto" prefix to the subject. Thanks, Chenghai