]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7934/1: DT/kernel: fix arch_match_cpu_phys_id to avoid erroneous match
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 8 Jan 2014 17:24:21 +0000 (18:24 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 11 Jan 2014 12:06:57 +0000 (12:06 +0000)
commit53e47b809a5b27cdb3981e394b45c042d33c9a38
treed2e402f9a80bdf8f6739c6853b32d59b79713fb9
parente55a06d02e46a091ed23ce91bad72baedff89eae
ARM: 7934/1: DT/kernel: fix arch_match_cpu_phys_id to avoid erroneous match

The MPIDR contains specific bitfields(MPIDR.Aff{2..0}) which uniquely
identify a CPU, in addition to some non-identifying information and
reserved bits. The ARM cpu binding defines the 'reg' property to only
contain the affinity bits, and any cpu nodes with other bits set in
their 'reg' entry are skipped.

As such it is not necessary to mask the phys_id with MPIDR_HWID_BITMASK,
and doing so could lead to matching erroneous CPU nodes in the device
tree. This patch removes the masking of the physical identifier.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/devtree.c