Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4681266iob; Sun, 8 May 2022 21:48:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrgiTL5zZWsW9V03OlnfNa+TO9LZm/KqCMPWduvn9AnqKGuMVtxF6IgqTUkORopor0D815 X-Received: by 2002:a17:90b:1642:b0:1dc:6419:43ff with SMTP id il2-20020a17090b164200b001dc641943ffmr16418961pjb.229.1652071707739; Sun, 08 May 2022 21:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652071707; cv=none; d=google.com; s=arc-20160816; b=ePEaWdsB4jtZlEjaOAHem7f8zMiuyVq5NmSVqjX1/wvFQFpgR5lGI9+Yq5J+7E2Uur Sraqczz+5kXUynW15KyX2QJwkfOHLQrcQxMSlWbHlFyCrONCMtOHIWGondgdjNLS0iBa vKet08OhA4iLJu9IMcovNtsx59Zvo1upoBbyuqEj2KkJHUUPOOGNpgECkw5p6evZInOc QUcaJGYeZl0XwKQJ2j6RJnb6NsQE5TdPfHk91UChdJaMckIrPq61E0xif0KkZLNWLtaf nt20zEihHXmg0mTG5ZnmQqp2PDRnlO4fwV+slNIdU0xxeeeekyiUHMn9o0R/f9v0yTz3 azPA== 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 :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=MnXUONzLP/KGclCY+1LYfcxNnDi042TfsCcfwTXLgqU=; b=J9kPYpsVrax3lDnT408CuCLLikM0KF4TTOWZebanXtbwtIKZ7HG96X+Q4Pkie/PIhd AOS5jHebB3SWvrEJBeuihLz9ycjMBEtOvQ7t7LfmeiyvPLwdRji5WFBW1iU6CUtYfn3u rVS52bya5UhyV9CsXbwMztgCgZ2tyflmh/pZnfc/r9NrGbfYJ9duDoKnxUNH6L7OaI1A EMpIdpQww0LOUFoflakqlVjh1JeMJfcGQKXV6Li59NRPFUTtp0NDbYBz0vhbcQKajrvY jlbjiJzWcIyUq+Dg/Ck31mkcTDmFFbw7Ise/TB/USnRxhkfyCBZGC2UWSLB3Wba3D38Z KiuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (expired) header.i=@kroah.com header.s=fm1; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o9-20020a63e349000000b003aaa7c6cf64si12393469pgj.216.2022.05.08.21.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=neutral (expired) header.i=@kroah.com header.s=fm1; dkim=neutral (expired) header.i=@messagingengine.com header.s=fm1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 01FB21312AB; Sun, 8 May 2022 21:46:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235260AbiEFJoz (ORCPT + 99 others); Fri, 6 May 2022 05:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1390707AbiEFJo3 (ORCPT ); Fri, 6 May 2022 05:44:29 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA045140CC; Fri, 6 May 2022 02:40:45 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id B9A263200AC4; Fri, 6 May 2022 05:40:43 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 06 May 2022 05:40:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1651830043; x=1651916443; bh=MnXUONzLP/ KGclCY+1LYfcxNnDi042TfsCcfwTXLgqU=; b=jgrcpdiD9IjHrphjGuAPUcSvjv QmPn4DH/TNP0ZG2lyzGw0d4KDayYASKr2mmf1rTdTAl3LrGykuK76dtCn8uESdps phPC+IMAToTQ+6nN8uniKC840aDL++YlVxeWZerjDN0EhSJbmkUi02fwRY8q6pX4 BWdzqnnP9O1cQBOEUbwOWZBGyrE68UHx96bc+MsbfdSF//RpXn/5N7ldjdXA6maa 6DTXp1z/lKpk//dFX8aj50MTVNexFBhIdkpyP6pRzN+df1yGZWrCy0fx1deOkQP0 56nm3EIaJp6GrWDQpHq4T4AgX4GkAwd4GmemXoiXkkpZfIDhUBPn7O9S3s3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1651830043; x= 1651916443; bh=MnXUONzLP/KGclCY+1LYfcxNnDi042TfsCcfwTXLgqU=; b=g q3DI65ontVYJ80dqoA4y07oiifYM68FUiZvyUb6jLNYihnz7JRR7tKaEdrufoDAj sIuYlzvTF517+rREiuAagZZC0XaWwftOJ1hH9dCc9VwHsWVC5dEUXLUV0yEdxo9d PNTbYPmWdocVhzrqATqkw4s+H5G5/VCPQgtApALX3r15Ox1RNI85KShl6QcJG5+G mVxVGyRWQfdNrc6+fQcmN7pfYUL1NmYSE3FTOeg6ajE48MWOLOwmUnRAkHOceMGM H87R4UwdKSGAVlkb508FvSoALGuI6ehuvNydURz/NLl3tfDr24mA22qyeeK0aqxi viSrLOtxAwjUNh/CnD7lA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeehgedvve dvleejuefgtdduudfhkeeltdeihfevjeekjeeuhfdtueefhffgheekteenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 6 May 2022 05:40:42 -0400 (EDT) Date: Fri, 6 May 2022 11:40:39 +0200 From: Greg KH To: Giovanni Cabiddu Cc: herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, qat-linux@intel.com, vdronov@redhat.com, stable@vger.kernel.org, Marco Chiappero Subject: Re: [PATCH 02/12] crypto: qat - refactor submission logic Message-ID: References: <20220506082327.21605-1-giovanni.cabiddu@intel.com> <20220506082327.21605-3-giovanni.cabiddu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, May 06, 2022 at 10:38:18AM +0100, Giovanni Cabiddu wrote: > On Fri, May 06, 2022 at 11:24:14AM +0200, Greg KH wrote: > > On Fri, May 06, 2022 at 09:23:17AM +0100, Giovanni Cabiddu wrote: > > > Move the submission loop to a new function, qat_alg_send_message(), and > > > share it between the symmetric and the asymmetric algorithms. > > > > > > If the HW queues are full return -ENOSPC instead of -EBUSY. > > > > > > For both symmetric and asymmetric services set the number of retries > > > before returning an error to a value that works for both, 20 (was 10 for > > > symmetric and 100 for asymmetric). > > > > > > Cc: stable@vger.kernel.org > > > Signed-off-by: Giovanni Cabiddu > > > Reviewed-by: Marco Chiappero > > > > What does this "fix" to require it to be backported to stable trees? > For two reasons, (1) the error code returned if the HW queues are full is > incorrect and (2) to facilitate the backport of the next fix "crypto: > qat - add backlog mechanism". > I can be more explicit in the commit message if required. Please always be explicit in the commit message, it's the only way to communicate this type of thing. thanks, greg k-h