xen/arm: cpuerrata: Actually check errata on non-boot CPUs

The cpu errata framework was introduced in commit 8b01f6364f "xen/arm:
Detect silicon revision and set cap bits accordingly" and was meant to
detect errata present on any CPUs (via check_local_cpu_errata). However,
the function to check the MIDR (is_affected_midr_range) mistakenly
always use the boot CPU MIDR.

Fix is_affected_midr_range to use the current CPU MIDR.

Reported-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit 27196d4cc9)
This commit is contained in:
Julien Grall authored and Stefano Stabellini committed 2018-02-20 17:15:33 -08:00
1 parent 8e1e3c7337
commit d11783c992
1 file changed
+1 -1
+1 -1
View File
@@ -227,7 +227,7 @@ static int enable_ic_inv_hardening(void *data)
static bool_t __maybe_unused
is_affected_midr_range(const struct arm_cpu_capabilities *entry)
{
return MIDR_IS_CPU_MODEL_RANGE(boot_cpu_data.midr.bits, entry->midr_model,
return MIDR_IS_CPU_MODEL_RANGE(current_cpu_data.midr.bits, entry->midr_model,
entry->midr_range_min,
entry->midr_range_max);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.