Hi > > We are trying to enable memory hot plug for our device's based on arm64, > is it possible to reduce memory_block_size to 1 GB or lesser as > currently it is 4GB. ... are you sure it's 4GB? I never heard that magic number on arm64 before. The section size is 512 MiB on arm64 with 64k and 128 MiB with 4k. > > If you have any info on updated patch or any other way we can do this, > please let us know. > > After applying attached test patch (for reduction of memory_block_size > to 1 GB),we are getting below error. Probe is working fine in case of 4GB. > I think I am missing something important. #define MIN_MEMORY_BLOCK_SIZE (1UL << SECTION_SIZE_BITS) arch/arm64/include/asm/sparsemem.h:#define SECTION_SIZE_BITS 29 arch/arm64/include/asm/sparsemem.h:#define SECTION_SIZE_BITS 27 -> 512 MiB / 128 MiB arm64 does not override memory_block_size_bytes(), so it matches exactly these numbers. -- Thanks, David / dhildenb