On Wed, Apr 24, 2019 at 01:47:48AM +0300, Serge Semin wrote: > Since memblock-patchset was introduced the reserved-memory nodes are > supported being declared in dt-files. So these nodes are actually parsed > during the arch setup procedure when the early_init_fdt_scan_reserved_mem() > method is called. But some of the features like private reserved memory > pools aren't available at the moment, since OF_RESERVED_MEM isn't enabled > for the MIPS platform. Lets fix it by enabling the config. > > But due to the arch-specific boot mem_map container utilization we need > to manually call the fdt_init_reserved_mem() method after all the available > and reserved memory has been moved to memblock. The function call performed > before bootmem_init() fails due to the lack of any memblock memory regions > to allocate from at that stage.
Architectures should not select this symbol directly, it will be automatically enabled if either DMA_DECLARE_COHERENT or DMA_CMA are enabled, which are required for the actual underlying memory allocators.