From patchwork Tue Apr 14 11:44:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 11487341 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2720D15AB for ; Tue, 14 Apr 2020 11:46:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1980D2084D for ; Tue, 14 Apr 2020 11:46:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439514AbgDNLo5 (ORCPT ); Tue, 14 Apr 2020 07:44:57 -0400 Received: from foss.arm.com ([217.140.110.172]:53666 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439489AbgDNLoy (ORCPT ); Tue, 14 Apr 2020 07:44:54 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BF0571FB; Tue, 14 Apr 2020 04:44:52 -0700 (PDT) Received: from p8cg001049571a15.arm.com (unknown [10.163.1.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E0B493F6C4; Tue, 14 Apr 2020 04:44:42 -0700 (PDT) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Russell King , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Paul Walmsley , Palmer Dabbelt , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Yoshinori Sato , Rich Felker , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Mike Kravetz , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] mm/hugetlb: Add some new arch enabling macros Date: Tue, 14 Apr 2020 17:14:27 +0530 Message-Id: <1586864670-21799-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org This series adds two macros which platforms can enable to override generic fallback definitions. Before that it drops __HAVE_ARCH_HUGE_PTEP_GET from arm64 platform. 1. HAVE_ARCH_IS_HUGEPAGE_ONLY_RANGE - is_hugepage_only_range() 2. HAVE_ARCH_CLEAR_HUGEPAGE_FLAGS - arch_clear_hugepage_flags() This has been boot tested on arm64 and x86 platforms but built tested on some more platforms including the changed ones here. This series applies on v5.7-rc1. After this arm (32 bit) remains the sole platform defining it's own huge_ptep_get() via __HAVE_ARCH_HUGE_PTEP_GET. Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Tony Luck Cc: Fenghua Yu Cc: Thomas Bogendoerfer Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger Cc: Yoshinori Sato Cc: Rich Felker Cc: "David S. Miller" Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Mike Kravetz Cc: x86@kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-ia64@vger.kernel.org Cc: linux-mips@vger.kernel.org Cc: linux-parisc@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-riscv@lists.infradead.org Cc: linux-s390@vger.kernel.org Cc: linux-sh@vger.kernel.org Cc: sparclinux@vger.kernel.org Cc: linux-mm@kvack.org Cc: linux-arch@vger.kernel.org Cc: linux-kernel@vger.kernel.org Anshuman Khandual (3): arm64/mm: Drop __HAVE_ARCH_HUGE_PTEP_GET mm/hugetlb: Introduce HAVE_ARCH_IS_HUGEPAGE_ONLY_RANGE mm/hugetlb: Introduce HAVE_ARCH_CLEAR_HUGEPAGE_FLAGS arch/arm/include/asm/hugetlb.h | 7 +------ arch/arm64/include/asm/hugetlb.h | 13 +------------ arch/ia64/include/asm/hugetlb.h | 5 +---- arch/mips/include/asm/hugetlb.h | 11 ----------- arch/parisc/include/asm/hugetlb.h | 10 ---------- arch/powerpc/include/asm/hugetlb.h | 5 +---- arch/riscv/include/asm/hugetlb.h | 10 ---------- arch/s390/include/asm/hugetlb.h | 8 +------- arch/sh/include/asm/hugetlb.h | 7 +------ arch/sparc/include/asm/hugetlb.h | 10 ---------- arch/x86/include/asm/hugetlb.h | 10 ---------- include/linux/hugetlb.h | 12 ++++++++++++ 12 files changed, 18 insertions(+), 90 deletions(-)