Received: by 10.223.185.116 with SMTP id b49csp1039001wrg; Fri, 16 Feb 2018 11:16:27 -0800 (PST) X-Google-Smtp-Source: AH8x227xyWI+vvcfKd4Yx4Mv+xQOs3Wj3ivAC7ihj6QGrNHjXJDFHIGZW/pt3s8VryWpBTYMxZiG X-Received: by 10.98.16.9 with SMTP id y9mr7072483pfi.189.1518808587256; Fri, 16 Feb 2018 11:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808587; cv=none; d=google.com; s=arc-20160816; b=AXHroOaopeFbYZkaEgwdWotYvndXeVHrTMBZDs0YVj7BP8z9xWD55v8qq0LzYNLL+Y yY+haDZrWTrHnAY6P4j5QkzA3k0MYYsk1Uma2JjQuBnxdGl5etQf5of+Pj0shLl+yQSo 5TYfdPloEDh8jLib8EH/MutRUOkI2RQsxAsK67+NMfZAoEvE8uci6lbu6ZzEqN9IufcY fhwtFuJjjDyS5a35ktZEPtG8u2Ro9fALMzlEN2usx607Q0LPO9oQm8h2SMQwOj7kb2zv TYsBawo/HXjPX+IBNdgUvy91gRKGoXkGt88iY+2b01avwKK7w8k+UFQavGra0C2h+qtM 8Iew== 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:dkim-signature:arc-authentication-results; bh=WKpQ+o9006wvR894X05ZwJdjBTOP51kSdfgNITBVRfg=; b=iZi4d/6jbgw7HwLYvzIL/yLnQaNUwWHJBeX9VDcHYOkR2FGZ49DcOmGs3UD5sfsEWd YTBG7y4ZbFTIpzdhwi3NlcT1tuVd98+3HIeLlPr4lqdB24nwkiIGpfvJ+/BFQ+aRgBdL 8tfuimePTXduZCtMZRJlSVlL/zpAFzhC9FkC/1pIuUhJlcqujRhmqzCDNPsJz92iY5MH zmENaThL6cYORFYJBCmja3UfCXCNNA6WpmvsT5uUJYADI2OrzffA7FK+N99TMuyyVDra x7LvTPcvudITwGB2h3iENHu43WJr+rb2Cwa6nKOaZZNKDmZOt+LGCs2oRy41o0c3J7GK ObXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TRyP4QNp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c129si978487pfa.362.2018.02.16.11.16.12; Fri, 16 Feb 2018 11:16:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TRyP4QNp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756270AbeBPPhE (ORCPT + 99 others); Fri, 16 Feb 2018 10:37:04 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55993 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752865AbeBPPhB (ORCPT ); Fri, 16 Feb 2018 10:37:01 -0500 Received: by mail-wm0-f66.google.com with SMTP id h74so3866695wme.5; Fri, 16 Feb 2018 07:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WKpQ+o9006wvR894X05ZwJdjBTOP51kSdfgNITBVRfg=; b=TRyP4QNp8s28pHogwdXUmE2IMWTtkfRMerrAMtoms0IW22pZfuFjZUeEjDW2jG5ScH X4Dh+kiGuGmEH2EY0LyBbfWN/029xY3m9zM3+Kk6rwYrARtpvWSVGH5A8wIgpn6qI1No fpoatQAq045CtF5ju+/Ii+jrZ8gEQrlsN9GGIdxvQlmhP9yFRMuf8pNV5y5lDkFmPUSA bBXI3is4URnWR6sCSrfYaFIcs5vv3Ei2MUhVSDg6ygBzHt4e+vheOpycJxFJ/F56dATB SkHc7Tag5ThVUAzVu0OcoInsfcz7aT+RNs1lIxry+SzqOua79Qmtk9ymlDApq/hhLjbJ KZ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=WKpQ+o9006wvR894X05ZwJdjBTOP51kSdfgNITBVRfg=; b=DNmzw2sQh3kyzQ06sDjW3qy0PPGglYmXMY5DFayGhVI0H8GwHj5qX+UzsXgzz5xrzJ TOPnn5t0qoF4ZGBIuuTwdNdMPKFrhC7AdTLkYKlpgl2l1xUXxW7VP3O0k21jqCQhBc13 9yZQ8vwSO00mW3ONdPO9R2iJKeeBv/CvnhSqOegJbhJDxZ0tcoicXfOiLBjCtehMjdJm Hz/eNP9DllJSCEigHhI1EMtFN6FlVCd9WjSkojBPfMkLUp30uErGyIQmfheaeeheU0n3 wZeg+F2hj6Dh2dgb9zB1kD9DfJmX6BNZTAvrVtIDLmFShkx2r6ogvVQ4oz+6iIN+U4LA +WAw== X-Gm-Message-State: APf1xPDcRhPg1KNrRpvZ7XGVc/CoNf1h1YhpAYitQJw8DT1Z7Kze9QFk 2y6Z19AjCNvzel2Jjk52sC4= X-Received: by 10.28.116.16 with SMTP id p16mr5561398wmc.21.1518795420198; Fri, 16 Feb 2018 07:37:00 -0800 (PST) Received: from Red (LFbn-1-6953-231.w90-116.abo.wanadoo.fr. [90.116.134.231]) by smtp.googlemail.com with ESMTPSA id s14sm5173667wmb.32.2018.02.16.07.36.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 07:36:59 -0800 (PST) Date: Fri, 16 Feb 2018 16:36:56 +0100 From: Corentin Labbe To: Herbert Xu Cc: alexandre.torgue@st.com, arei.gonglei@huawei.com, corbet@lwn.net, davem@davemloft.net, jasowang@redhat.com, mcoquelin.stm32@gmail.com, mst@redhat.com, fabien.dessenne@st.com, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 0/6] crypto: engine - Permit to enqueue all async requests Message-ID: <20180216153656.GA22492@Red> References: <20180126191534.17569-1-clabbe.montjoie@gmail.com> <20180215155100.GJ7352@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180215155100.GJ7352@gondor.apana.org.au> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 15, 2018 at 11:51:00PM +0800, Herbert Xu wrote: > On Fri, Jan 26, 2018 at 08:15:28PM +0100, Corentin Labbe wrote: > > Hello > > > > The current crypto_engine support only ahash and ablkcipher request. > > My first patch which try to add skcipher was Nacked, it will add too many functions > > and adding other algs(aead, asymetric_key) will make the situation worst. > > > > This patchset remove all algs specific stuff and now only process generic crypto_async_request. > > > > The requests handler function pointer are now moved out of struct engine and > > are now stored directly in a crypto_engine_reqctx. > > > > The original proposal of Herbert [1] cannot be done completly since the crypto_engine > > could only dequeue crypto_async_request and it is impossible to access any request_ctx > > without knowing the underlying request type. > > > > So I do something near that was requested: adding crypto_engine_reqctx in TFM context. > > Note that the current implementation expect that crypto_engine_reqctx > > is the first member of the context. > > > > The first patch is a try to document the crypto engine API. > > The second patch convert the crypto engine with the new way, > > while the following patchs convert the 4 existing users of crypto_engine. > > Note that this split break bisection, so probably the final commit will be all merged. > > > > Appart from virtio, all 4 latest patch were compile tested only. > > But the crypto engine is tested with my new sun8i-ce driver. > > > > Regards > > > > [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1474434.html > > > > Changes since V1: > > - renamed crypto_engine_reqctx to crypto_engine_ctx > > - indentation fix in function parameter > > - do not export crypto_transfer_request > > - Add aead support > > - crypto_finalize_request is now static > > > > Changes since RFC: > > - Added a documentation patch > > - Added patch for stm32-cryp > > - Changed parameter of all crypto_engine_op functions from > > crypto_async_request to void* > > - Reintroduced crypto_transfer_xxx_request_to_engine functions > > > > Corentin Labbe (6): > > Documentation: crypto: document crypto engine API > > crypto: engine - Permit to enqueue all async requests > > crypto: omap: convert to new crypto engine API > > crypto: virtio: convert to new crypto engine API > > crypto: stm32-hash: convert to the new crypto engine API > > crypto: stm32-cryp: convert to the new crypto engine API > > All applied. Thanks. Hello As mentionned in the cover letter, all patchs (except documentation one) should be squashed. A kbuild robot reported a build error on cryptodev due to this. Regards