From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 19 Jan 2019 23:57:57 +0000 From: Will Deacon Subject: Re: [PATCH] hugetlb: allow to free gigantic pages regardless of the configuration Message-ID: <20190119235756.GF26876@brain-police> References: <20190117183953.5990-1-aghiti@upmem.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190117183953.5990-1-aghiti@upmem.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org List-Archive: To: Alexandre Ghiti Cc: Benjamin Herrenschmidt , Heiko Carstens , linux-mm@kvack.org, Paul Mackerras , "H . Peter Anvin" , linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, Alexandre Ghiti , Michael Ellerman , x86@kernel.org, hch@infradead.org, Ingo Molnar , Catalin Marinas , Martin Schwidefsky , Borislav Petkov , Alexander Viro , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Mike Kravetz List-ID: On Thu, Jan 17, 2019 at 06:39:53PM +0000, Alexandre Ghiti wrote: > From: Alexandre Ghiti > > On systems without CMA or (MEMORY_ISOLATION && COMPACTION) activated but > that support gigantic pages, boottime reserved gigantic pages can not be > freed at all. This patchs simply enables the possibility to hand back > those pages to memory allocator. > > This commit then renames gigantic_page_supported and > ARCH_HAS_GIGANTIC_PAGE to make them more accurate. Indeed, those values > being false does not mean that the system cannot use gigantic pages: it > just means that runtime allocation of gigantic pages is not supported, > one can still allocate boottime gigantic pages if the architecture supports > it. > > Signed-off-by: Alexandre Ghiti > --- > > - Compiled on all architectures > - Tested on riscv architecture > > arch/arm64/Kconfig | 2 +- > arch/arm64/include/asm/hugetlb.h | 7 +++-- The arm64 bits look straightforward enough to me... Acked-by: Will Deacon Will _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel