Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1465208
| From | Xie Yisheng <xieyisheng1@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH] arm64/hugetlb enable gigantic hugepage |
| Date | 2016-08-18 14:10 +0200 |
| Message-ID | <s7uiZ-82P-23@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
As we know, arm64 also support gigantic hugepage eg. 1G.
So I try to use this function by adding hugepagesz=1G
in kernel parameters, with CONFIG_CMA=y.
However, when:
echo xx > /sys/kernel/mm/hugepages/hugepages-1048576kB/
nr_hugepages
it failed with the info:
-bash: echo: write error: Invalid argument
This patch make gigantic hugepage can be used on arm64,
when CONFIG_CMA=y or other related configs is enable.
Signed-off-by: Xie Yisheng <xieyisheng1@huawei.com>
---
mm/hugetlb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 87e11d8..b4d8048 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1022,7 +1022,8 @@ static int hstate_next_node_to_free(struct hstate *h, nodemask_t *nodes_allowed)
((node = hstate_next_node_to_free(hs, mask)) || 1); \
nr_nodes--)
-#if (defined(CONFIG_X86_64) || defined(CONFIG_S390)) && \
+#if (defined(CONFIG_X86_64) || defined(CONFIG_S390) || \
+ defined(CONFIG_ARM64)) && \
((defined(CONFIG_MEMORY_ISOLATION) && defined(CONFIG_COMPACTION)) || \
defined(CONFIG_CMA))
static void destroy_compound_gigantic_page(struct page *page,
--
1.7.12.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[RFC PATCH] arm64/hugetlb enable gigantic hugepage Xie Yisheng <xieyisheng1@huawei.com> - 2016-08-18 14:10 +0200
Re: [RFC PATCH] arm64/hugetlb enable gigantic hugepage Yisheng Xie <xieyisheng1@huawei.com> - 2016-08-19 12:00 +0200
Re: [RFC PATCH] arm64/hugetlb enable gigantic hugepage Michal Hocko <mhocko@kernel.org> - 2016-08-19 12:30 +0200
Re: [RFC PATCH] arm64/hugetlb enable gigantic hugepage Yisheng Xie <xieyisheng1@huawei.com> - 2016-08-19 13:20 +0200
Re: [RFC PATCH] arm64/hugetlb enable gigantic hugepage Michal Hocko <mhocko@kernel.org> - 2016-08-19 13:30 +0200
csiph-web