Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4987417imb; Thu, 7 Mar 2019 05:23:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzPaoTwrdqPhP4aBpMafeWxYvTOQFLiKLloxaYuPVON86Z0szZYFn9A2qP9DsLcO3z25tvF X-Received: by 2002:a63:f558:: with SMTP id e24mr11263832pgk.373.1551965005327; Thu, 07 Mar 2019 05:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551965005; cv=none; d=google.com; s=arc-20160816; b=ACx6prrxLB0DTXldiy3Bgbxcx5aXiPGyoxMhl20zgKDVlzbdqksWbai7N88aS+/Whi kWLkmG90TW0TKJTCOxEhfQS2QHrYrhYo7D8aZ2rHLfDBg5rGzSAbjNWMgTL7YsKv1Wpv E+sW33+0jkAPKvyUkWh40YS+DaxLg3E7ZqYGCHXq/Vk+yav2bajD9w/Qa501NCpkEYoq o1n9ZTOZs+dPhyEgHoltksy/R0PMwl8W/XgBjlaJCnZRkMsly2cnj/UI0mvjTd6eSlKM T0CkOZS5jdOaQfAtrgkRjdj7NJnf3sYVH5rcJKSQSYvOSsDCAemHTb7jjtXHbgeq0G6/ j+Ew== 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=eu36joqpsAz5Ale63MePfyiUTNx81MBUfdf2NOWsJ6bHYhX+UWXtrWiZaInyQytZl2 JLqFahK64USuYQMhNXiDDS/0sdEN7Cb0INx66lX+TstbvKSk5CCR4GHsLsxKFWaSCBM/ Z3TwGTRTNF9IIcFxUV5hrbE7OkWAJq64U03P8tvbjVkiwHyXlvWnFoqIrWVfSY3IwIyt 3kA12CIwVhOCk8Wj2yorGijIz453OUCKycwhY6x+7O9XsqbcNzaMMaBHKM7rm+yDK3DR GFn0a8sh+E8pUKy6ONs+yGSzgLnJTZ1unXafVAmm8keFfoAKNBR5y8hVRM6YHUigO4UC 39Ng== 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 f11si3803467pgs.291.2019.03.07.05.23.09; Thu, 07 Mar 2019 05:23:25 -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; 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 S1726294AbfCGNWo (ORCPT + 99 others); Thu, 7 Mar 2019 08:22:44 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:51269 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfCGNWn (ORCPT ); Thu, 7 Mar 2019 08:22:43 -0500 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 relay7-d.mail.gandi.net (Postfix) with ESMTPSA id B50F220005; Thu, 7 Mar 2019 13:22:35 +0000 (UTC) From: Alexandre Ghiti To: Andrew Morton , Vlastimil Babka , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , 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 v6 2/4] sparc: Advertise gigantic page support Date: Thu, 7 Mar 2019 08:20:13 -0500 Message-Id: <20190307132015.26970-3-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307132015.26970-1-alex@ghiti.fr> References: <20190307132015.26970-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