Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2933987ybt; Mon, 22 Jun 2020 10:34:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD+yQMtJDY0lPHOZV7gqVV5kNnTT7PKTaceO8V3aTEz/3Sl0wBKOCmn/GyUZ1jl7oLsGWf X-Received: by 2002:a50:f694:: with SMTP id d20mr17414232edn.171.1592847251533; Mon, 22 Jun 2020 10:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592847251; cv=none; d=google.com; s=arc-20160816; b=e0UT1LdaBPo8Te5/Ul3XVZQNVAlfb5xY+K0eMHbOoQ1EA6vXq+Cjg49jP+gEvXN45I RNiu+Jnn2jgjhFCfmEiCGpnPwo1FEtD5os88dqo1IuQYmGxSTXqsUCCAPG02Ffb3TiAY vpOstg2TzrcRXcyx2/RPfmCkhVmRsypPqVK7HlPwKS4YV1ha1/AfERXoQlfBJ2+pFCnN moMn1snoiUiUjUiHnG4lWPLyhP0EzarDEWdvzqdE2V1MYh1qIMrL1nCfnGAkd9J/Oijm hbvlJdd4eE33I9l9vZNE7uHB+4UKZ+4YvIx+58Oj4tztNWQJslryQDLLQdzHimndYtyy GnWw== 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=rFpOMSGxBTfmh2ipjvLUqQrxR8FkZSMjdhNwdofosG4=; b=tPN6At4+e1qJq/UESwdER75hI87qh4VhZ6oD0Hyv4/+lM3/BvUispk7t9XJEkCic7E mGB+Y4+djYEcoKlR7IcO6avbcXdxGWQA8Op2YtdNeljCP4zbKeX9IZtCzcQBjnO3Zfix Hi0/u4sd+OzlMztCIkPRMWhEAmZxUSRJ8+TmG+U/RHGEBnxhlCl1I5CrGFxWbKQ2ymNe 2tmArKqtu/0xMhJAzhC0dMz94xK3qknelDCgW6HGRJiXkkmfEbkrMCD1CXRw0jnaRimI mhHpfkq2ew3SMFGb5OnCVIoMOZTIzoO30yDLoZIIja51dtp2uYtt+YV8+5yFakguT5ZV sF8Q== 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 t21si9100573edy.548.2020.06.22.10.33.47; Mon, 22 Jun 2020 10:34:11 -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 S1729866AbgFVRbu (ORCPT + 99 others); Mon, 22 Jun 2020 13:31:50 -0400 Received: from verein.lst.de ([213.95.11.211]:35562 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729777AbgFVRbt (ORCPT ); Mon, 22 Jun 2020 13:31:49 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id CC32B68AEF; Mon, 22 Jun 2020 19:31:46 +0200 (CEST) Date: Mon, 22 Jun 2020 19:31:46 +0200 From: Christoph Hellwig To: Robin Murphy Cc: David Rientjes , Guenter Roeck , Geert Uytterhoeven , Christoph Hellwig , Marek Szyprowski , Linux IOMMU , Linux Kernel Mailing List Subject: Re: [PATCH v2] dma-pool: Fix too large DMA pools on medium systems Message-ID: <20200622173146.GA15796@lst.de> References: <20200608132217.29945-1-geert@linux-m68k.org> <20200620200936.GA106151@roeck-us.net> <1287bffd-3363-0764-0309-32222b2b8c9a@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1287bffd-3363-0764-0309-32222b2b8c9a@arm.com> 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 Mon, Jun 22, 2020 at 05:07:55PM +0100, Robin Murphy wrote: > Another angle, though, is to question why this driver is making such a > large allocation with GFP_ATOMIC in the first place. At a glance it looks > like there's no reason at all other than that it's still using the legacy > pci_alloc_consistent() API, since every path to that appears to have > CAN_SLEEP passed as its flag - modernising that would arguably be an even > better long-term win. Maybe we can just try that for now? If other problems show up we can still increase the initial pool size later in this cycle. I'll try to cook up a patch.