Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp290706rwb; Thu, 11 Aug 2022 01:17:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR632RSnmBTsvtQr33amDCHuoPKLxiyawFI5YOl2AuQIXw5kjK9p2Ri5TUytAxn7auYJDOhh X-Received: by 2002:a17:907:1c26:b0:730:960f:118 with SMTP id nc38-20020a1709071c2600b00730960f0118mr22672103ejc.650.1660205858936; Thu, 11 Aug 2022 01:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660205858; cv=none; d=google.com; s=arc-20160816; b=wGhnc2RlRmcGrvHlFBGBvdegX8IrO5/M/qXq4umar2G7QUtjtHo2LbhAglxo1uoXZd zxeenNv90jqOPhgN8EN5+dzqMGLySaowbD7yK+70/Nx9WQiyfBY2YZTTMu6qMTM5oKkK uJY9L6+vWSAkP2TAcJuqP4cSzDquvBxousCSPM5rEzQulOoV32aUJhz1jOGEWu9SlmHf 4wO+gmr+N7c0SJULWoIKvckPrmEM+Z/JHVoBvJ/7KfBCXRoEqZCHzxW9sHEsMN87DlBo vB2Hq27z0FC7XT/pqLBGV0FGGwxq1lN0EAo0c5GgbXOAyKHsXxMzP7qLudyWWErBXUX8 JwsA== 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=c4KKHDV/9WDNnpoPV75aV4+5ioWH1tuosu43BLnKGJY=; b=xSSI8BjTTwmt6EXaRPsQSEIlO1MDlfNim3Bvsc65hO63DqVqvkBAdUyMnyt0pbu08k bshtDRMhYxo8nPyyHskxl2fwCIGAEroNpW8FxejmAKvZ3zXRlVjB9nKtTngq1IF+qFBY yQ3GDYeSi56o04lpCkYKbAh3vZj65uuFQXGZiW/xhIJUeS3Xq/s07PgNEJr3ZZ9hxhaf K1a7UQfnPwTHvOR0A1UCfsTDEhS2HR+cjVdWqg4fJzUhaV7oJ2/qsGa24wk44KotSq9+ M5S4I0enxeOrOMTU1H+P6WArc7j+j1COFfLQ5xgWp2DDtoeGtJojGcuKBIXYcj32gKhF pxFQ== 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 mh11-20020a170906eb8b00b00730bcbd396dsi754031ejb.406.2022.08.11.01.17.13; Thu, 11 Aug 2022 01:17:38 -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 S234138AbiHKHnw (ORCPT + 99 others); Thu, 11 Aug 2022 03:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229924AbiHKHnu (ORCPT ); Thu, 11 Aug 2022 03:43:50 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC1F28E987 for ; Thu, 11 Aug 2022 00:43:49 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4D67568AA6; Thu, 11 Aug 2022 09:43:46 +0200 (CEST) Date: Thu, 11 Aug 2022 09:43:46 +0200 From: Christoph Hellwig To: Michal Hocko Cc: Baoquan He , Christoph Hellwig , 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: <20220811074346.GA14956@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 Wed, Aug 03, 2022 at 05:44:16PM +0200, Michal Hocko wrote: > Unfortunately generic kernels cannot really know there is any > crippled device without some code to some checking early boot (and I am > not even sure this would be sufficient). But we can know if we need the pool, which is only when AMD SEV is enabled. So we could add a check and skip allocating all the pools including the GFP_DMA32 and GFP_KERNEL ones. I can look into that.