Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1239613pxk; Fri, 2 Oct 2020 04:55:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7yOjgKocQRpcJ4wtNyq5djWACTmBqkilhwndAaJGvYjg1AUuK+NksZCXoGaV9hVcf2p6X X-Received: by 2002:a17:906:6b98:: with SMTP id l24mr721338ejr.339.1601639758049; Fri, 02 Oct 2020 04:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601639758; cv=none; d=google.com; s=arc-20160816; b=zG6NdkLfp94TKtkoVIJWYtQvmAoh4FKzEbDUOW/OV/0TCAyb+16WFU1DnplOiB6CiB o2SniVPGPtkvwWIW8IGEvWbgxGNcxcljwBsbFnca+UbrJoIwU5Baku0zjB9I1Oz4GlCk Vi9+2bDCYAr2F/8mPydDl/Ww+AoTzUg4VznACWNMmgMPIvta15jttCxUmRiBIz+W/TqZ 4NmlSIaTdkHTNYE4z+xX58WlIi754yLPw4Ly49Ky4vJflgWEXGRr2v8GGjsvuMSvekYH T7bIZzmjQkPgj/HM5cLDUYT4AaUfOYYtgORy4tXkXg1+4vlp3Y2s6wtmIoDKbO6GeJfE 2i3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+RYGBU/0vbG8VIY1p5vovdJ3xt0BUIj+u62VOIeds8k=; b=YKQOzRFsM+tFP7236xeqFGf7pOPDu3jQTO9fnoU+8a0YhpaOGxPCQ1nPKmYcH7cl+b OT4i3VqF7NksYsOpndZljE9ig197U/tLIkNvlcdXKIY4v5Z4DeJgSBsBxiLgXaur/uus 4die8ye20TsZ8ls6zwpWVT8pdvLzltTUJ2vNaWEbCBAgfWqCa1+MX4H/6mZg4RXWHMYV VAX4qx2PArQzyMPFSFMfOdFqr+ET90Zw91JTOYnybcMD3vVFxxYEj0XpD6G+EYynKFtz g264n4ZOku7hmJIRv+qniBRcD6pTncHdrDpmHn/kX+CLwkSM/j+insRErohWjWHzetNx OgBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si863856edq.257.2020.10.02.04.55.34; Fri, 02 Oct 2020 04:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387852AbgJBLyv (ORCPT + 99 others); Fri, 2 Oct 2020 07:54:51 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:49150 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387765AbgJBLyu (ORCPT ); Fri, 2 Oct 2020 07:54:50 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kOJe9-0005Ri-1e; Fri, 02 Oct 2020 21:54:46 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 02 Oct 2020 21:54:45 +1000 Date: Fri, 2 Oct 2020 21:54:45 +1000 From: Herbert Xu To: Peter Ujfalusi Cc: t-kristo@ti.com, davem@davemloft.net, hch@infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, j-keerthy@ti.com Subject: Re: [PATCH v2] crypto: sa2ul: Fix DMA mapping API usage Message-ID: <20201002115445.GF1205@gondor.apana.org.au> References: <20200923101144.24748-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923101144.24748-1-peter.ujfalusi@ti.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Sep 23, 2020 at 01:11:44PM +0300, Peter Ujfalusi wrote: > Make sure that we call the dma_unmap_sg on the correct scatterlist on > completion with the correct sg_nents. > > Use sg_table to managed the DMA mapping and at the same time add the needed > dma_sync calls for the sg_table. > > Signed-off-by: Peter Ujfalusi > --- > Hi, > > Changes since v1: > - use sg_table to manage the mapped sgl as suggested by Christoph > > Regards, > Peter > > drivers/crypto/sa2ul.c | 215 ++++++++++++++++++++++------------------- > 1 file changed, 117 insertions(+), 98 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt