Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp713727ybx; Wed, 6 Nov 2019 07:20:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwM0ZiAwtu2TXSJAGRCMbQ9DKF2ac7ydnCiA5Z+oNgAFPp6JSB3ACsF08Uy4KkGq69/te+N X-Received: by 2002:aa7:d4c6:: with SMTP id t6mr3195444edr.228.1573053653560; Wed, 06 Nov 2019 07:20:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573053653; cv=none; d=google.com; s=arc-20160816; b=cNQ+xnt+f0XXyixOGB/1LqRNEBuQuEZEZe/hg0RRpiXq8q98GC0raL3U7Yav4+vNDP qQoja8nh5awwSuRVUlDWw3vNGCueamkWz7M/FTr3W9kzUhVmQNvzbisHS3f+fj+P4DG4 MoYaXniIaFapjY1I/q88dAIZPPlEqYkWYhfnA70BfS1j4Q+NBtaPI4CKN1BIPJZ+67QM hIMgWnkOB8cF22IaR1OneNJgUac7pA7HPrA3ANy5xyNbLlF19HgU3E7TL2XE6aVNM4AC TKbFZJQTa6TepOJTMBm7X+J+J8WhTLmz6Hs/YxoeQsKdtOLbdD9ZbaLGwH+ggqOLg+LI lvzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=M0IBd/SaidQNLpNJyp1ZZ/9s4QZhbQrts+pf5iBup6Y=; b=eNZmxyWTMzL/P0b4MCrdzL3MPG8Wie1k7jdfZCAD6B4ltNSe60SAjxLqtxjEhvnkYZ 6yg4Ipd+R/IgWFJlc5+ft1vwxnhShkbXJhmGfSkpT25//M+2XxosOa//EM8Tjqt1JH20 4Obtd6YYMSC5pwFdGCibRURH3DHBo3z8Xx7gmyFOEQ/An609mv5fqhCXfA2nxomIHFLQ yOOfR+Fk+xcMlRph4Iy3n8cL7MyCN3Ma55RGZ2E+6BrFXg8adlR+8Fbzu6hU0sK/i+j0 QZe9otoit+DJ+g/UUEAXpZNcCV5AeOKPfPD1+n+5xXTXhKqX8Ud5VGuL8myZ8qAwEmCg FEQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NQxmhZ/z"; 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; 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 y14si12185985edu.250.2019.11.06.07.20.29; Wed, 06 Nov 2019 07:20:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NQxmhZ/z"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727685AbfKFPTe (ORCPT + 99 others); Wed, 6 Nov 2019 10:19:34 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55903 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbfKFPTe (ORCPT ); Wed, 6 Nov 2019 10:19:34 -0500 Received: by mail-wm1-f67.google.com with SMTP id b11so1002519wmb.5; Wed, 06 Nov 2019 07:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M0IBd/SaidQNLpNJyp1ZZ/9s4QZhbQrts+pf5iBup6Y=; b=NQxmhZ/zqXbWVBCiPGzsl3D3RIFUUF4ypQ4anIvBWBLR1B9Y8TKbATJPi96yjViDUs siOaZWUp2L0eEgYliVDf4H0lChWL8pGwCxNyOBNbn51M7LlxSv0hiLztTbSvdOpAWBWV 2qBTI7Dzwpifxv0EulFM1BXOf5yixLecc7KZ1FY8jW/cWtjVpukE9uhBx741z1SViV2G 1cxq6QPk15IoXxJj+ZpLdFTuDI+apFi7MwBWVDcJkJp7913qCGiD9WI2wC4t2kksCekr I+DTO7W69UDvo0txALPY9rp5Eoo7PZkDaunrE8ZEFI8lY4qeyBxbMG7f6IVyZulqGXbD U5Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M0IBd/SaidQNLpNJyp1ZZ/9s4QZhbQrts+pf5iBup6Y=; b=SU1enVUzt4k6ApGKKFG7UkTaLe6gPuMHjLJtKgcGpC7p8WBHsw96wuCS5W/phOh1Zy l7oLhNhSbV34ClLkcAWPmJuEp003qxnQNWbXjQQWIzrqNM2+ix4xmv8LWSakpdYmes3R Fm7KZKSAXARUYwnH2sWOXUngF56V0j0SeDAvN8zsZlFli1qQ5+dgUaS4CyBS/8suZD4P Wml52afQmzZ+hASSzxVo3eLiYzhxCixo8nrPPkitb9YkDyB+OMGdmWm1xB8/itMEM9EI jGtWKAkqtGxJ4pdNCDrqDDzSrC+Odtn9WrR51AG2PwvhC1SoW5Y69LSgYxlNyNNYITdG F8uA== X-Gm-Message-State: APjAAAX4CglLTlkgPF3PyX/W1j7wlFLFFS16t6O73dv607+elEGgD9Wa VoiBoVMcOg8LaqfYg5szc2FtGeSHl7t3Mf9rP1Q= X-Received: by 2002:a7b:ce11:: with SMTP id m17mr3204670wmc.113.1573053571949; Wed, 06 Nov 2019 07:19:31 -0800 (PST) MIME-Version: 1.0 References: <20191105151353.6522-1-andrew.smirnov@gmail.com> In-Reply-To: From: Andrey Smirnov Date: Wed, 6 Nov 2019 07:19:20 -0800 Message-ID: Subject: Re: [PATCH 0/5] CAAM JR lifecycle To: Vakul Garg Cc: "linux-crypto@vger.kernel.org" , Chris Healy , Lucas Stach , Horia Geanta , Herbert Xu , Iuliana Prodan , dl-linux-imx , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Nov 5, 2019 at 11:27 PM Vakul Garg wrote: > > > > > -----Original Message----- > > From: linux-crypto-owner@vger.kernel.org > owner@vger.kernel.org> On Behalf Of Andrey Smirnov > > Sent: Tuesday, November 5, 2019 8:44 PM > > To: linux-crypto@vger.kernel.org > > Cc: Andrey Smirnov ; Chris Healy > > ; Lucas Stach ; Horia Geanta > > ; Herbert Xu ; > > Iuliana Prodan ; dl-linux-imx > imx@nxp.com>; linux-kernel@vger.kernel.org > > Subject: [PATCH 0/5] CAAM JR lifecycle > > > > Everyone: > > > > This series is a different approach to addressing the issues brought up in > > [discussion]. This time the proposition is to get away from creating per-JR > > platfrom device, move all of the underlying code into caam.ko and disable > > manual binding/unbinding of the CAAM device via sysfs. Note that this series > > is a rough cut intented to gauge if this approach could be acceptable for > > upstreaming. > > > > Thanks, > > Andrey Smirnov > > > > [discussion] lore.kernel.org/lkml/20190904023515.7107-13- > > andrew.smirnov@gmail.com > > > > Andrey Smirnov (5): > > crypto: caam - use static initialization > > crypto: caam - introduce caam_jr_cbk > > crypto: caam - convert JR API to use struct caam_drv_private_jr > > crypto: caam - do not create a platform devices for JRs > > crypto: caam - disable CAAM's bind/unbind attributes > > > > To access caam jobrings from DPDK (user space drivers), we unbind job-ring's platform device from the kernel. > What would be the alternate way to enable job ring drivers in user space? > Wouldn't either building your kernel with CONFIG_CRYPTO_DEV_FSL_CAAM_JR=n (this series doesn't handle that right currently due to being a rough cut) or disabling specific/all JRs via DT accomplish the same goal? Thanks, Andrey Smirnov