Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1619112imu; Sat, 12 Jan 2019 04:14:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN6QpnhhTBgFoEhwPVHRRe+/YqiLdn48W0pAvIu+0B4Jqs2O032yH67GR1W2GVOgSSW4dz5T X-Received: by 2002:a17:902:6bc9:: with SMTP id m9mr18148701plt.173.1547295277077; Sat, 12 Jan 2019 04:14:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547295277; cv=none; d=google.com; s=arc-20160816; b=VbXebJmZw8E+qQ1NZmy7tIPhcCP3nQkVmE7rOXkfBqQXgEQKkDTypyePPDAZ5ze2PR I4Y5YbP4W1Vn2igI/6FB6sAE/RuM52HNiyYkzCyz+zhrFqLGWUFI1JgDyLRfVH4Tr2T7 RQ7tkTGIaENg4MTGKcgzvwKWwkVMokawnLFPZyNtb8hVQSfyi5OaV6/NC31nACXBKtEm u67aoEK9t/eBMplzDauT1+4o6768WrJ1S2bOg9dAgxJHWdfMwNFbjCMbMa6rXZGAlTfn AFP0/m3byT9I9b/vTuxdEj27avbnIQOjwt1fwPrGMFgbKagNva2jURDB+WS2Qd+o9sd5 14nQ== 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:dkim-signature; bh=qsu+eocGZOi9cNwtNF300w7MwOzuU3VFW8zz8wiFhig=; b=cyQwv0CQRSiMk0dIWrKcW1WwkPWxjHXk30yXjf3l/ouvV7D9+vmoUgYLnvlhcP8Mi0 EyWGdptbHdh/tElqsK/DVeF32m+wHTRJfJtRA8IJ25m+ulaQxw9XT05cceOHQD0nDndh w7cSS7zCDu0Zou6qlWAOCtUAAaW/QSuRB3acG5Oe545Zg1o9AzUtaxbCCVYaIFv4bnfj oDIXvMXCTjRaPjIN51NHT5arrDRMkvDv/dW6WwW7IeXY7e/7rKggA989F05PRdH98NqW XNT5kK5ngePG3y2z1pIfrRL1HaIUN1HsjlppNe9kjkaAXvl6h24oUIYD0V7mXhNi1iD7 TP0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=CeXJKRaX; 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 b15si10759404plm.431.2019.01.12.04.14.20; Sat, 12 Jan 2019 04:14:37 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20170209 header.b=CeXJKRaX; 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 S1725847AbfALMMj (ORCPT + 99 others); Sat, 12 Jan 2019 07:12:39 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:45906 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbfALMMi (ORCPT ); Sat, 12 Jan 2019 07:12:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=usOnlJ+n0ouIA825JYmyeYCXdfJgDQn6tYUepfZTml4=; b=CeXJKRaXRnkz6fpEkxa+HS++N Nv+E3EXqQuvSm/yk5laLWDPmokTjURvDjfdZmxl+sIacD3JunbAZXgk/wDwCE6WvboTyW/u6XFJRd Gdg+Zo4Y6iVTTeshlbpORnHbVfYde17ndn1oi8CxCdyGPeltug/EgPYeu+Huue8qXIG1FF0P+1/QE OkI4MFeIUyV9CIYVFhzufJVxn8HHs5i26d0rVH1jBwAt+8BO5kc+cNzWSMKYdaRVgV2scxI+ny+G+ Wx4ZTWnSMg86Ie6pICfmg6HCsUzfLYDchz8liDQCBYyTo+POARPZOFYLKVhnbMr8FAxNbCCaSL5ho 5wuB4g8tw==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1giI9Q-0004Q7-1d; Sat, 12 Jan 2019 12:12:32 +0000 Date: Sat, 12 Jan 2019 04:12:31 -0800 From: Matthew Wilcox To: Anshuman Khandual Cc: linux-mm@kvack.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, mpe@ellerman.id.au, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, peterz@infradead.org, christoffer.dall@arm.com, marc.zyngier@arm.com, kirill@shutemov.name, rppt@linux.vnet.ibm.com, mhocko@suse.com, ard.biesheuvel@linaro.org, mark.rutland@arm.com, steve.capper@arm.com, james.morse@arm.com, robin.murphy@arm.com, aneesh.kumar@linux.ibm.com, vbabka@suse.cz, shakeelb@google.com, rientjes@google.com Subject: Re: [PATCH] mm: Introduce GFP_PGTABLE Message-ID: <20190112121230.GQ6310@bombadil.infradead.org> References: <1547288798-10243-1-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547288798-10243-1-git-send-email-anshuman.khandual@arm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 12, 2019 at 03:56:38PM +0530, Anshuman Khandual wrote: > All architectures have been defining their own PGALLOC_GFP as (GFP_KERNEL | > __GFP_ZERO) and using it for allocating page table pages. Except that's not true. > +++ b/arch/x86/mm/pgtable.c > @@ -13,19 +13,17 @@ phys_addr_t physical_mask __ro_after_init = (1ULL << __PHYSICAL_MASK_SHIFT) - 1; > EXPORT_SYMBOL(physical_mask); > #endif > > -#define PGALLOC_GFP (GFP_KERNEL_ACCOUNT | __GFP_ZERO) > - > #ifdef CONFIG_HIGHPTE ... > pte_t *pte_alloc_one_kernel(struct mm_struct *mm) > { > - return (pte_t *)__get_free_page(PGALLOC_GFP & ~__GFP_ACCOUNT); > + return (pte_t *)__get_free_page(GFP_PGTABLE & ~__GFP_ACCOUNT); > } I think x86 was the only odd one out here, but you'll need to try again ...