[PATCH] ARM/dt: Respect #address-cells when parsing CPUs

Sudeep Holla sudeep.holla at arm.com
Fri Sep 23 09:57:23 PDT 2016



On 23/09/16 16:51, Robin Murphy wrote:
> Whilst MPIDR values themselves are only 32 bits, it is still perfectly
> valid for a DT to have #address-cells > 1 in the CPUs node, resulting in
> the "reg" property having leading zero cell(s). In that situation, the
> big-endian nature of the data conspires with the current behaviour of
> just parsing the first cell to cause the kernel to think all CPUs have
> ID 0, and become resoundingly unhappy as a consequence.
>
> Take #address-cells into account when parsing CPUs so as to be correct
> under any circumstances.
>

Lorenzo had a patch [1] to address this a while ago. I assume all the
other patches in the series have been merged hopefully which fixes the 
device trees.

-- 
Regards,
Sudeep

[1] 
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-May/169093.html
[2] 
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-May/169083.html



More information about the linux-arm-kernel mailing list