Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4259608imm; Wed, 30 May 2018 02:05:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIdCWIze4MBmyVaRYhkImDqMp3X71I+W7CGwxAs0NrD32L0ApFymgJnSGsIpzGT4G4+jWMU X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr2074667plk.256.1527671147552; Wed, 30 May 2018 02:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527671147; cv=none; d=google.com; s=arc-20160816; b=gZoDfigpSlDxUPo5T5TOdqna7pKbYkCQMr7P0CCOMRiETBhgR3/YrQykDJd5n62McD 1wOoSWP2k5Y6rb+AQVylQ+KPb4ztCoPlmq7tYKfIK2yC0PIiAe5ntIuu5c4SQ/0jiSMz KKbQFEE6TXSC5zdLrOZStwxZPoY0mJvCVf6ib1jspssIsLd6267CEIAyrnmwS/gTBHCF 2IEVKESFvTVmmQaWM8r1Y8CH7zrFXCWOr4k3N2PTw6TrlMVszfLlDK/Nwvi59kZXDzf2 pO2sbBj+S795iSaHBURheX5RoOJvrP50QGGBq25NMts8wK8kqWRNdLE8wa2GaOdP4oZt RK9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=tVmg70yY8/uCvuWQHLerXVHAj/uyVE6uog5UAQzi+Mo=; b=E3JInpq+oeFohYbnHKRJHSGNz6H076Is8cP2GMVVe3ZSz//zdIN2k4Eu7efyXKUl2D 0fZe7sVmcQ164xV5EqRiBrBfrxqC3A84Z7L6EM/kYBJdiYpB9x1OfEuuJqNNv2FiSZMs IeCBVaJrIGFIdwwSItzwI9GPQlNIzHA/d0MXVEcmxHC0x5fZGXANF9vl3Ix8sOXt0lG9 6yk3artbJvI/69nh741wGUchXxIPO4nKeZsKm+43Qk6unkDTbeE/iT8tS6FFtaE63m9f Bf7eAoCDsqFA0b00rNfq7HriVZx7gbq7bNoo+y6HG4TybMLXVgsXEFiR9nxHasPbfCEv cNzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3-v6si27181543pgf.364.2018.05.30.02.05.33; Wed, 30 May 2018 02:05:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968721AbeE3JFF (ORCPT + 99 others); Wed, 30 May 2018 05:05:05 -0400 Received: from verein.lst.de ([213.95.11.211]:59901 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965116AbeE3JFB (ORCPT ); Wed, 30 May 2018 05:05:01 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id 2E7F968CF4; Wed, 30 May 2018 11:11:19 +0200 (CEST) Date: Wed, 30 May 2018 11:11:19 +0200 From: Christoph Hellwig To: Huaisheng HS1 Ye Cc: Michal Hocko , "akpm@linux-foundation.org" , "linux-mm@kvack.org" , "willy@infradead.org" , "vbabka@suse.cz" , "mgorman@techsingularity.net" , "kstewart@linuxfoundation.org" , "alexander.levin@verizon.com" , "gregkh@linuxfoundation.org" , "colyli@suse.de" , NingTing Cheng , Ocean HY1 He , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "xen-devel@lists.xenproject.org" , "linux-btrfs@vger.kernel.org" , Christoph Hellwig Subject: Re: [External] Re: [RFC PATCH v2 00/12] get rid of GFP_ZONE_TABLE/BAD Message-ID: <20180530091119.GA30154@lst.de> References: <1526916033-4877-1-git-send-email-yehs2007@gmail.com> <20180522183728.GB20441@dhcp22.suse.cz> <20180524121853.GG20441@dhcp22.suse.cz> <20180528133733.GF27180@dhcp22.suse.cz> 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 30, 2018 at 09:02:13AM +0000, Huaisheng HS1 Ye wrote: > > I don't quite understand that. I think those, mostly drivers, need to > get the correct zone they want. ZONE_DMA32 is an example, if drivers can be > satisfied with a low mem zone, why they mark the gfp flags as > 'GFP_KERNEL|__GFP_DMA32'? Drivers should never use GFP_DMA32 directly. The right abstraction is the DMA API, ZONE_DMA32 is just a helper.