Skip to content
Commit df012cca authored by Quanyang Wang's avatar Quanyang Wang Committed by Bruce Ashfield
Browse files

arch/arm/mach-axxia: use mpidr_to_hwcpu to retrieve real hardware cpuid



In function arm_dt_init_cpu_maps, it will use hwid whose value is "reg" property
in cpu node to compare with mpidr whose value read from MPIDR register. When boot
in normal condition, hwid is equal to MPIDR value which is "0" by chance. But in
kdump, the boot cpu will be any of 16 cpus and arm_dt_init_cpu_maps will not be able
to get correct hardware cpuid and this will result deviant irq affinity setting.

So at first, change "reg" property to mpidr value, and then use mpidr_to_hwcpu to transit
it to get real cpuid. Or else, in kdump, most irq will not be triggered.

Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 0aee6f87
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment