Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5012556img; Tue, 26 Mar 2019 23:41:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgH4mR7ENXolLv7rA8pAjjJhHOuizb6QfCzfes0/UDgnk0W2kMYUaImeL3Z0LKq9xBj1HJ X-Received: by 2002:a17:902:8a8a:: with SMTP id p10mr35132872plo.92.1553668893433; Tue, 26 Mar 2019 23:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553668893; cv=none; d=google.com; s=arc-20160816; b=bXI8pUpxS/UwpLtwTmAQ+B/zxyG/TOlyxldvhH1t1gkgRGaJIqKpYlVR7a0Z+oZMHU gdeTRxsllX24XIphUf3FtwA4myHqLFXhg1O0hCDDT0i+MmOZ3BuopkBrS6zDWQKfzqin MJuI9/+jcHrs8hbJmuP4yynM6yq5TX/rBufuEpveYbdXlQ6esGV5JRuqFgNh0Qxz02XL A3FMtK5SxBJKvCF71NdZLZDuF1ccp1uHgqCXMDhc0jUI1HBt8VTOEStjlkx114N5J7tQ Nl1QIJ0llPLOa+n7ph7Q/YlR8hqn8K9XzomoaRj7jT+NjLrMrhvVDRtBUC/JVliJqoyC PiqQ== 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=nuw9ssOH0zc6a25wh1vBTWVvL+74YlKCUDSQBwfYm4M=; b=uGKsNZlxMmKEO3LXb/jZwk+Sn3EpxYyy1cPtmmuyw2Z0IjgymTEFBy90wZTEDn4Ud3 ChSQ+fKTp6H+eXio99oKV0l4fUmQQmvxtyrF7EvRdNdJR+Rk4c4q4xirDiGlfV5APxKc 9oezfUKvIyhOlGqYNxn3yS15XJzAkh2Waw958DfryVmSw5y3b3ErZYK3vw7oTjW8IpGM 5Q9KuY9zu4n3KIraTMB1qTKD1XnzMH2dN0PdRGRN57lkA82DrjXtBfmeH2G5gjvr13PL AZRlGpydEVVLnqzbZXRISEezCBBD1eUOyr3fW7jt4DCoG641RA6ft2oawW+hwnrh4rbE UgeA== 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 73si19512421pld.156.2019.03.26.23.41.18; Tue, 26 Mar 2019 23:41:33 -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 S2387434AbfC0GjH (ORCPT + 99 others); Wed, 27 Mar 2019 02:39:07 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:55017 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbfC0GjH (ORCPT ); Wed, 27 Mar 2019 02:39:07 -0400 X-Originating-IP: 79.86.19.127 Received: from alex.numericable.fr (127.19.86.79.rev.sfr.net [79.86.19.127]) (Authenticated sender: alex@ghiti.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id AFEE060009; Wed, 27 Mar 2019 06:38:53 +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 v8 2/4] sparc: Advertise gigantic page support Date: Wed, 27 Mar 2019 02:36:24 -0400 Message-Id: <20190327063626.18421-3-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190327063626.18421-1-alex@ghiti.fr> References: <20190327063626.18421-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 40f8f4f73fe8..ebcc9435db08 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -91,6 +91,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