Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4898386ybl; Wed, 22 Jan 2020 06:42:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxZ5hfM6WOkti+53DHmRs9D/qoh4aqdJlX7qMl00J1uuMsnLuz/Kpbvco6iDFmBfuuQZshr X-Received: by 2002:a9d:7c8f:: with SMTP id q15mr7672564otn.140.1579704128657; Wed, 22 Jan 2020 06:42:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579704128; cv=none; d=google.com; s=arc-20160816; b=ArjzxYoysvcc/jAI3zClv/26CZZaVjrCblJTaKPV1EVDQUMd6xC2esKZp+NIsOf3rr Cf5vDpZkzj3WoLjKaQICq2r8QGpJskZL+B8SvrW0rb1ClGkG9tDvQ69JpiCB6hz7ZiFq yvSHROL011V5wcwhHkAkg7Jn7fPFDw600JhlntcrW+HS0tDmatx8y2lwvQqg+UYcslP8 Nv8BEBi5E4yEEF1FOVfFkLn6iefU5XJLKW9I6+FNu3O8qFw2Hwo1dcOjryxrEufxD3QA gs68ifw+eCn3GkdSD1lTuvDHjYIfyqIQX/9DykhwxqlUG9IKkcmq6rnL320nPQGCmBhf Npnw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aN8wwFmxK5a94erAND+M8pO+BtLVALiAUG8HzOHtCf0=; b=aIbEVxQMv4Q4A1c2zAbiqmA9ldmTr3WpxbVvdKU6pW1RVAVAq2jqhw1tcXVYTMBtA6 O9YIZC2UBGbv0079NXuafTG8QVl+P0FkNYImO9CnOmGFlqowRMzTVfHQan4yjA6V2/8Y aqmhYqJPfEwcQa0jYdFBkB9YidGBtkhZO4HN6qEGZaaTIfRJ3ruH5RWevPajbDEpzm1z 0MV8UwrCgFMFo3EgzMIZlbHOlNyFApmHhi09eymmY7y47KQqjQpq2rWvEA/y29FYIPMY Lll5BpG78HYy36iHETVnP8E0bBFirrp9b9dv1i97Z4sHjPgLWPgXAyiSfMX9f1rs1N8j 1ILQ== 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 10si20291735ois.76.2020.01.22.06.41.48; Wed, 22 Jan 2020 06:42:08 -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 S1725883AbgAVOlr (ORCPT + 99 others); Wed, 22 Jan 2020 09:41:47 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:51026 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725827AbgAVOlr (ORCPT ); Wed, 22 Jan 2020 09:41:47 -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 1iuHCO-0006X0-Uj; Wed, 22 Jan 2020 22:41:41 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iuHCI-0004MZ-O4; Wed, 22 Jan 2020 22:41:34 +0800 Date: Wed, 22 Jan 2020 22:41:34 +0800 From: Herbert Xu To: Iuliana Prodan Cc: Baolin Wang , Corentin Labbe , Ard Biesheuvel , 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: [RFC PATCH] Crypto-engine support for parallel requests Message-ID: <20200122144134.axqpwx65j7xysyy3@gondor.apana.org.au> References: <1579563149-3678-1-git-send-email-iuliana.prodan@nxp.com> <20200121100053.GA14095@Red> <20200122104134.GA13173@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Wed, Jan 22, 2020 at 12:29:22PM +0000, Iuliana Prodan wrote: > > > do_one_request is a blocking operation on amlogic/sun8i-ce/sun8i-ss and the "documentation" is clear "@do_one_request: do encryption for current request". > > But I agree that is a bit small for a documentation. > > > > Herbert, Baolin, > > What do you think about do_one_requet operation: is blocking or not? > > There are several drivers (stm32, omap, virtio, caam) that include > crypto-engine, and uses do_one_request as non-blocking, only the ones > mentioned and implemented by Corentin use do_one_request as blocking. It certainly shouldn't be blocking in the general case. The only time when it might make sense to block is if the hardware is incapable of using IRQs to signal completion. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt