Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1254927pxb; Mon, 11 Oct 2021 01:43:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZ4etU42OWTgODxwcrU+vT7WG0+aLUIi7f5avNUqlFeYOjqy7+/2U1bFboTH6Js6EFkCDa X-Received: by 2002:a05:6a00:815:b0:44d:2193:f688 with SMTP id m21-20020a056a00081500b0044d2193f688mr4292506pfk.4.1633941797958; Mon, 11 Oct 2021 01:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633941797; cv=none; d=google.com; s=arc-20160816; b=URl1qiYhKKDyAybj059oJ7WRnca3/KcPdeBhkER076iVoh7hmwLlCXigHyVehsimI7 /ttpDNOy93sgdx82HviwTGyG61d/yxBJFgaV/2AidtNWelJrRnHHQAFc8bmXgXtKrKAh F7oW3cg/deFPITSfuPtl4779L+UU/y+9iVJ6Z/OUMCH3XeZVDH+P2VZAOag7P0Ie1Ils gmFu+qlnr4iM2frDFDZzzFwgvG5n2Da3s7bki2UFjTIqxHU47WIVNhS1K+1G8KNvPuxE CTkqE/hdIcOUcgCLNu8PVYh5f/jVTcDg3TbvhELywOgFRB9raZhAsp/vW7Eb1eAlMf/Z JLeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/9XeIUL5t6UhFKE1bZ5lYwZBG0z2C2rYsqVo0XbNNGw=; b=am47LCxDS5Hi+77bCXYxTRSecHbJ5YL7B/CjWBnQagyzfZ03DxpCG8p2/+3iwgTq0M qiE6RknC+ZhP/bzuDg9LheEVNWLAHWwnn5OfvyGs/PNRmLOBeBXdAB1Pucw0EGcauNgu 0nrN8OHKGjK/xLdTW11ZbAY3/i2/eDs/gppuTcRwMQXkt/ZTMy4TVodmJ13CHCUvYF6t ebZemBG4swLte7MEGbTRVtu5MmO352sWsBih3h259/IJ0CtJEuGN1KRFoDv3s6xNdZ+a ADwydGjitCR37H+fH+H/1lhy8R2/0DR74Dx9PLiqLvJ3s3yk5n+4AL3BAoNGWMHCVZRQ eBCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="N9LLFa/x"; 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 h187si9463206pgc.377.2021.10.11.01.43.04; Mon, 11 Oct 2021 01:43:17 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="N9LLFa/x"; 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 S235192AbhJKIol (ORCPT + 99 others); Mon, 11 Oct 2021 04:44:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234936AbhJKIoi (ORCPT ); Mon, 11 Oct 2021 04:44:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9D45C061570; Mon, 11 Oct 2021 01:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/9XeIUL5t6UhFKE1bZ5lYwZBG0z2C2rYsqVo0XbNNGw=; b=N9LLFa/xSnmtbEzFI+Uhj2OkKN ihZZM0pAS2MXB6OyOrJ64OXgGDNZgg8TVgP3fu6G4BjgoGGvA/KQi5QXKXabr57k/uZw4MzmXBT2Z u9CWFDY5I53M67Vmk60eE79OtTetnrhgTVl/prrIiG0HjUmmD2A7j61Aro9AvZJc2B5Ew6B6JBQmT awUEM1gtXV6m+boK9+kffJGJFqLIVu7qqecOCAJl31zXw85Iz6rJCrkdG6WpGhZ1boPpARgKzMTCG N67cecqwq1ecmBG0Rse4YGTAMAxK40bl4R7I8gX8LlLvKIiOVvQwSMP9Ly8ZRvkw1r8BV69suNZcR aNXf8Zkw==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mZqpN-005OAP-BH; Mon, 11 Oct 2021 08:39:04 +0000 Date: Mon, 11 Oct 2021 09:38:33 +0100 From: Christoph Hellwig To: Cai Huoqing Cc: Boris Brezillon , Arnaud Ebalard , Srujana Challa , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: octeontx2 - Use dma_alloc_coherent() instead of kzalloc/dma_map_single() Message-ID: References: <20211010160010.435-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211010160010.435-1-caihuoqing@baidu.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Oct 11, 2021 at 12:00:04AM +0800, Cai Huoqing wrote: > Replacing kzalloc/kfree/dma_map_single/dma_unmap_single() > with dma_alloc_coherent/dma_free_coherent() helps to reduce > code size, and simplify the code, and coherent DMA will not > clear the cache every time. As just explained in another patch like this please qualify the savings as we have actual results that shows the reverse of your claims.