Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp91654rdb; Thu, 31 Aug 2023 04:11:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8icpbVj5+qChMig1A7/UrQBEfAvQ+irckZFcBYh/qJ7/RvTnfgqFWtNS8UIbXOyRIeujW X-Received: by 2002:a17:906:101b:b0:9a1:be9b:c935 with SMTP id 27-20020a170906101b00b009a1be9bc935mr3069010ejm.0.1693480302816; Thu, 31 Aug 2023 04:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693480302; cv=none; d=google.com; s=arc-20160816; b=GrwipG19frZeaiwBaKOf4xWCTyxnsy5tCmU6yJgjoZd+4x9CSNQ4b+CE0DnFvhKaNk IVGgdZ0fbA+qRTw5E+dPg+NHy9dRl+KMUMfGvEM1czGvke8Muzy0MQm9WvJc+WnPZcof 8Bl6bYst3vuEAqU+ojNgX2Qg77Y1nB6eyM2yz2GoY72qGtmrTi061LcmVnaWzTQC6kNi COFCypLTCcDI4P/Wob7hG1rp0RrQ5yjaXEsCUEVKWPcYyiyQ9PKw0b5ijNVkLMum7uaz pr6OWPGfdtwIR6YWMo6tER+SKgbopHo691SHJ2IgZOq1S57Dv0VPWBppOuB6fbpGD4wf hhlw== 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=5eGKiuz886c6vDvQWTmvm6/3VNH+Y7hiD39pFuZEQ+U=; fh=dDW2bIOmTJ1kSYRel+DPyf0iYYic9ttTIW7Y6cq9Abc=; b=JQhJjiuDmbVVPoxrui4TTmHc2sJqCc+pAoP6ks7F+xNJNXKZHyufjCE7pfk/kB1rgN DOFVRKVJgG2CC2eo3CJkuJeDJ2Fy/iYiH11xHQF0riOn1NuLuMv4R9HivCncsYkU2FO9 UlvCq9jKEvbXe2pE3knyFtFhExebVuLOheRnsoK+eRrN7VGQL2k4uaKMSelRSfMNESM8 LynJP9LF8WBN59RGempsqJsNTgTzNHxWD6oMkmQOCXS6uEQ3nWZtapxYZ2sXEuJXpD33 h36SNE3ijJeTAEyd5tkkXp9hiJn1VQF88lkKunYubA0NX2rDJX2uYuHtLrxc4uygjUJU jTEA== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a1709064e4200b0099cb49c2dd9si769566ejw.445.2023.08.31.04.11.17; Thu, 31 Aug 2023 04:11:42 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241493AbjHaJjS (ORCPT + 38 others); Thu, 31 Aug 2023 05:39:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbjHaJjR (ORCPT ); Thu, 31 Aug 2023 05:39:17 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D605CCF7; Thu, 31 Aug 2023 02:39:10 -0700 (PDT) Received: from dggpemm500005.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Rbwxc2TsyztS9b; Thu, 31 Aug 2023 17:35:16 +0800 (CST) Received: from [10.67.121.249] (10.67.121.249) by dggpemm500005.china.huawei.com (7.185.36.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Thu, 31 Aug 2023 17:39:08 +0800 Message-ID: Date: Thu, 31 Aug 2023 17:39:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/4] crypto: hisilicon/zip - Remove driver To: Herbert Xu CC: Linus Torvalds , , , , , , , , , , Giovanni Cabiddu , , Linux Crypto Mailing List , Zhou Wang References: <8a73f9cb-b1e8-3b54-4b6c-7cfb19244560@huawei.com> From: Yang Shen In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.121.249] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500005.china.huawei.com (7.185.36.74) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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 在 2023/8/31 13:42, Herbert Xu 写道: > On Thu, Aug 31, 2023 at 10:21:52AM +0800, Yang Shen wrote: >> It's a pity to see that there is no user in the kernel of zlib-deflate. >> However, there may still be hidden >> users in the current kernel who may be using the zlib-deflate algorithm. >> Such as zswap, it can use >> user-specified algorithm. So there are still some benefits to be gained from >> zlib hardware. > Perhaps you should try reconstructing the zlib header in your > driver so that it becomes capable of handling "deflate" data as > is rather than adding the non-standard "zlib-deflate" algorithm? > > There is no way of getting the checksum without decompressing > the data first but perhaps your hardware could ignore checksum > errors? OK, I'm sorry I got missunderstand about the purpose of the patch. The hardware also support the deflate algorithm. I can change the driver to register the deflate interface and remove the zlib-deflate. Is this plan acceptable? If yes, please don't remove the hisilicon zip driver and I'll send the fix patch as soon as possible. It may take me a week to adapt and verify the driver. Thanks, Yang > >> What's more, hisilicon zip driver also does other work besides supporting >> the zlib-deflate: >> 1.Support gzip algorithm. > We don't even have a generic "gzip" implementation so this should > never have gone into the kernel. > >> 2.Support a user space cdev hisi-zip which can accelerate user space process >> via uacce subsystem. > Feel free to resubmit this as a new driver but it doesn't belong > in drivers/crypto. > > Cheers,