Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1566512pxa; Thu, 6 Aug 2020 10:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3zG5UZb6M2Y/puXTB/Ve3KFlxaW2nMuPzzf8/qrkVWugZE8FrgcWegF5mGTURlpJqoBBf X-Received: by 2002:aa7:d8d7:: with SMTP id k23mr5230541eds.54.1596734710846; Thu, 06 Aug 2020 10:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596734710; cv=none; d=google.com; s=arc-20160816; b=OajLlHDJR0nbKoxPrfcC+WlRr8XduZBjxpVV8ceDzBSUq+q47u4BEI2i5yXHiSS9cj n2ZwP/ejD8s2NWcG/f/bvouCXHOoXWzL4v3Ol6qsOsqMHQhQi27Ytb2ZkDas3ElNcyYI JOSvkLHQ3lNoz6g8lTuNw5tLyJKDd1lYNCDPtKt69NS6oCVmQ6PBNf6vTVWgI/0vhIbX VcCVM2KCbGYPsljO1YNNPcIz5tRuIWJX28TpWGyWlqcoZGwFj0ePM2ReB8m6UVcJzeFr F7n6KOoL0bz4aocp8KBjwxvejr+u3VOIPfdaDn42FuTOzAtpz+Tt7MYEy5LaZjPL1w9Y Vl6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=gBepkWX7Cc05jLhxyV25rUs8AQIFlc+8TG/Gz9XWSqo=; b=t0AjcwggmK2877JDpdjNJPIUO2DO1Iex+1WReF9+XtGILIRExCsT3EhhyGEsW9Y+eT qE7PlXklGfaEj/eZbgwHocovomhaFI/6xgbKZD23xSkRfmwuGCSyj07ZtqVoTsPanPCR v2PIGHxsumgkapzEXfAKCVDrnPMaF506+NbGLBjDh8CCV3w79sVVSCk9sVOo+8O6bUhh xLoYbOYyKOJ8gexcwVny2HfXAkKF3nIsg5QgalehYv/KcHeoa26ywFSQrpQway6YKlkl zEGMZv+pwbLSkGKGXhuR1TAoOeu1GnMM/vueUVVokeht4r8P7PEJg2wAYYx3TRt4v22R FKwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 h8si3089351ejj.541.2020.08.06.10.24.48; Thu, 06 Aug 2020 10:25:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729089AbgHFRXs (ORCPT + 99 others); Thu, 6 Aug 2020 13:23:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:44438 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730027AbgHFRXn (ORCPT ); Thu, 6 Aug 2020 13:23:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9A7B6AED2; Thu, 6 Aug 2020 11:50:49 +0000 (UTC) Message-ID: <3a530804ad5aa96d2502da8ee3e8650b0b477c0f.camel@suse.de> Subject: Re: [PATCH v2 2/2] dma-pool: Only allocate from CMA when in same memory zone From: Nicolas Saenz Julienne To: Christoph Hellwig Cc: amit.pundir@linaro.org, linux-kernel@vger.kernel.org, Marek Szyprowski , Robin Murphy , rientjes@google.com, jeremy.linton@arm.com, linux-rpi-kernel@lists.infradead.org, iommu@lists.linux-foundation.org Date: Thu, 06 Aug 2020 13:50:29 +0200 In-Reply-To: <20200806051814.GA10143@lst.de> References: <20200803160956.19235-1-nsaenzjulienne@suse.de> <20200803160956.19235-3-nsaenzjulienne@suse.de> <20200804060633.GA7368@lst.de> <20200806051814.GA10143@lst.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-BLB/tUqhN7FZgmlmL87f" User-Agent: Evolution 3.36.4 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-BLB/tUqhN7FZgmlmL87f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2020-08-06 at 07:18 +0200, Christoph Hellwig wrote: > On Tue, Aug 04, 2020 at 11:43:15AM +0200, Nicolas Saenz Julienne wrote: > > > Second I don't see the need (and actually some harm) in preventing GF= P_KERNEL > > > allocations from dipping into lower CMA areas - something that we did= support > > > before 5.8 with the single pool. > >=20 > > My thinking is the least we pressure CMA the better, it's generally sca= rse, and > > it'll not grow as the atomic pools grow. As far as harm is concerned, w= e now > > check addresses for correctness, so we shouldn't run into problems. > >=20 > > There is a potential case for architectures defining a default CMA but = not > > defining DMA zones where this could be problematic. But isn't that just= plain > > abusing CMA? If you need low memory allocations, you should be defining= DMA > > zones. >=20 > The latter is pretty much what I expect, as we only support the default a= nd > per-device DMA CMAs. Fair enough, should I send a v3 with everything cleaned-up/rebased, or you'= d rather pick it up from your version? --=-BLB/tUqhN7FZgmlmL87f Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl8r7oUACgkQlfZmHno8 x/6NNAf8CT1UiVU7PCKz2LUHhepxWBfqr/Fz15NMCjlWxLecIvE8NeFQYjnkzCr8 WNIEZM0Vi5yiy2M5Au0e18rt/S/U2O4wCD95KXIAO7b7iMhP0jJFh9nqnj6IDUrJ +QzQLSMHGGD+UO4bxtpONvZ0/UekL1werA7sP2qQynpUDFijzq8HZ9/U2tD+Mtyl CFUOvAI5xO6AsVH4xryG4jWUb66/hflTOJ2nwz6ybrN/R+L2UvxYrynf2/lHIZq/ wqfGMD/Oh+KAiecex8ZgavWC/Adft7bAfJ3E7JZp5V3C+wW/QB7XWeGtAAawy1nC B5Pd5WHQFwp5oP5bPzDO17kycEbD8Q== =DGkG -----END PGP SIGNATURE----- --=-BLB/tUqhN7FZgmlmL87f--