Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp260212rwb; Thu, 11 Aug 2022 00:32:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Nq+TJFditE756u/r0OReCjr7cvMGBW16qjm1yx5vUXK1P2k/WqPMhUcV6sKIctTRAeujn X-Received: by 2002:a05:6a00:1a88:b0:52f:52df:ce57 with SMTP id e8-20020a056a001a8800b0052f52dfce57mr16715113pfv.71.1660203133930; Thu, 11 Aug 2022 00:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660203133; cv=none; d=google.com; s=arc-20160816; b=sWObtU92wNa0ProWeomaNmsEQL+fm0jaQZI89IYr959tCGRjIDFxemSeWtA9P/5gmk 0eG7Qpn0m5k/IbPcAj8Teq0RqzMpjpVA0BrpYfxy7tIuFva4LCUUsI1h60no/acZoBGs xqVPTr/ljnLTRIBVnkYbUeG4N97P6EjyrOo0HxfrRB+JC8j9S8kaqSblRYxCf+iR3vig 2IgDlw4BmcbaEX7m7Klwcecl0gFpOK5CQXn4rL8GFywanDBURMiKNB5muRWWP/Z3LNMS eNqUuakq6Fb9muKr2mOhePicT5m0pp9DlQ6qydzqiWS/X/y6R046wbp9O1O/kk6Q4xTQ EiYg== 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=t7ux9tMGFQ1gUrUi1YV8YUlfHsqn0XWShz6JV8r4xQI=; b=BQRl5yJ98P5IoLwooJrS8ZLUvP9g+xeg9py1k8zoGNDd+k9vke4kfWmd6ZGmAy4S1o nw2hu1UyRLIMR7R+UUASHv1SVF/298R1LBHCw3n4w+CdoaXlYmaDXw/PiIC2R7/8203x pSwWDVSuYXe/tDCgi/NY0naGG0O8gTvykJaAhEQBHD/PzUCaD2RElPCJmU0YKK53eqVP 3mj6ZA7+Q3iotlJVZeE+rnV1Rnn7Ih9obtLH4gQT9v2gFKgBZb12gyuulZDgDZmKbK9l i1whRMgRRoacq49gJKuAFmTlhsD4eneNM8f4iZGgWV2ftytvhnL0i2D+3y0XnFF0FTX1 73gw== 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 u3-20020a170902e80300b0016d65838fe2si13432556plg.59.2022.08.11.00.32.00; Thu, 11 Aug 2022 00:32:13 -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 S234388AbiHKHaX (ORCPT + 99 others); Thu, 11 Aug 2022 03:30:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234387AbiHKH3z (ORCPT ); Thu, 11 Aug 2022 03:29:55 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B609923F1 for ; Thu, 11 Aug 2022 00:29:54 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B92CA68AA6; Thu, 11 Aug 2022 09:29:51 +0200 (CEST) Date: Thu, 11 Aug 2022 09:29:51 +0200 From: Christoph Hellwig To: Baoquan He Cc: Michal Hocko , 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: <20220811072951.GC13886@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 > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 5aa4c2ecf5c7..93af781f9445 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -2761,7 +2761,6 @@ config ISA_BUS > # x86_64 have no ISA slots, but can have ISA-style DMA. > config ISA_DMA_API > bool "ISA-style DMA support" if (X86_64 && EXPERT) > - default y This looks sensible to me, but you'll have to get it past Linus. > -#ifdef CONFIG_ZONE_DMA > +#if defined(CONFIG_ZONE_DMA) && defined(CONFIG_ISA_DMA_API) > max_zone_pfns[ZONE_DMA] = min(MAX_DMA_PFN, max_low_pfn); > +#else > + max_zone_pfns[ZONE_DMA] = min(MAX_DMA32_PFN, max_low_pfn); > #endif But this simply can't work at all.