Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1291744imc; Sun, 17 Mar 2019 09:32:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPqInlCGuD4n70kzl/m2dvee7GMXOkUrPZmjP/nZ7Ta0KG4niSsCAoJ5J/jRl3pmqAUyrA X-Received: by 2002:a17:902:b413:: with SMTP id x19mr15273825plr.256.1552840331310; Sun, 17 Mar 2019 09:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552840331; cv=none; d=google.com; s=arc-20160816; b=oC5zz0r6gfjtBGJW4auDFEXMP/6CAd762rHj2Pt5k1ju25d2MXKVIWrJTnhLBc4bRY qxEX2t95SYd4Vd8PgBZuJJ+H7fzN+JoFbos6E5YN+6J8rtala22YYzgH6aBd+N1qyDef hoHOkjVMq42ojEpL+aqoaWxdqsKsiSG9/StQqTRmbIi9nvGdnDH02dtbJTcfUc3IuEvR W4amOAnp95h9fp/0J+wjvt/9YiBXBeZRRFy9AKllREnSv7jCJACHyH1PJzTKHYALTjRh KDPmMhfN2zgQWjHR7e8J52uHBUfLTgGPBChFyUZaF76uH+gw1sM6sxdI80paaYpEhTak jhnw== 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=X5ResB8S4uOIZh5mmNtiMaPw2FiEGFejSAKwT4IRFFyDpPz8BxQCLBgfu5mlKo6QmA jBU8nBuaCeh3Y8njIz45mRRxEQStmnIWYG7PwxcPYHubOH+FDTu1CtXxCJSiE1I0QRep hv7sVcV/hTnNW9LgdbJwJSgMPldx5MVCTy9Cb1zCYTbPhDKxhwgieCs+1QHeMEajLjqk oZUJJEhqeNs8TW+/QyvnTNgM2upXjdAz0ZLpS8+qpD5JHqFmyV+7T9MPXsCY7LyrN1S4 QO2b+30YaMPLg+ItZJmmGddvYm/PUGL3SlbhL9qhhu1jSFaUOdngiJubr3Pub7CKtfQH c7wg== 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 p19si7181210plq.29.2019.03.17.09.31.56; Sun, 17 Mar 2019 09:32:11 -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 S1726957AbfCQQaM (ORCPT + 99 others); Sun, 17 Mar 2019 12:30:12 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:33855 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbfCQQaM (ORCPT ); Sun, 17 Mar 2019 12:30:12 -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 6C5CA60005; Sun, 17 Mar 2019 16:30:00 +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 1/4] sh: Advertise gigantic page support Date: Sun, 17 Mar 2019 12:28:44 -0400 Message-Id: <20190317162847.14107-2-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 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