Re: [PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-26 Thread Aneesh Kumar K.V
Anshuman Khandual writes: > On 04/17/2017 10:44 PM, Aneesh Kumar K.V wrote: >> POWER9 supports hugepages of size 2M and 1G in radix MMU mode. This patch >> enables the usage of 1G page size for hugetlbfs. This also update the helper >> such we can do 1G page allocation at runtime. >> >> Since we

Re: [PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-26 Thread Anshuman Khandual
On 04/17/2017 10:44 PM, Aneesh Kumar K.V wrote: > POWER9 supports hugepages of size 2M and 1G in radix MMU mode. This patch > enables the usage of 1G page size for hugetlbfs. This also update the helper > such we can do 1G page allocation at runtime. > > Since we can do this only when radix transl

[PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-17 Thread Aneesh Kumar K.V
POWER9 supports hugepages of size 2M and 1G in radix MMU mode. This patch enables the usage of 1G page size for hugetlbfs. This also update the helper such we can do 1G page allocation at runtime. Since we can do this only when radix translation mode is enabled, we can't use the generic gigantic_p

Re: [RFC PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-04 Thread Aneesh Kumar K.V
On Wednesday 05 April 2017 11:05 AM, Anshuman Khandual wrote: On 04/04/2017 07:33 PM, Aneesh Kumar K.V wrote: This patch adds support for gigantic pages in ppc64. We also updates gigantic_page_supported helper such that arch can override it. Seems like only radix based 1GB is considered as g

Re: [RFC PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-04 Thread Anshuman Khandual
On 04/04/2017 07:33 PM, Aneesh Kumar K.V wrote: > This patch adds support for gigantic pages in ppc64. We also updates > gigantic_page_supported helper such that arch can override it. Seems like only radix based 1GB is considered as gigantic page in this implementation. What about the existing 16G

[RFC PATCH] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-04-04 Thread Aneesh Kumar K.V
This patch adds support for gigantic pages in ppc64. We also updates gigantic_page_supported helper such that arch can override it. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/book3s/64/hugetlb.h | 9 + arch/powerpc/mm/hugetlbpage.c| 7 +-- arch/power