Re: [PATCH v5 5/5] mm/page_alloc: reuse tail struct pages for compound devmaps

2022-02-11 Thread Joao Martins
On 2/11/22 05:07, Muchun Song wrote: > On Fri, Feb 11, 2022 at 3:34 AM Joao Martins > wrote: >> diff --git a/mm/page_alloc.c b/mm/page_alloc.c >> index cface1d38093..c10df2fd0ec2 100644 >> --- a/mm/page_alloc.c >> +++ b/mm/page_alloc.c >> @@ -,6 +,20 @@ static void __ref __init_zone_devic

Re: [PATCH v5 4/5] mm/sparse-vmemmap: improve memory savings for compound devmaps

2022-02-11 Thread Joao Martins
On 2/11/22 07:54, Muchun Song wrote: > On Fri, Feb 11, 2022 at 3:34 AM Joao Martins > wrote: > [...] >> pte_t * __meminit vmemmap_pte_populate(pmd_t *pmd, unsigned long addr, int >> node, >> - struct vmem_altmap *altmap) >> +

Re: [PATCH v5 1/5] mm/sparse-vmemmap: add a pgmap argument to section activation

2022-02-11 Thread Joao Martins
On 2/11/22 08:03, Muchun Song wrote: > On Fri, Feb 11, 2022 at 3:34 AM Joao Martins > wrote: >> >> In support of using compound pages for devmap mappings, plumb the pgmap >> down to the vmemmap_populate implementation. Note that while altmap is >> retrievable from pgmap the memory hotplug code pa

Re: [PATCH v5 1/5] mm/sparse-vmemmap: add a pgmap argument to section activation

2022-02-11 Thread Muchun Song
On Fri, Feb 11, 2022 at 3:34 AM Joao Martins wrote: > > In support of using compound pages for devmap mappings, plumb the pgmap > down to the vmemmap_populate implementation. Note that while altmap is > retrievable from pgmap the memory hotplug code passes altmap without > pgmap[*], so both need t