From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754183AbcHVC7j (ORCPT ); Sun, 21 Aug 2016 22:59:39 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:10230 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753560AbcHVC7h (ORCPT ); Sun, 21 Aug 2016 22:59:37 -0400 From: Xie Yisheng To: , CC: , , , , , , , , , , , , Subject: [RFC PATCH v2 0/2] arm64/hugetlb: enable gigantic page Date: Mon, 22 Aug 2016 10:56:41 +0800 Message-ID: <1471834603-27053-1-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.57BA6A41.0046,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 09f79d07322d4e0638b933840a3ebbaa Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arm64 supports different size of gigantic page which can be seen from: commit 084bd29810a5 ("ARM64: mm: HugeTLB support.") commit 66b3923a1a0f ("arm64: hugetlb: add support for PTE contiguous bit") So I tried to use this function by adding hugepagesz=1G in kernel parameters, with CONFIG_CMA=y. However, when I echo xx > \ /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages it failed with the following info: -bash: echo: write error: Invalid argument This is a v2 patchset which make gigantic page can be used on arm64, with CONFIG_CMA=y, or other related configs is enable. You can see the former discussions at: https://lkml.org/lkml/2016/8/18/310 Xie Yisheng (2): mm/hugetlb: Introduce ARCH_HAS_GIGANTIC_PAGE arm64 Kconfig: Select gigantic page arch/arm64/Kconfig | 1 + arch/s390/Kconfig | 1 + arch/x86/Kconfig | 1 + fs/Kconfig | 4 ++++ mm/hugetlb.c | 2 +- 5 files changed, 8 insertions(+), 1 deletion(-) -- 1.7.12.4