Revision 3dbcea54b3ff706c58f8e8d4470f5e5d3d24a6a0 authored by Mark Rutland on 15 March 2019, 12:22:36 UTC, committed by Catalin Marinas on 19 March 2019, 14:54:24 UTC
Fujitsu erratum 010001 applies to A64FX v0r0 and v1r0, and we try to
handle either by masking MIDR with MIDR_FUJITSU_ERRATUM_010001_MASK
before comparing it to MIDR_FUJITSU_ERRATUM_010001.

Unfortunately, MIDR_FUJITSU_ERRATUM_010001 is constructed incorrectly
using MIDR_VARIANT(), which is intended to extract the variant field
from MIDR_EL1, rather than generate the field in-place. This results in
MIDR_FUJITSU_ERRATUM_010001 being all-ones, and we only match A64FX
v0r0.

This patch uses MIDR_CPU_VAR_REV() to generate an in-place mask for the
variant field, ensuring the we match both v0r0 and v1r0.

Fixes: 3e32131abc311a5c ("arm64: Add workaround for Fujitsu A64FX erratum 010001")
Reported-by: "Okamoto, Takayuki" <tokamoto@jp.fujitsu.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[catalin.marinas@arm.com: fixed the patch author]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 6a019a9
History
File Mode Size
unittest-data
Kconfig -rw-r--r-- 2.3 KB
Makefile -rw-r--r-- 659 bytes
address.c -rw-r--r-- 24.1 KB
base.c -rw-r--r-- 58.7 KB
device.c -rw-r--r-- 8.2 KB
dynamic.c -rw-r--r-- 22.6 KB
fdt.c -rw-r--r-- 32.1 KB
fdt_address.c -rw-r--r-- 6.2 KB
irq.c -rw-r--r-- 18.6 KB
kobj.c -rw-r--r-- 3.8 KB
of_mdio.c -rw-r--r-- 13.6 KB
of_net.c -rw-r--r-- 2.4 KB
of_numa.c -rw-r--r-- 3.9 KB
of_private.h -rw-r--r-- 5.4 KB
of_reserved_mem.c -rw-r--r-- 9.9 KB
overlay.c -rw-r--r-- 34.2 KB
pdt.c -rw-r--r-- 4.8 KB
platform.c -rw-r--r-- 19.8 KB
property.c -rw-r--r-- 28.7 KB
resolver.c -rw-r--r-- 8.5 KB
unittest.c -rw-r--r-- 69.0 KB

back to top