]> git.baikalelectronics.ru Git - kernel.git/commit
ARM64 / SMP: Switch pr_err() to pr_debug() for disabled GICC entry
authorHanjun Guo <hanjun.guo@linaro.org>
Fri, 3 Jul 2015 07:29:06 +0000 (15:29 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 3 Jul 2015 10:48:57 +0000 (11:48 +0100)
commit49121483d9faf22e6d9374d1a7b4e70d96a1bb46
tree146979e784b5dabdf0f474af55fd19a3a75d5051
parent3065b4305eb2d671457ab86e483d025936893802
ARM64 / SMP: Switch pr_err() to pr_debug() for disabled GICC entry

It is normal that firmware presents GICC entry or entries (processors)
with disabled flag in ACPI MADT, taking a system of 16 cpus for example,
ACPI firmware may present 8 ebabled first with another 8 cpus disabled
in MADT, the disabled cpus can be hot-added later.

Firmware may also present more cpus than the hardware actually has, but
disabled the unused ones, and easily enable it when the hardware has such
cpus to make the firmware code scalable.

So that's not an error for disabled cpus in MADT, we can switch pr_err()
to pr_debug() to make the boot a little quieter by default.

Since hwid for disabled cpus often are invalid, and we check invalid hwid
first in the code, for use case that hot add cpus later will be filtered
out and will not be counted in possible cups, so move this check before
the hwid one to prepare the code to count for disabeld cpus when cpu
hot-plug is introduced.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Reviewed-by: Al Stone <ahs3@redhat.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/smp.c