Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2074383pxb; Fri, 25 Mar 2022 10:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlbxOa38i6iN3ISm9eRB5CabliX4ENAMZqwZqefXfPLuD9MqyTJutXnBt+Sy7AhaFnWEhY X-Received: by 2002:a65:418b:0:b0:382:250b:4dda with SMTP id a11-20020a65418b000000b00382250b4ddamr554135pgq.428.1648229832525; Fri, 25 Mar 2022 10:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648229832; cv=none; d=google.com; s=arc-20160816; b=w5BPFmxlBTWCxcCCFvilfwfNCZgSI0tLDoh629SqrvEOHhUsnuA6MTXrFAxOp4gMbL wI1OBq19l7JbWf8Eh3NjglKLRt0kyNfDCkcKfoFBp/FZdzfpW7irkhMJ8OJ1lUgsvTaV V44kAAHT9CLTSOoDpdYP4vYQ9Vh3n/8NUBYyCyfmvAM5ahqpdP2MerZa8nI2cGfaqeEE IzEZRZeXrpvTAbVmnvYXblzEVUwSEGwfGKI3RETB0iUAJh3DwAhC5obb50qTb4oMm8Yc k2vi27kaKH8m14hYdbtRF1xY+cR4SG+Sjg2NZWrsNdM4QsDJqffzFRDMYDrFwplgBZAo f3PQ== 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=eG4VJfElekTEGfwFuB9gpELwSAWSjOaf8wbZaBo+yIE=; b=Ueh3JLijjnN7EWnIiB4gAwY1liyZTsEQsLZYLTx0viqKgFqQb6wlirdlhesqMouaZg 4LHPt+kKPhr2q6ltBNnjVrLhoWxkgin/bwY6yxmO9WcRf2hI9V8/2Coc/Nx9PGx1DBIq BnWxk794U8dqGEWKKPwLB5tIEbKcaikuNSnINIXWpvgBXw2E4jRsIfFWiekSvAloEkT7 DHUXN5NkV0XXzqp3ssmQ0u2763HDiYrhWwVAYqmQawVCquMr0dNgUubliac+npyYT9Ta PKQR2Bemhtw1IlRlOsKnyXEX4+/OR+qWKbnsxL6dM+TdJaicUnV0zYn2IiUo+Jgq7c2W w6dA== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nu5-20020a17090b1b0500b001bef047f84dsi7325112pjb.133.2022.03.25.10.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 10:37:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C3BA0F895A; Fri, 25 Mar 2022 10:25:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376978AbiCYQuf (ORCPT + 99 others); Fri, 25 Mar 2022 12:50:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376956AbiCYQue (ORCPT ); Fri, 25 Mar 2022 12:50:34 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C95FF53E23 for ; Fri, 25 Mar 2022 09:48:59 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4AA1668B05; Fri, 25 Mar 2022 17:48:56 +0100 (CET) Date: Fri, 25 Mar 2022 17:48:56 +0100 From: Christoph Hellwig To: Michal Hocko Cc: Andrew Morton , Christoph Hellwig , 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: <20220325164856.GA16800@lst.de> References: <20220325122559.14251-1-mhocko@kernel.org> 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, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 01:58:42PM +0100, Michal Hocko wrote: > Dang, I have just realized that I have misread the boot log and it has > turned out that a674e48c5443 is covering my situation because the > allocation failure message says: > > Node 0 DMA free:0kB boost:0kB min:0kB low:0kB high:0kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:636kB managed:0kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB As in your report is from a kernel that does not have a674e48c5443 yet? > > 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.