]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: smp: honour #address-size when parsing CPU reg property
authorWill Deacon <will.deacon@arm.com>
Mon, 22 Apr 2013 17:28:55 +0000 (18:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 25 Apr 2013 16:45:43 +0000 (17:45 +0100)
commitf7d27ba27e053a99541901ffe4c4e19037facb93
tree107895e00c88eaa6a9468156185987c2e11cf52a
parent5be65269fd9a8af63f85b0c16fe31b2a7fa4e957
arm64: smp: honour #address-size when parsing CPU reg property

For systems where the top 32-bits of the MPIDR are all zero, we should
allow the device-tree to specify an #address-size of 0x1 for the CPU reg
property and then zero extend the value there.

Without this patch, kvmtool breaks with the recent mpidr parsing code
introduced in e3c4689695c5 ("arm64: kernel: initialise cpu_logical_map
from the DT").

Acked-by: Javi Merino <javi.merino@arm.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/smp.c