arm64: cpu_errata: Add Kryo to Falkor 1003 errata
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 13 Dec 2017 22:19:37 +0000 (14:19 -0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 14 Jan 2018 18:49:52 +0000 (18:49 +0000)
commitbb48711800e6d7aedbf4dfd3367e0ab1270a6bea
tree41bcf243c11ea725c6faf92f0cc779b8d1fe0fc3
parent0370b31e48454d8cf11120664aedd1c51b3004cb
arm64: cpu_errata: Add Kryo to Falkor 1003 errata

The Kryo CPUs are also affected by the Falkor 1003 errata, so
we need to do the same workaround on Kryo CPUs. The MIDR is
slightly more complicated here, where the PART number is not
always the same when looking at all the bits from 15 to 4. Drop
the lower 8 bits and just look at the top 4 to see if it's '2'
and then consider those as Kryo CPUs. This covers all the
combinations without having to list them all out.

Fixes: 38fd94b0275c ("arm64: Work around Falkor erratum 1003")
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Documentation/arm64/silicon-errata.txt
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/cpu_errata.c