Received: by 10.192.165.156 with SMTP id m28csp451091imm; Wed, 11 Apr 2018 01:41:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+cMmkCZbq0wRKCbgcVusl2gRhvMS6UfQOkh7EnDOOI2AOaptu4dEl9pmlpGEegTkWxf/fX X-Received: by 10.99.43.80 with SMTP id r77mr2719909pgr.193.1523436077893; Wed, 11 Apr 2018 01:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523436077; cv=none; d=google.com; s=arc-20160816; b=liyhV5L3tLYvun2Ea+E73YkcPwsQwA82VOBtN1sD75M0Mj2PKqKteT3ugWxutcPEuG EocDzNFQ6cdzT5CLRfIk+3m1HP0tZQT1jwM5y9aWMqsDgUID6zHyj6oz1OGLH38MFwfk JFsf2gEnf+crebmA0c6ZYAEZxaDr+7UJA3am8ZGO0/bYnih5eMXeNmeSbFY8BDcuQxHT jvXgdQinGV/joLhpQFoPkx2ciolQCHPWtqMi/wTiGfr3+GFV9ehyhZiKwbWtaNv89wJr zoYs/ikFOZjfoApn9X2oB6p/coRh3uR1rnRpp+QJG74qriJj1Z8YbMD54xnIx8WVf1XL VmkA== 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=eAxKSb6P6RWAzYQeqhx/X3pbC3C9OPGCY6YDjJRbwg0=; b=ZhtJhjiXHTexVHpNYPOkv9gfqLzQR5+brcAU2Xp/JiOE9m5DK/xwKPF0PaZytfq4Xp Dpkudw/2lQIfyw7YmgqAB/P5p1NBzecrpuLkPbLWoPrbc7OAJfOt5XZ5b8mnl3MgYLnf N6778xwrhiOd+EBwLJLwR1asrHCobEvf1XF14ptbm0QdC0kEP8mPoeKti8psUiZgqdzQ ya+mtT16EO06sMblYUrkie8NmbJdYpmMy08a9HbgzsoB73Vh4lueXz1sM+UMQTWRfpxN g/NmvEeKYhY+hHbE0Q8HNzQ8r3HqaWH+alM7/KqvZSL0IAWzovo384mwlbCHmjbLGrh4 P2Nw== 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 c16si423991pgv.220.2018.04.11.01.40.41; Wed, 11 Apr 2018 01:41:17 -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 S1752382AbeDKIe1 (ORCPT + 99 others); Wed, 11 Apr 2018 04:34:27 -0400 Received: from mx2.suse.de ([195.135.220.15]:54946 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbeDKIeW (ORCPT ); Wed, 11 Apr 2018 04:34:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 90F1CAE14; Wed, 11 Apr 2018 08:34:20 +0000 (UTC) Date: Wed, 11 Apr 2018 10:34:19 +0200 From: Michal Hocko To: Laurent Dufour Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-doc@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, Jerome Glisse , aneesh.kumar@linux.vnet.ibm.com, akpm@linux-foundation.org, mpe@ellerman.id.au, benh@kernel.crashing.org, paulus@samba.org, Jonathan Corbet , Catalin Marinas , Will Deacon , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Vineet Gupta , Palmer Dabbelt , Albert Ou , Martin Schwidefsky , Heiko Carstens , David Rientjes , Robin Murphy Subject: Re: [PATCH v3 1/2] mm: introduce ARCH_HAS_PTE_SPECIAL Message-ID: <20180411083419.GB23400@dhcp22.suse.cz> References: <1523433816-14460-1-git-send-email-ldufour@linux.vnet.ibm.com> <1523433816-14460-2-git-send-email-ldufour@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523433816-14460-2-git-send-email-ldufour@linux.vnet.ibm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 11-04-18 10:03:35, Laurent Dufour wrote: > Currently the PTE special supports is turned on in per architecture header > files. Most of the time, it is defined in arch/*/include/asm/pgtable.h > depending or not on some other per architecture static definition. > > This patch introduce a new configuration variable to manage this directly > in the Kconfig files. It would later replace __HAVE_ARCH_PTE_SPECIAL. > > Here notes for some architecture where the definition of > __HAVE_ARCH_PTE_SPECIAL is not obvious: > > arm > __HAVE_ARCH_PTE_SPECIAL which is currently defined in > arch/arm/include/asm/pgtable-3level.h which is included by > arch/arm/include/asm/pgtable.h when CONFIG_ARM_LPAE is set. > So select ARCH_HAS_PTE_SPECIAL if ARM_LPAE. > > powerpc > __HAVE_ARCH_PTE_SPECIAL is defined in 2 files: > - arch/powerpc/include/asm/book3s/64/pgtable.h > - arch/powerpc/include/asm/pte-common.h > The first one is included if (PPC_BOOK3S & PPC64) while the second is > included in all the other cases. > So select ARCH_HAS_PTE_SPECIAL all the time. > > sparc: > __HAVE_ARCH_PTE_SPECIAL is defined if defined(__sparc__) && > defined(__arch64__) which are defined through the compiler in > sparc/Makefile if !SPARC32 which I assume to be if SPARC64. > So select ARCH_HAS_PTE_SPECIAL if SPARC64 > > There is no functional change introduced by this patch. > > Suggested-by: Jerome Glisse > Reviewed-by: Jerome Glisse > Acked-by: David Rientjes > Signed-off-by: Laurent Dufour Looks good to me. I have checked x86 and the generic code and it looks good to me. Anyway arch maintainers really have to double check this. -- Michal Hocko SUSE Labs