Skip to content

Commit 51f559d

Browse files
Shreyas K Kwilldeacon
authored andcommitted
arm64: Enable repeat tlbi workaround on KRYO4XX gold CPUs
Add KRYO4XX gold/big cores to the list of CPUs that need the repeat TLBI workaround. Apply this to the affected KRYO4XX cores (rcpe to rfpe). The variant and revision bits are implementation defined and are different from the their Cortex CPU counterparts on which they are based on, i.e., (r0p0 to r3p0) is equivalent to (rcpe to rfpe). Signed-off-by: Shreyas K K <[email protected]> Reviewed-by: Sai Prakash Ranjan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 2de7689 commit 51f559d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Documentation/arm64/silicon-errata.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ stable kernels.
189189
+----------------+-----------------+-----------------+-----------------------------+
190190
| Qualcomm Tech. | Kryo4xx Silver | N/A | ARM64_ERRATUM_1024718 |
191191
+----------------+-----------------+-----------------+-----------------------------+
192+
| Qualcomm Tech. | Kryo4xx Gold | N/A | ARM64_ERRATUM_1286807 |
193+
+----------------+-----------------+-----------------+-----------------------------+
194+
192195
+----------------+-----------------+-----------------+-----------------------------+
193196
| Fujitsu | A64FX | E#010001 | FUJITSU_ERRATUM_010001 |
194197
+----------------+-----------------+-----------------+-----------------------------+

arch/arm64/kernel/cpu_errata.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = {
208208
#ifdef CONFIG_ARM64_ERRATUM_1286807
209209
{
210210
ERRATA_MIDR_RANGE(MIDR_CORTEX_A76, 0, 0, 3, 0),
211+
/* Kryo4xx Gold (rcpe to rfpe) => (r0p0 to r3p0) */
212+
ERRATA_MIDR_RANGE(MIDR_QCOM_KRYO_4XX_GOLD, 0xc, 0xe, 0xf, 0xe),
211213
},
212214
#endif
213215
{},

0 commit comments

Comments
 (0)