From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EDC0C433DF for ; Mon, 22 Jun 2020 17:31:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 715D820656 for ; Mon, 22 Jun 2020 17:31:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729913AbgFVRbu (ORCPT ); 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.