[PATCH v3 27/28] mm/hugetlb: enable bootmem allocation from CMA areas

2025-02-06 Thread Frank van der Linden
arch_specific_huge_bootmem_alloc that returns true if such an allocator is present. In that case, CMA bootmem allocations can't be used, so check that function before trying. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Frank van der Linden --- arch/po

[PATCH 27/27] mm/hugetlb: enable bootmem allocation from CMA areas

2025-01-27 Thread Frank van der Linden
arch_specific_huge_bootmem_alloc that returns true if such an allocator is present. In that case, CMA bootmem allocations can't be used, so check that function before trying. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Frank van der Linden --- arch/po

Re: [PATCH 27/27] mm/hugetlb: enable bootmem allocation from CMA areas

2025-01-28 Thread Frank van der Linden
Hi Christophe, thanks for your comments. Replies inline below. On Tue, Jan 28, 2025 at 12:55 AM Christophe Leroy wrote: > > > > Le 28/01/2025 à 00:22, Frank van der Linden a écrit : > > If hugetlb_cma_only is enabled, we know that hugetlb pages > > can only be allocated

Re: [PATCH 27/27] mm/hugetlb: enable bootmem allocation from CMA areas

2025-01-29 Thread Frank van der Linden
On Tue, Jan 28, 2025 at 9:52 AM Frank van der Linden wrote: > > Hi Christophe, thanks for your comments. Replies inline below. > > On Tue, Jan 28, 2025 at 12:55 AM Christophe Leroy > wrote: > > > > > > > > Le 28/01/2025 à 00:22, Frank van der Linden a écrit

[PATCH v2 27/28] mm/hugetlb: enable bootmem allocation from CMA areas

2025-01-29 Thread Frank van der Linden
arch_specific_huge_bootmem_alloc that returns true if such an allocator is present. In that case, CMA bootmem allocations can't be used, so check that function before trying. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Frank van der Linden --- arch/po

[PATCH v4 26/27] mm/hugetlb: enable bootmem allocation from CMA areas

2025-02-18 Thread Frank van der Linden
arch_specific_huge_bootmem_alloc that returns true if such an allocator is present. In that case, CMA bootmem allocations can't be used, so check that function before trying. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Frank van der Linden --- arch/po

[PATCH v5 26/27] mm/hugetlb: enable bootmem allocation from CMA areas

2025-02-28 Thread Frank van der Linden
arch_specific_huge_bootmem_alloc that returns true if such an allocator is present. In that case, CMA bootmem allocations can't be used, so check that function before trying. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Frank van der Linden --- arch/po