Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2201268pxb; Fri, 25 Mar 2022 12:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDR4C/P0aYg9yxqbr5OacaKJzT52xl9AT6gcYU0IEquYUAmLm5cISwypOP9G6DDYCf1b/K X-Received: by 2002:a17:90a:5ae4:b0:1bf:9c61:6973 with SMTP id n91-20020a17090a5ae400b001bf9c616973mr14767328pji.73.1648238206932; Fri, 25 Mar 2022 12:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648238206; cv=none; d=google.com; s=arc-20160816; b=tO8Y88YC1hE7X+7IIC5nzEzeUTL9RrI5qsw1IgyAagVztTyylQILxh9IdMRmmrTeKu KFShL8uTGXYWcr7RhPxd8wJtBh7K+Si1UTrZF6b9CYNFTneJOXaRACdJtb2tuOpOQhbO hOngDf2MEJs7su7MZVuF9rMFUMe9Js+lhl4QBxyXhj/+TWDc2epOnoot9+i/yOMfHlpX wOyR55Ld94vqUWHmP9FMx+E1AzZc2i6j8jXo/AMeRplRaWyzseMpFmJN/2rWrMtQDrDw OiUiZm+3jU3WObm5Zxlo/LoE4GPInhgx/qWKdvrhuchCSaBAMC9FAgjTnlHRCiK2eTrQ Z3gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zeVrtVyAK7v5KJnvBMeeYBqAbke4hvV/2TV/CFi2Fyo=; b=ILMFlfTuhO/v1wKYCpzZFuSot4dBsmWwXEe6vJS1geQzRpmZb9PKfLiV4dQ4sFS46d av2qzndo4izLZKpvxTdXR8XTjHJzWIIsz7bUZQaoHkHZJCPAKbhi8JxDEBBalyPK8P73 O3620871Oa3F1bJMU1kkN3J65l/339OIQJE2J5pZbjoGr+VfPiPJSKf7Pca1UsSBrTbx Ywav4rzeleOpWWbCpa2d8R4T9LQeUULEJJfngcTFDsBg6EaIwtcaqR2Q3sRxeBvT/FAH QWCn/GIXHCAHH+MOOo32B3ywYTTWY+GC8BRhMMRLFpY0t5qf7Cg/Y1stNg9bvtLOet1G DMYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=ZWcfv6fh; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n66-20020a632745000000b003816043f06bsi3218972pgn.608.2022.03.25.12.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 12:56:46 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=ZWcfv6fh; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A58FA2E104E; Fri, 25 Mar 2022 11:45:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377155AbiCYQ4s (ORCPT + 99 others); Fri, 25 Mar 2022 12:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377064AbiCYQ41 (ORCPT ); Fri, 25 Mar 2022 12:56:27 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F518E5412 for ; Fri, 25 Mar 2022 09:54:34 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 2C24F210EF; Fri, 25 Mar 2022 16:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648227273; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zeVrtVyAK7v5KJnvBMeeYBqAbke4hvV/2TV/CFi2Fyo=; b=ZWcfv6fhSzG9V01DcbjPSVu1jSsXsfkHbGDcMsuW6tKQ0tTkx7WHta4XWtRVh9eqh3CzKo dcacjT7rqYbFS7nOV4NGo8p96EUGBr7g1uAzadN0Jyrhcg8c04Ano+vfr1LrdiwrvOrfI8 2Xo6BYPKjUVIytLpSiLhI9GEmxYDVPM= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id ED61BA3B94; Fri, 25 Mar 2022 16:54:32 +0000 (UTC) Date: Fri, 25 Mar 2022 17:54:32 +0100 From: Michal Hocko To: Christoph Hellwig Cc: 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: 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: <20220325164856.GA16800@lst.de> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 25-03-22 17:48:56, Christoph Hellwig wrote: > 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? yes. I just mixed up the early boot messages and thought that DMA zone ended up with a single page. That message was saying something else though. > > 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? -- Michal Hocko SUSE Labs