Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp350747rwb; Thu, 11 Aug 2022 02:42:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ONuRmHYeEbpOuh2m6ujB5ZQg+uo7+lHg+3vzLdUBFmymMz0F7j5rgZ4Ijlsh/lnZO4ZOA X-Received: by 2002:a05:6402:254b:b0:43e:7c6a:f431 with SMTP id l11-20020a056402254b00b0043e7c6af431mr30607704edb.305.1660210931554; Thu, 11 Aug 2022 02:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660210931; cv=none; d=google.com; s=arc-20160816; b=klv7uWuFgiy5+BAXyf4yEMk+lmJYzFB6cas05eOvt5ZXlrOzakeKRrv7AgAQ4D6iEs U0XZoIcPJGrGwTnfcP97uRLjzMe5gJxneNuTdAtdwGQO7aXgoyvnqfavn8Sh7Xtc7UDK kt1e5oXyB2ffTIm/TCiqYptZ+tiidwyT195PY+pFEptqpdwAmLlwZRdPhCF1W5aHAVgo 3uYNFqnE3X60K0hE/0mnt1/yYXxTaLPvLiBBoCcl5EPzQXwVpokdkcCF4AQB/h9AG1BS Z55XqTs58AD5elkl1rZH6OUqcxoi39IieojiLNFmRkBvVW09YCONV8ysaAPPxa5vTx5u UmWg== 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=kWKkak9v2ps7Zu0KlR7ytisVCQ4O5+05LJWZ1J59LX4=; b=Y+l+Zs/W02OR4FcArI4R+RwBxbnfp1/w44CS+6DhwTKdZnW5Q3ZzZksKQH+lUEEQMt 8TdBqzZvs5+4K16CKRJcGm7TlVdL2L2jo4vM+JVu3x9fYvXFPpXKOMcYoYrhj0e4ONBt +ygkGLgMOY8hiTjv2dlwGmkjM/MGYbB/Ze4O9v56KEUAiy8OsOnsCtx0K7x0RpWFO/Zy H0uUvXxl9NUNJShhoOc6nzY/WXQLTZl9Ry1+Wgv8xGlGXlfkwrS8ECWTssGqy62RFdWc 7uUUo6UcbkWFJh8By6x/JTagw0W18/Gk2i+x9GWUAhMH3JDqA78pKeMM452KOtiiZkeL L7pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DlgeBEuv; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b00726b8cf8debsi6164627ejc.869.2022.08.11.02.41.45; Thu, 11 Aug 2022 02:42:11 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=DlgeBEuv; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234363AbiHKIZU (ORCPT + 99 others); Thu, 11 Aug 2022 04:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234073AbiHKIZT (ORCPT ); Thu, 11 Aug 2022 04:25:19 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 482BF13DDE for ; Thu, 11 Aug 2022 01:25:18 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id EFA2437183; Thu, 11 Aug 2022 08:25:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1660206316; 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=kWKkak9v2ps7Zu0KlR7ytisVCQ4O5+05LJWZ1J59LX4=; b=DlgeBEuvQlAL+hiENKPkfbSkL/SfHqusREcp2ldByrXpOrKH6jP4w2hp3MCSffkjwCaOwq dUXScyGjT4oP5hUhqTkAboyQfMur5Pjhqte8cNZYRim0m9sfH/5GfDmZGCnP/e/OuuMsRy y0XWrCmq16RTbVx+nVzOx0Z8NaL3YVo= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CEB0213A9B; Thu, 11 Aug 2022 08:25:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eys9MOy89GKLUQAAMHmgww (envelope-from ); Thu, 11 Aug 2022 08:25:16 +0000 Date: Thu, 11 Aug 2022 10:25:16 +0200 From: Michal Hocko To: Christoph Hellwig Cc: Baoquan He , Andrew Morton , 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: <20220811073840.GE13886@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220811073840.GE13886@lst.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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 Thu 11-08-22 09:38:40, Christoph Hellwig wrote: > On Tue, Aug 09, 2022 at 05:37:59PM +0200, Michal Hocko wrote: > > Here we go again. > > And just as last time I think this is the wrong thing to do. > IFF we actually need the pool and we can't allocate it we want this > warning. > > But order-10 seems very larger for the 31-bit ISA DMA zone, so we might > want to look into calculating the pool size based on the zone size > instead. No objection for a better size tuning from my side. I find it I suspect you will need __GFP_NOWARN to be used for downsizing the request size for all attempts anyway. -- Michal Hocko SUSE Labs