Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4428293imb; Wed, 6 Mar 2019 13:11:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzsoxSS/nskP7i/1ZeyNj4Alq8mK1fb9gly/pBDsFbLYdQQzGVwWMWji8rwkcd/Qi2QAI4A X-Received: by 2002:aa7:85d1:: with SMTP id z17mr9091133pfn.226.1551906684944; Wed, 06 Mar 2019 13:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551906684; cv=none; d=google.com; s=arc-20160816; b=f7SHN5yL6vjgGe51Ki6yhxPGJFOld4wMGBAHt7QHs2X4350wMcNf62yioGMmKas/sJ bkb8utHKGoybfkIXQGK/3vObVVItBZiUTn8Q3O3Y/tPfDUHy3jGnRBW7JR53rtC7edDs LHFx/QScggeXqHLMkKif7SU6vJa9H8KY3cC9AqBAIxXAqyjNXmGmliAYddJiCyL9d4D7 5l1PQvV8Wc4yMn7A4XwUwVX7lWmo1aBDMmcJwRO48OxAOm1kWdwVJstO46WvFW/Yi1Hc Jn+ShCVO87zq0QfAgZTFh40TRzSAyWD6ubqSizrz9Gd5dSlNQZe5EP8U5w0vhzw7+E4U v/qw== 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=yoPwUsM7Jhdtw/jS4px85+e38PIp9a9OQGfpso+D/R+9pLByNrQvb739CY9P71a++6 6dt9XfrE4E/bUvqXniFV8h4OCHOCoYPkvb2TutaZ2F3WMqqGbvQr6VbMhov3YG/xlrmu +Q/F9XhN/bCCluAS61zsRgmR2TIeo2Iqgu2Q7IvCqYFCVFK1HVGTkQYyXyQ5ajQA/yu5 AoBLrioSU3i2Eo1/sS8/sEIT/5wR42kA0ecYkqvt5/7lBcDH8OirUuhe70ATI5BKzNc6 7cL53hdcmFxW4IKLp6AAcKHwvBERjJ7O7g2q7TgTS9rWbIsidbLcroxPfsW4tP7lH9K0 I8sg== 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 h69si2542354pfc.120.2019.03.06.13.11.06; Wed, 06 Mar 2019 13:11:24 -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 S1730116AbfCFTBa (ORCPT + 99 others); Wed, 6 Mar 2019 14:01:30 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:47109 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726424AbfCFTB3 (ORCPT ); Wed, 6 Mar 2019 14:01:29 -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 relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 683D2240003; Wed, 6 Mar 2019 19:01:21 +0000 (UTC) From: Alexandre Ghiti To: 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 v5 1/4] sh: Advertise gigantic page support Date: Wed, 6 Mar 2019 14:00:02 -0500 Message-Id: <20190306190005.7036-2-alex@ghiti.fr> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190306190005.7036-1-alex@ghiti.fr> References: <20190306190005.7036-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