Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-11 Thread Anshuman Khandual
On 1/11/21 3:43 PM, David Hildenbrand wrote: > On 11.01.21 05:17, Anshuman Khandual wrote: >> >> >> On 1/8/21 9:00 PM, David Hildenbrand wrote: To summarize, the section size bits for each base page size config should always a. Avoid (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZ

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-11 Thread David Hildenbrand
On 11.01.21 05:17, Anshuman Khandual wrote: > > > On 1/8/21 9:00 PM, David Hildenbrand wrote: >>> To summarize, the section size bits for each base page size config >>> should always >>> >>> a. Avoid (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS >> >> Pageblocks must also always fall completel

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-10 Thread Anshuman Khandual
On 1/8/21 9:00 PM, David Hildenbrand wrote: >> To summarize, the section size bits for each base page size config >> should always >> >> a. Avoid (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS > > Pageblocks must also always fall completely into a section. > >> >> b. Provide minimum possible

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-08 Thread David Hildenbrand
> To summarize, the section size bits for each base page size config > should always > > a. Avoid (MAX_ORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS Pageblocks must also always fall completely into a section. > > b. Provide minimum possible section size for a given base page config to >have i

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-07 Thread Anshuman Khandual
On 1/7/21 6:00 PM, David Hildenbrand wrote: > On 06.01.21 07:11, Anshuman Khandual wrote: >> Hi Sudershan, >> >> This patch (and the cover letter) does not copy LAKML even though the >> entire change here is arm64 specific. Please do copy all applicable >> mailing lists for a given patch. >> >> O

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-07 Thread Sudarshan Rajagopalan
On 2021-01-05 22:11, Anshuman Khandual wrote: Hello Anshuman, thanks for your response. (+ Will) Hi Sudershan, This patch (and the cover letter) does not copy LAKML even though the entire change here is arm64 specific. Please do copy all applicable mailing lists for a given patch. I used .

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-07 Thread David Hildenbrand
On 06.01.21 07:11, Anshuman Khandual wrote: > Hi Sudershan, > > This patch (and the cover letter) does not copy LAKML even though the > entire change here is arm64 specific. Please do copy all applicable > mailing lists for a given patch. > > On 1/6/21 6:58 AM, Sudarshan Rajagopalan wrote: >> Cur

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-05 Thread Anshuman Khandual
Hi Sudershan, This patch (and the cover letter) does not copy LAKML even though the entire change here is arm64 specific. Please do copy all applicable mailing lists for a given patch. On 1/6/21 6:58 AM, Sudarshan Rajagopalan wrote: > Currently on arm64, memory section size is hard-coded to 1GB.

Re: [PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-05 Thread Randy Dunlap
On 1/5/21 5:28 PM, Sudarshan Rajagopalan wrote: > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index 6d232837cbee..34124eee65da 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -294,6 +294,17 @@ config ARCH_ENABLE_MEMORY_HOTREMOVE > config SMP > def_bool y > > +c

[PATCH 1/1] arm64: make section size configurable for memory hotplug

2021-01-05 Thread Sudarshan Rajagopalan
Currently on arm64, memory section size is hard-coded to 1GB. Make this configurable if memory-hotplug is enabled, to support more finer granularity for hotplug-able memory. Signed-off-by: Sudarshan Rajagopalan --- arch/arm64/Kconfig | 11 +++ arch/arm64/include/asm/spars