Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2307066rwb; Fri, 20 Jan 2023 00:50:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXtNVE4x7+NBa00UJnLbt6O18rQznKHC/lV0gRIHE4DM2jXUla7rMWEY5km6z76aN4k5M7s1 X-Received: by 2002:a05:6a20:1450:b0:b5:e1f5:c72f with SMTP id a16-20020a056a20145000b000b5e1f5c72fmr18013072pzi.28.1674204634996; Fri, 20 Jan 2023 00:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674204634; cv=none; d=google.com; s=arc-20160816; b=Ij5Mw28oF7Vwh+fGAjpJbpry0TjDnZjYU1QmCtapD1kJ2JCHXBCc6VrHCZyiTXm+hY sCGr+tHOy0pD/Cop3VaStjHW9WfKkzQSvxzwvcGvFGi/9ajuHp9pzeISOReVNaIy1+gY Ux7rfZsv5PIVtoSZLVuG5GI8WFSWGny1+e9tfjlh+tAgu+KbpraP/A5+/76YVyxT85Eg r5tU+8xomtNLgM44In3mWl/LSgJzA1OVCL18F4Ytn1FyDL8+EE+hfaFInHblj43DTnn1 HvRdZZ1mCjTdIaBQLoLlRdmN6T/D3IKx4c0KHM2c9pOwKvCWiQ5Y4S2xEggNRq3/oUIq 8VFw== 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 :message-id:subject:cc:to:from:date; bh=YAGrPAaZ+F/VRphcX0dwXWqoXD7MNxxOnT7ukIiRRbM=; b=jZD9qAjEXh0SQ5McNG1yjVJx+IEOfI/Ko4B4AUeZduQrQVuN6aPYrWYTPtW617gqjM 48uMWthGmKvFJK5FALTf0/w6il+k0g8fiPINvcLx3Aq6sat3FeEXv8D7QK0Atcsacd6g 6Y8mEukfLeNqN33MCyqKa0Z3qEO1ooXM1f98OHgx3WoVrXsxGa6E5JGfpb8APnSQh8bU TdNPzVOFdHdkT8ayrlsaxImIrIi5UeY9adc0oLRtrFWGl16k9hdF984GVt5Kd6BwasvW 3pr/fkJCVf9yuhbr07APTq1x7qJ0gQ3cUA1nYW8Wnp7FZcPLK85+xRzeWaIa+/5HsgsX xF0A== 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 h123-20020a636c81000000b004d21beccd98si4233529pgc.29.2023.01.20.00.50.14; Fri, 20 Jan 2023 00:50:34 -0800 (PST) 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 S229798AbjATI31 (ORCPT + 99 others); Fri, 20 Jan 2023 03:29:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjATI30 (ORCPT ); Fri, 20 Jan 2023 03:29:26 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCDF9C14F for ; Fri, 20 Jan 2023 00:29:22 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pImlz-0028rH-Dk; Fri, 20 Jan 2023 16:29:20 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 20 Jan 2023 16:29:19 +0800 Date: Fri, 20 Jan 2023 16:29:19 +0800 From: Herbert Xu To: Giovanni Cabiddu Cc: linux-crypto@vger.kernel.org, giovanni.cabiddu@intel.com Subject: Re: [RFC] crypto: qat - enable polling for compression Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230118171411.8088-1-giovanni.cabiddu@intel.com> X-Newsgroups: apana.lists.os.linux.cryptoapi X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Giovanni Cabiddu wrote: > When a request is synchronous, it is more efficient to submit it and > poll for a response without going through the interrupt path. Can you quantify how polling is more efficient? Does it actually make an observable difference? > This patch adds logic in the transport layer to poll the response ring > and enables polling for compression in the QAT driver. > > This is an initial and not complete implementation. The reason why it > has been sent as RFC is to discuss about ways to mark a request as > synchronous from the acomp APIs. What existing (or future) users would benefit from this? You could poll based on a request flag, e.g., the existing MAY_SLEEP flag. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt