Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp413362pxu; Fri, 11 Dec 2020 05:30:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpwuf46aBj721L/Eq6OW0s33a6NWhrRso4NtdP0ZQWq4B/AcLlHkCr8oKO3L0BMPIhQAv+ X-Received: by 2002:a05:6402:1692:: with SMTP id a18mr11609956edv.321.1607693451407; Fri, 11 Dec 2020 05:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607693451; cv=none; d=google.com; s=arc-20160816; b=oQHBAITRb17NikJL5bS+Mr2s7XXDvBQht+yRDD/6t9dISmHcJg+cxsUMiCKLPbygNg G2Tn1Yu0T2iBCHOYGXOcVzYcPOFSe50Nc8ajTjHfQE41HIJbQr/+7HlD15/Wl0GlXTNd idnNyON53pRW/0LXTY+1qpCGQP3SvUWOUkcl+dUVGZjf18KVdJk35N6AVcUGCcTzXBF2 wpM6tKK4/aAme5U5b8i/mOduW+UgnqhMVtvzvMXtVT7sw39/BRciNbpwOZNH+fuzqXTl 0qJ+xCrCk5Hu6d2WEmNKlDpo5mQzz+6AG+nMer+qZQOpHnkDY6lpejmueQXveqjuyuIQ 6D1g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MsMwU7lcQJQnI0d9MT9BJFbIJpWJPZPfysB340QMudc=; b=z/4rm+q3cNHuGSHhuGKubSLqvyI0MTI04bqGkvroN0125il+GrQ7S0qA8hXv4b4146 NPu2Dm/mRnxUkSaWGrWNUbWQU3YyCdzDzaiVk3JCVndknar1zOYX/pjTwx/5ogMlKJCu RdXgaRWYg0LSAP62vE1z8mg0hcexsPzre2h/e7SjsgdGVNVyMRSv5DB7q6GmlTI0BhL5 XAXLfcuj8oMNig+fiekyn5Mgnrgg7LXC1qVoOTjiqvSKFYD1zVl0nHRkpJrcuESx2VkQ suzw10PdaC3gEn2tFvVNzPd3fdBnexqiiEPy6KgQ8Bb/V3+ZqhN9eRbyPxizkvqvTYX1 atIQ== 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 r19si4841326edw.476.2020.12.11.05.30.19; Fri, 11 Dec 2020 05:30:51 -0800 (PST) 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 S1727043AbgLKKLL (ORCPT + 99 others); Fri, 11 Dec 2020 05:11:11 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:33372 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731557AbgLKKKm (ORCPT ); Fri, 11 Dec 2020 05:10:42 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1knfMu-0004qD-WF; Fri, 11 Dec 2020 21:09:46 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 11 Dec 2020 21:09:45 +1100 Date: Fri, 11 Dec 2020 21:09:45 +1100 From: Herbert Xu To: Horia =?utf-8?Q?Geant=C4=83?= Cc: "Iuliana Prodan (OSS)" , Ard Biesheuvel , "David S. Miller" , Aymen Sghaier , Silvano Di Ninno , Franck Lenormand , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , Iuliana Prodan Subject: Re: [PATCH 0/5] crypto: caam - avoid allocating memory at crypto request runtime Message-ID: <20201211100944.GA1133@gondor.apana.org.au> References: <20201203013524.30495-1-iuliana.prodan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Dec 10, 2020 at 10:28:35AM +0200, Horia Geantă wrote: > > Moving the memory allocations from caam driver into the generic crypto API > has the side effect of dropping the GFP_DMA allocation flag. > > For cases when caam device is limited to 32-bit address space and > there's no IOMMU, this could lead to DMA API using bounce buffering. > > We need to measure the performance impact of this change before deciding > what we should do next. This only applies to the control data, right? The actual data being operated on surely is the most important factor. In any case, did you respond to Ard's concern about potentially exhausting DMA memory? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt