On Wed, May 11, 2016 at 05:06:13PM -0700, David Daney wrote:[...]
On 05/11/2016 03:39 AM, Catalin Marinas wrote:
I wonder whether you could replace the get_mpidr_in_madt() function with
something like acpi_get_phys_id(). It looks like get_mpidr_in_madt()
duplicates functionality already available elsewhere.
I just tried that, and it doesn't work.
The problem is that this code is being run very early in the boot, and
kmalloc cannot be used. acpi_get_phys_id() and its ilk can only be used
once we have working kmalloc. We need to extract the NUMA information early
like this precisely because it is needed to initializing the slab system
Notice that we are using early_acpi_os_unmap_memory() et al. in
get_mpidr_in_madt() explicitly for this reason.
In summary: I don't think we need another revision of this patch, it is like
this for a good reason.
Slightly confusing, in another reply you said you are going to address
my comment. So, is it doable?