Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp215802ybm; Thu, 28 May 2020 00:35:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Hh0Dk27aWL49RSEqFSKmGU9Irut5JN4pOsqC9k2OEn5YoJ4AsXXBoTnYoIpgOQkAgMfy X-Received: by 2002:a17:906:407:: with SMTP id d7mr1789878eja.46.1590651309717; Thu, 28 May 2020 00:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590651309; cv=none; d=google.com; s=arc-20160816; b=SDyIYwEOq+rR9i3OxbssBlUoNhtDaVwDjUIa8ASpyJ0Zzi6iUwOiqqyBUZSs2CAR2w +Vxj2PwrdhhXxJo8m6URbrWc8Yf+DxpASgj6Z4so5PNFyhWkabuyHV657zqzTFZCG9yI 0dFxaELgAiuz8Kqe+R7LZvLXbA6xF82wTnMk0CDJ2WPSzrwEX7j6RvyHOqsGxeIQAn7D EoJNXgAAOHrQznutbZ8o+iNQI6/RxKEBDgcRT0+oo6FtiFtZfxXpeAdom8+N0c1BveaM I/y8REzVKJgR/GLs6DIeWcAQUFeEbV661RUxcaC9gVCMSXHEjo0kdfpPgDa25b92nxQH ykIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=xABt507V9MRMky1KYPi+XdZaPTxB8CF+yuS7++CKo9U=; b=VKX0Iao61ajyxByAOhwM+NaUnaZ8/cf0Z0b1Rw2d7xxp3QJN0FR6N9WEoclvrHI601 O3dav7yqdK9F1F9K9CoUlD50Pbf8E0t7PCQ6LfZt+PwaciNsQWi1gchYTpKUlY+eIvI+ qdFCU/GBHESTQiU2vE+U0X1utuxKDFz8qErCRmMV2+7nMCWfM4HQ91YQNg676jXP0SsR 8N/pbU7jQkxFFT3890jIjiU8gvLWgC8GdvqPZV2dbYBiQq26jxwAYNmLa5SPzSFKUGFD 3l5ULjb4r8As6tSgEMYgEPpmCGyyhtnnhXw0IWCQXW36cWAm4oMUo205xiskq5/qokOO nwCg== 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 h6si3340662edl.221.2020.05.28.00.34.46; Thu, 28 May 2020 00:35:09 -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 S1725882AbgE1Hef (ORCPT + 99 others); Thu, 28 May 2020 03:34:35 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:35238 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbgE1Hef (ORCPT ); Thu, 28 May 2020 03:34:35 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jeD3a-0000ob-Sc; Thu, 28 May 2020 17:34:28 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 28 May 2020 17:34:26 +1000 Date: Thu, 28 May 2020 17:34:26 +1000 From: Herbert Xu To: Iuliana Prodan Cc: Baolin Wang , Ard Biesheuvel , Horia Geanta , Aymen Sghaier , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx Subject: Re: [PATCH] crypto: engine - do not requeue in case of fatal error Message-ID: <20200528073426.GB32600@gondor.apana.org.au> References: <1589926645-32686-1-git-send-email-iuliana.prodan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1589926645-32686-1-git-send-email-iuliana.prodan@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, May 20, 2020 at 01:17:25AM +0300, Iuliana Prodan wrote: > Now, in crypto-engine, if hardware queue is full (-ENOSPC), > requeue request regardless of MAY_BACKLOG flag. > If hardware throws any other error code (like -EIO, -EINVAL, > -ENOMEM, etc.) only MAY_BACKLOG requests are enqueued back into > crypto-engine's queue, since the others can be dropped. > The latter case can be fatal error, so those cannot be recovered from. > For example, in CAAM driver, -EIO is returned in case the job descriptor > is broken, so there is no possibility to fix the job descriptor. > Therefore, these errors might be fatal error, so we shouldn’t > requeue the request. This will just be pass back and forth between > crypto-engine and hardware. > > Fixes: 6a89f492f8e5 ("crypto: engine - support for parallel requests based on retry mechanism") > Signed-off-by: Iuliana Prodan > --- > crypto/crypto_engine.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt