Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp267418rwb; Thu, 11 Aug 2022 00:43:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR4YAX4HXNW9RQnORTFvLtJ0xbVXV23Frrl04ivHeJ1Z7yzvqluXeLI8X3haO3Cg8rcCHrND X-Received: by 2002:a05:6402:3552:b0:43d:a57d:22e9 with SMTP id f18-20020a056402355200b0043da57d22e9mr29585561edd.119.1660203809213; Thu, 11 Aug 2022 00:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660203809; cv=none; d=google.com; s=arc-20160816; b=qIRSoOb3cWxSLgFb+E8xfawkigDHhQ9p237y91XVSngMiRCiOme1mVx2tFAAlWmpHQ kVty2KwvF4af4D9/6ZEev/QDmOKY99d0VaEPIK04y/BH6iXZWq94hdA3jjunXdIWNzvp Odld0lxCEYZPd6Zxwb9v73PFsxqXutzgyAmJKJTpGNOECfoNLJzICWQrktIITtXTeSFt yQlC0Uo6gUxB9G0K+CtmXS+/Tff36qRZ+nxRuCUiFIGYogTegwV9rrICm8iYpsCJSbOB 23wGyqliLpmjgqHAKJdxvt2YIy5Q/ovGI3gmbNLZRlAOAmbgRgH09QHEf2lGxajRnmi8 pQKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5NI4rtPwfNreczjiXER6PzliSmJdH5R3XzR0jms11Ek=; b=LZvVkrTtYLZDhTmGz03LYtJCmXDDmLhpmjWzBh4zG4fSoK+QqVfDl042Vb0I2/coD3 bdSv/JQDc6sVToT7x50xF1HEtHpH1oO/6Z9lT7PkPcW64PtwfaToBdWaN+IXkkXnG1km g8n1XA/VcFWOFKRpYaDhkRMKzGas3C+IEP6suVJfetMwqUiOS8SKSEbOPyDxiOrBZi1+ tNeKKkSejYgAodDr74W7gRRuAlUtbJ0xh6jRTpWn30nnZvbpbSy8oZCvO4S7phpat1mo Cepe4eBZAaGVCXfPJsAmL8uwiPZafZlv1A6j8uTL8+5SPXmlHUnmq6cqldEIbYlERq/T 4MOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a1709062a0300b0072b36dc02dfsi5994140eje.262.2022.08.11.00.43.03; Thu, 11 Aug 2022 00:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234041AbiHKH1e (ORCPT + 99 others); Thu, 11 Aug 2022 03:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234061AbiHKH1c (ORCPT ); Thu, 11 Aug 2022 03:27:32 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0174E923CD for ; Thu, 11 Aug 2022 00:27:32 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0105468AA6; Thu, 11 Aug 2022 09:27:26 +0200 (CEST) Date: Thu, 11 Aug 2022 09:27:26 +0200 From: Christoph Hellwig To: Michal Hocko Cc: Christoph Hellwig , Andrew Morton , Baoquan He , John Donnelly , David Hildenbrand , linux-mm@kvack.org, LKML Subject: Re: [PATCH] dma/pool: do not complain if DMA pool is not allocated Message-ID: <20220811072726.GA13886@lst.de> References: <20220325122559.14251-1-mhocko@kernel.org> <20220325164856.GA16800@lst.de> 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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 25, 2022 at 05:54:32PM +0100, Michal Hocko wrote: > > > I thought there are only few pages in the managed by the DMA zone. This > > > is still theoretically possible so I think __GFP_NOWARN makes sense here > > > but it would require to change the patch description. > > > > > > Is this really worth it? > > > > In general I think for kernels where we need the pool and can't allocate > > it, a warning is very useful. We just shouldn't spew it when there is > > no need for the pool to start with. > > Well, do we have any way to find that out during early boot? In general an architecture / configuration that selects CONFIG_ZONE_DMA needs it. We could try to reduce that dependency and/or make it boot time configurable, but there's still plenty of device with sub-32bit addessing limits around, so I'm not sure it would help much.