Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4427744imb; Wed, 6 Mar 2019 13:10:40 -0800 (PST) X-Google-Smtp-Source: APXvYqy3AkStwIte77PzxgC5JdB7gbOltOhLAJp78nTxIgK8AXrLQgCsi0mowHuYrzA2BXJPflYd X-Received: by 2002:a17:902:4545:: with SMTP id m63mr8853677pld.71.1551906640244; Wed, 06 Mar 2019 13:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551906640; cv=none; d=google.com; s=arc-20160816; b=kUHcEgJeDFwYawatzsAyrhxoethShZ0hmPkWxSmswiVM5NCpwcOZTIWZxVhV4fNXxV SNZ63pEM0qdiwcXPhextwZcovgN3T1eF48H2Vw8DRBm1KT+IOE9SUGmobwXCCPFGH6v5 vwjhaNTvwcl7tRsC0vPDmO+i6v+dH/ypJ6wwiEuPlxMjByDhDAofbIuFGqlb9H6UQnfz jXyIbP7Yz/McPRnVLIDq+n2ns4a4VgFkiOfsacrLq4UnSPrT6ffk6os2Oluzjbf+e1mL SDXeGDNmJRXy6SBeVP838nOeOnBo0mKOInSr71P3SaK0nIG2/d1V4DRfdovmGFX0USL+ 2RkQ== 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=eYR89qBSmbOgWLjfBNFsSAnq8PZAFEQq6qjut3XM6yg=; b=Xmf34HRQTBAWNot1xFTmPEHW9BnvcFtF8nHkPf4UUx4y7ICRbgLUuWtKRdtD7XOPHm j7EyvpiN9/5+/tgVG9wntULvftIgqgTFM5FBVg+zixGW1V0IeogIrNFqf3Tp3bmJUdqE /lN6cU0DzKWkUfdL9/HcltePoAvJDE1vcS0y/v/5hvLWqVL+P+rtP5o3sgWbfQSZkzoc uHRKXjbRkgyapeLi9Y6bmvkWKw9kozhvt8+nh6f+TEpD3gCTJrW8eaiwDAjEFDZwYlly OK/ey/jGrBfgRB3oklq/dnXdck9o3MT4ui0qQcXMQ8fCzKZmRtQdryg+d7/LL0yttyYM GwSQ== 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 b2si2263587plr.167.2019.03.06.13.10.21; Wed, 06 Mar 2019 13:10:40 -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 S1730418AbfCFTCs (ORCPT + 99 others); Wed, 6 Mar 2019 14:02:48 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:57965 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726917AbfCFTCs (ORCPT ); Wed, 6 Mar 2019 14:02:48 -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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 98D4EFF804; Wed, 6 Mar 2019 19:02:28 +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 2/4] sparc: Advertise gigantic page support Date: Wed, 6 Mar 2019 14:00:03 -0500 Message-Id: <20190306190005.7036-3-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 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 --- 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