Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp773983ybi; Thu, 30 May 2019 06:34:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0IjFusEstenDPETARn64kGzc6C6GmkEzUEVC9emnAY1fsc+ihV+uSldcCOPj12VeHWtSB X-Received: by 2002:a17:90a:26a9:: with SMTP id m38mr3530022pje.93.1559223293137; Thu, 30 May 2019 06:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559223293; cv=none; d=google.com; s=arc-20160816; b=TRWwaLihoqC7pvOnWiuUDbS+zFnBW1ADn/lfVTMOAbJrHWaBSwvrT8zNk6x3Lx3BQE zPQ1wel818AbFjShdi4QZYcN4X+VgBFChPv3Cbq47HH70OpcEIULi2nT9WFHzIsGMkuV pgpb6jRHxviB1GBYZC0NvbQm797vviv+j2gx/IZyB2ZgdaRMqG+W6bksSkL45UCpJJnH M3UB7Ith0Rwotnw/9/LpBF346AqehNDJpixJUkc5OolbxwO0rnTPuc08WdY4tYOUKiao dg4mo0404rY9nZQR7wxDVMMFhqOyvGYTN1hYGBHO7wYiEdhZpXK8GlWPRsDOeF7KTajW O+BQ== 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=UVAJCdvVDQSwu3f8X4z/p0qH8QLh6SHAMpzsAoHLMgI=; b=pMqSWOcUFyfF5j0TbLowudBC88szZ5jmsVrWrIW6LASRvQz3snfvvhqqI2+FBh8Kkw ZF+yYtNlFWv46BXmTUCLgKtqgvUVmPnBrGGjvlbC+bO3de2dmoE4TW1zXf884T3sG4J/ dlYf4OmqKD/PG0ug1qEd1U9xMq0oQtXO2PmreEpsJgncW7BqSz0W1VYsZBYeUC2KNvHu XQ5GlEEPpwAjR0qHO3Y1EvTGpuSLGL2bUqnqeqTuPNN7Fl794HchwAGk+nREHnl2JOWh R2s/quHwKr+QBIm6sFYtzB0Vz9SGmi2/cMLmS0PW87uDGzDruhquc0AhuS5gnLgoNhVj 0q2g== 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 h34si3348191pld.187.2019.05.30.06.34.38; Thu, 30 May 2019 06:34:53 -0700 (PDT) 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 S1726372AbfE3Neg (ORCPT + 99 others); Thu, 30 May 2019 09:34:36 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:37884 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbfE3Neg (ORCPT ); Thu, 30 May 2019 09:34:36 -0400 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 1hWLCR-0005M3-PK; Thu, 30 May 2019 21:34:31 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1hWLCN-0003Zp-B9; Thu, 30 May 2019 21:34:27 +0800 Date: Thu, 30 May 2019 21:34:27 +0800 From: Herbert Xu To: Iuliana Prodan Cc: Ard Biesheuvel , Eric Biggers , "David S. Miller" , Horia Geanta , Sascha Hauer , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Linux Kernel Mailing List , dl-linux-imx Subject: Re: [PATCH] crypto: gcm - fix cacheline sharing Message-ID: <20190530133427.qrwjzctac2x6nsby@gondor.apana.org.au> References: <1559149856-7938-1-git-send-email-iuliana.prodan@nxp.com> <20190529202728.GA35103@gmail.com> 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 Thu, May 30, 2019 at 01:29:41PM +0000, Iuliana Prodan wrote: > > I've tried coping the IV before the extended descriptor allocation, but > is not working and to make it work will need to make more changes in > CAAM. We need the original iv, and if we move it before > skcipher_edesc_alloc we lose it. > The fix exclusively in CAAM drv, to copy iv before DMA map, is more complex. Why doesn't it work (apart from the fact that this only makes sense for CBC and yet you're doing it for everything including CTR)? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt