[<prev] [next>] [day] [month] [year] [list]
Message-ID: <39b23985-5611-5fba-4ec6-03f70593dea5@oracle.com>
Date: Wed, 15 Jul 2020 10:05:32 -0700
From: Mike Kravetz <mike.kravetz@...cle.com>
To: "Song Bao Hua (Barry Song)" <song.bao.hua@...ilicon.com>,
"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>
Cc: "x86@...nel.org" <x86@...nel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Linuxarm <linuxarm@...wei.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Roman Gushchin <guro@...com>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H.Peter Anvin" <hpa@...or.com>,
Mike Rapoport <rppt@...ux.ibm.com>,
Anshuman Khandual <anshuman.khandual@....com>,
Jonathan Cameron <jonathan.cameron@...wei.com>
Subject: Re: [PATCH v3] mm/hugetlb: split hugetlb_cma in nodes with memory
On 7/15/20 4:14 AM, Song Bao Hua (Barry Song) wrote:
>> From: Mike Kravetz [mailto:mike.kravetz@...cle.com]
>> huge_page_size(h)/1024);
>>
>> + if (order >= MAX_ORDER && hugetlb_cma_size)
>> + hugetlb_cma_reserve(order);
>
> Hello, Mike,
> I am not sure if it is necessarily correct as the order for gigantic pages is arch-dependent:
> https://lkml.org/lkml/2020/7/1/14
>
See my reply to Wil.
The code to allocate gigantic pages from CMA depends on the arch independent
definition of gigantic page which is 'order >= MAX_ORDER'.
--
Mike Kravetz
Powered by blists - more mailing lists