Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1292542imc; Sun, 17 Mar 2019 09:33:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5R6rFUxZ9x4Eq/oJlthbhrWWKzhLtEe242C5DxJu8xT0azr50tsprM07dj5O5kcd2u382 X-Received: by 2002:a62:1d8c:: with SMTP id d134mr14728325pfd.185.1552840410374; Sun, 17 Mar 2019 09:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552840410; cv=none; d=google.com; s=arc-20160816; b=sRH7MhltXrVHvoOQVTlXSwzNdYbmKLYIqTMwCwqRCL2K6l1nZkaqE0Ymhg1xEpR8fL RDgA5TctBjv96le4PrjEJ86GRdfYIv7ic3L0xLmm84Y52Dbvu7v2Qz+hR7n2P9BqqhLj r7FYWa4HZnZngUs/fGIVx9+bmfS5I5XqqopzxGQWAQ3X6Nzg7LRIF0WCW+nbAvjIgrdi nlOHwbHE77zdriB30+xx3GltjIOlK/9kGc6Tw2X3KY7lj25GgYrxpGl98mFJfM7rtJDr J05nSpv+a05Pa0RzkWrFRGTH88U4KO/shgjR4hK5Er/GsWvkT3VWphDv8QNYAcLsf4JG LBOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zQnpH8zaNMj9f8CSWUqk/1sf91xgKsQaG3Y3A4jkMj8=; b=QQ2iy3d854xKlqLgC7iFhUrZdqfRfn76WODTj8Cq1f6te2nSzTN7nfbENLdeIXcRSG aa5rhTjdL3mwRWHT0esiOq+nIsrxKExjKgG7cQ1RyHumdAmVpa3jL0bbeeP1khyE4rla OM7V5qTBcykqRVChpZ496Vkb433nWf+MyI01GTNO3pGjKYRQvj5CH20YrTOvj6LjH0jM IoPJev9VvDsATe7D/+FZE+zjPW417w6CE4Y7W86XVvVnFHGsX7YqhZHK2rm802XVp1BM ulUvqN/1zi3fKKTfQRH2wQBvtWdoDr4cr/T1AgRPwMxMXKj8In9Zxo49vNl+MMB0TCbn hgpw== 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 c13si3660471pfd.93.2019.03.17.09.33.15; Sun, 17 Mar 2019 09:33:30 -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 S1727089AbfCQQbX (ORCPT + 99 others); Sun, 17 Mar 2019 12:31:23 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:48923 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfCQQbW (ORCPT ); Sun, 17 Mar 2019 12:31:22 -0400 Received: from alex.numericable.fr (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alex@ghiti.fr) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 129DB100003; Sun, 17 Mar 2019 16:31:09 +0000 (UTC) From: Alexandre Ghiti To: aneesh.kumar@linux.ibm.com, mpe@ellerman.id.au, Andrew Morton , Vlastimil Babka , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Mike Kravetz , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-mm@kvack.org Cc: Alexandre Ghiti Subject: [PATCH v7 2/4] sparc: Advertise gigantic page support Date: Sun, 17 Mar 2019 12:28:45 -0400 Message-Id: <20190317162847.14107-3-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190317162847.14107-1-alex@ghiti.fr> References: <20190317162847.14107-1-alex@ghiti.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sparc actually supports gigantic pages and selecting ARCH_HAS_GIGANTIC_PAGE allows it to allocate and free gigantic pages at runtime. sparc allows configuration such as huge pages of 16GB, pages of 8KB and MAX_ORDER = 13 (default): HPAGE_SHIFT (34) - PAGE_SHIFT (13) = 21 >= MAX_ORDER (13) Signed-off-by: Alexandre Ghiti Acked-by: David S. Miller --- arch/sparc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index d5dd652fb8cc..0b7f0e0fefa5 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -90,6 +90,7 @@ config SPARC64 select ARCH_CLOCKSOURCE_DATA select ARCH_HAS_PTE_SPECIAL select PCI_DOMAINS if PCI + select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA config ARCH_DEFCONFIG string -- 2.20.1