Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1271752ybv; Thu, 13 Feb 2020 19:40:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxR86obH7sOzcGk87PSL1GMd/JPSTdJjQW+HaLwCPiECxh/zNywH46Upq7r3mR6oGa4tgfF X-Received: by 2002:a05:6830:610:: with SMTP id w16mr626830oti.239.1581651618723; Thu, 13 Feb 2020 19:40:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581651618; cv=none; d=google.com; s=arc-20160816; b=lPnoAcqSXPJ5XpQOauKLVqT/J8UWrc3b/qmjsGy7NXbwGPl49P7eIb32nPj/CZZNYL WgAEKSe5IZU6yQi08jCbzx0ueu7/TudevjHrJEAJ+G4k+Py6lNZXtun+5IJbuzMmDlcu oB25eHziCKhNGTAMJTxf2IjqnQB5V2r2sGT2QNXi4a2PofO9fh7ULTpuFw/A8k2CPYyV LUG0BeIvmRS8aasYbHGEZHMDsK1WpyKoQLoYXE2OtV0+k3EkySiY7mSehxQOWxSsPxKp yvKDXb5iCWPI0ytoZDINnaQ7xzi2gbK6yDCcLuCrIBVfykprwReFnWZkN3mSvESVIVxU fTvA== 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=fmOQqWMeNWepxSFeLHmuyIhUhQfJ/wZE9Fkyl3bVUfs=; b=jKjsxyBesjrlM+xUiJTX9a2DRO2AgywNgK2SQZ1nTs8KPCHFwYYcUY/BNCNq6nt6oa OQ01U6AFmWsb+WYF08Um2te46RN0PIFpRFPn3LivLB6+DwWkQLggEBG+GaUyJcaAlMkI BuDGZp3ZR3Tz1yIUpWdLo4/fgg1RN8BXJdrvZpoiBj6T1s7Xffz45QYRHXzUKy3WvxqS FG9kCYC8LBYfwhkbm/mYBmoH7HzIY16yirFxQ6qfXgjKHZHPPbHSLLlr9vN1PfgJc+RM 3+o+I3bHOhFTn6Ri4VHFursza5fqBK3Zn7rUBepzz1XBpWz1bTcGkwA+JZZ1DkoaB/Z/ E8/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a194si2198366oib.227.2020.02.13.19.39.56; Thu, 13 Feb 2020 19:40:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728053AbgBNDjx (ORCPT + 99 others); Thu, 13 Feb 2020 22:39:53 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:39356 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728052AbgBNDjx (ORCPT ); Thu, 13 Feb 2020 22:39:53 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1j2RpT-0003Q5-2y; Fri, 14 Feb 2020 11:39:47 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1j2RpO-0008KC-8Z; Fri, 14 Feb 2020 11:39:42 +0800 Date: Fri, 14 Feb 2020 11:39:42 +0800 From: Herbert Xu To: Iuliana Prodan Cc: Baolin Wang , Ard Biesheuvel , Corentin Labbe , Horia Geanta , Maxime Coquelin , Alexandre Torgue , Maxime Ripard , Aymen Sghaier , "David S. Miller" , Silvano Di Ninno , Franck Lenormand , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH v3 1/2] crypto: engine - support for parallel requests Message-ID: <20200214033942.uatozeoqzrhu7shq@gondor.apana.org.au> References: <1581078974-14778-1-git-send-email-iuliana.prodan@nxp.com> <1581078974-14778-2-git-send-email-iuliana.prodan@nxp.com> <20200213061808.t6udjbgskc2hs7sa@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 14, 2020 at 01:25:50AM +0000, Iuliana Prodan wrote: > > Given your suggestion, I’m thinking of implementing do_one_request, in > the driver, to return -IN_PROGRESS if the hw can enqueue more and -EBUSY > if otherwise (solution 1). But, this implies to update all the drivers > that use crypto-engine (something I wouldn’t mind doing, but I don’t > have the hw to test it). We could always maintain a legacy interface for existing drivers until they are all converted. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt