Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4986674imb; Thu, 7 Mar 2019 05:22:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyWKkJXcI9K4n1qj6ic72hv1LvBsRYSvlpIdNhcrGcQxGFKDxQC5R89DPuZB9FXbwbZ24Z0 X-Received: by 2002:a17:902:622:: with SMTP id 31mr12998817plg.31.1551964946129; Thu, 07 Mar 2019 05:22:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551964946; cv=none; d=google.com; s=arc-20160816; b=ARgrXT8E2D3J19l0uSKTadW2XLXmOWb7aG5+DRCUedrM2lNQ4hqlDpVE8TxrAtK0qF yHn9iEwmLqnFE7GnOjl1LumI0d8cUxQQzCrG2ip6IRZjdaCHYCWXdvwwxuBPb1F5UTds G8NptOpQY7DdX1Xovg35tpZOzj8fhnKvSEyFWT6z8il2howqn95yRylkax5Nw48Aw3T2 sApbqikvEgF7ib7ruP+mPjhjfe4fM9YFQlTlcW5jEhZBGyryUruHpe7M2GG6hm/L2Sxj QNXFH5G1eGTeJSjVoh6NDpxQuey03iBAOasKCihs5Z84WTYMFUBPcDZxOCwYnPh9pdML AhiQ== 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=r/Vjiixhx3FNLOyNCupP3O6rpRbR7vCnpvYlarBDlm4=; b=meQ/1cRxBxauj9R0ofb9397FWvuvpIh6IIgsJ51tRBhvKdYTJUqxX6NMcIuNQdBryc +NDBr5IEA7b6B0G6WPM8IlntKuAddtiMwj70ybH1T1shWJDPFTR6V0U4+zDGnFCfdWXQ 82h3Uo/cddHcQupLd0GlItFFmb5X/Pf735a8VdqRcOHLc0O2eWhDsWasdkwZFwrBg5rG 66Gao5ciu1T1xeOqjoERYSOOvcsRXFR7J+JeVaJzwxNp9ni256RY6YMn1O/XjRFOar82 SfwvOGQui1ggevHQPer9q+9N92WkzsIjF+C2SwYzYrSZ9Mz8fb5hxL7il40LQPx0Np7J d84w== 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 bg3si4085498plb.363.2019.03.07.05.22.10; Thu, 07 Mar 2019 05:22:26 -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 S1726252AbfCGNVh (ORCPT + 99 others); Thu, 7 Mar 2019 08:21:37 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:36601 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726120AbfCGNVg (ORCPT ); Thu, 7 Mar 2019 08:21:36 -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 21C9620005; Thu, 7 Mar 2019 13:21:26 +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 1/4] sh: Advertise gigantic page support Date: Thu, 7 Mar 2019 08:20:12 -0500 Message-Id: <20190307132015.26970-2-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 sh actually supports gigantic pages and selecting ARCH_HAS_GIGANTIC_PAGE allows it to allocate and free gigantic pages at runtime. At least sdk7786_defconfig exposes such a configuration with huge pages of 64MB, pages of 4KB and MAX_ORDER = 11: HPAGE_SHIFT (26) - PAGE_SHIFT (12) = 14 >= MAX_ORDER (11) Signed-off-by: Alexandre Ghiti --- arch/sh/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index a9c36f95744a..299a17bed67c 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -53,6 +53,7 @@ config SUPERH select HAVE_FUTEX_CMPXCHG if FUTEX select HAVE_NMI select NEED_SG_DMA_LENGTH + select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA help The SuperH is a RISC processor targeted for use in embedded systems -- 2.20.1