Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5826492ybf; Thu, 5 Mar 2020 07:45:16 -0800 (PST) X-Google-Smtp-Source: ADFU+vsi2IY2zGuxLkyzLgi8Tmm/HyTmCu3+KPvSSm/BAcksNEeyLLMkWKW4VirImKlwcgCNVcRj X-Received: by 2002:aca:5007:: with SMTP id e7mr6310660oib.99.1583423116502; Thu, 05 Mar 2020 07:45:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583423116; cv=none; d=google.com; s=arc-20160816; b=uVIBEvXC8zgM04vP/3wv1sdlNig/na8YQ72+iwaGnYumoegfl8x+iQ18nx+8azlxSj WK8ciO+OyM8PnAgumeTwQzrLmfd/aGuSpsyNpZ5wFSxnrOdAxTQ6yA3QSkqslpBQwGFh e7K5StP0KXwabwbwnd/d2NMYUggL6HTogS8PxngW+tlZRT2hmsx7zBlRZbb4YPy6HiCm 8frPCVppWi5RYf3ZUiBNsMR+hZIMZ11KGPRvzzzsTtr5RTFScXKHLqKkPHN8ERsPfM98 resz+SWfJynKXXf5nfF4dAzlwjH6IQrCLgNP9tlapxk9gbvUL+/PUkNV+XxdC0CqGDb0 vRCw== 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=agZ9o0cf5NIbYIsxOWvpNJyKCuDI5xu+IT4xflOzKwg=; b=mERQ3jmH/WJXGK48JSHmFZVCnFHt3NgW1gjIlifl6O6yrTDib71TMATyyvfcfpnMPt 5D166eWV4z0YdC+DNj2xH3SvxbInUqpsskAaiqa0mopsjawEcZ1raLAQUrvXjmlXNWtE ii7hLYvuhdvBb3G1YmPfOVz0LlxVIOXAq5XOaiV1RI8xb1hCc6sxq0yxrAhEsPLkRpJo 6ihwm6Ex61hw/CDiB5HMg16QXFBYJBnKGqj58OSM4lCmpDxunbWSYLGY7HBIX3MAHUHj JOmNQ5A7mYpP298zVR5dymWbKy2UvR1JXrm6hfXFCf2UZnT4Nti2k3aAFj3I8OKYkI3Q xwiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 m22si3632892otf.63.2020.03.05.07.45.04; Thu, 05 Mar 2020 07:45:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726958AbgCEPnO (ORCPT + 99 others); Thu, 5 Mar 2020 10:43:14 -0500 Received: from verein.lst.de ([213.95.11.211]:60016 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbgCEPnO (ORCPT ); Thu, 5 Mar 2020 10:43:14 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 92B0768B05; Thu, 5 Mar 2020 16:43:12 +0100 (CET) Date: Thu, 5 Mar 2020 16:43:12 +0100 From: Christoph Hellwig To: David Rientjes Cc: Christoph Hellwig , Tom Lendacky , "Singh, Brijesh" , "Grimm, Jon" , Joerg Roedel , baekhw@google.com, "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" Subject: Re: [rfc 3/6] dma-remap: wire up the atomic pools depending on gfp mask Message-ID: <20200305154312.GB5332@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 01, 2020 at 04:05:16PM -0800, David Rientjes wrote: > > When allocating non-blockable memory, determine the optimal gfp mask of > the device and use the appropriate atomic pool. > > The coherent DMA mask will remain the same between allocation and free > and, thus, memory will be freed to the same atomic pool it was allocated > from. I think this should go into the previous patch, as it is rather pointless without the changes in this one.