blob: 92b605ce4e089ca9a4b3fd4b0ba083682260e306 [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Arvind Ram Prakash23721792024-09-06 11:35:56 -05002# Copyright (c) 2014-2025, Arm Limited and Contributors. All rights reserved.
Varun Wadekar92e87082022-03-09 22:04:00 +00003# Copyright (c) 2020-2022, NVIDIA Corporation. All rights reserved.
Soby Mathewd9bdaf22014-08-14 16:19:29 +01004#
dp-arm82cb2c12017-05-03 09:38:09 +01005# SPDX-License-Identifier: BSD-3-Clause
Soby Mathewd9bdaf22014-08-14 16:19:29 +01006#
7
Boyan Karatoteve4447632022-11-17 12:01:29 +00008include ${MAKE_HELPERS_DIRECTORY}$/build_macros.mk
9
Soby Mathew5541bb32014-09-22 14:13:34 +010010# Cortex A57 specific optimisation to skip L1 cache flush when
11# cluster is powered down.
Boyan Karatoteve4447632022-11-17 12:01:29 +000012CPU_FLAG_LIST += SKIP_A57_L1_FLUSH_PWR_DWN
Soby Mathew5541bb32014-09-22 14:13:34 +010013
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000014# Flag to disable the cache non-temporal hint.
15# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060016A53_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000017CPU_FLAG_LIST += A53_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000018
19# Flag to disable the cache non-temporal hint.
20# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060021A57_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000022CPU_FLAG_LIST += A57_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000023
Varun Wadekarcd0ea182018-06-12 16:49:12 -070024# Flag to enable higher performance non-cacheable load forwarding.
25# It is disabled by default.
Boyan Karatoteve4447632022-11-17 12:01:29 +000026CPU_FLAG_LIST += A57_ENABLE_NONCACHEABLE_LOAD_FWD
Varun Wadekarcd0ea182018-06-12 16:49:12 -070027
johpow0183435632022-01-04 16:15:18 -060028WORKAROUND_CVE_2017_5715 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000029CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715
johpow0183435632022-01-04 16:15:18 -060030WORKAROUND_CVE_2018_3639 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000031CPU_FLAG_LIST += WORKAROUND_CVE_2018_3639
32CPU_FLAG_LIST += DYNAMIC_WORKAROUND_CVE_2018_3639
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060033WORKAROUND_CVE_2022_23960 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000034CPU_FLAG_LIST += WORKAROUND_CVE_2022_23960
Arvind Ram Prakash23721792024-09-06 11:35:56 -050035WORKAROUND_CVE_2024_7881 ?=1
36CPU_FLAG_LIST += WORKAROUND_CVE_2024_7881
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000037
Sona Mathewaf65cbb2024-05-20 13:48:19 -050038# Flag to disable Hardware page aggregation(HPA).
39# This flag is enabled by default.
40WORKAROUND_CVE_2024_5660 ?=1
41CPU_FLAG_LIST += WORKAROUND_CVE_2024_5660
42
43
Javier Almansa Sobrino25bbbd22020-10-23 13:22:07 +010044# Flags to indicate internal or external Last level cache
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000045# By default internal
Boyan Karatoteve4447632022-11-17 12:01:29 +000046CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000047
Boyan Karatoteve4447632022-11-17 12:01:29 +000048# CPU Errata Build flags.
49# These should be enabled by the platform if the erratum workaround needs to be
50# applied.
Varun Wadekarcd0ea182018-06-12 16:49:12 -070051
Boyan Karatoteve4447632022-11-17 12:01:29 +000052# Flag to apply erratum 794073 workaround when disabling mmu.
53CPU_FLAG_LIST += ERRATA_A9_794073
Soby Mathew5541bb32014-09-22 14:13:34 +010054
Boyan Karatoteve4447632022-11-17 12:01:29 +000055# Flag to apply erratum 816470 workaround during power down. This erratum
56# applies only to revision >= r3p0 of the Cortex A15 cpu.
57CPU_FLAG_LIST += ERRATA_A15_816470
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000058
Boyan Karatoteve4447632022-11-17 12:01:29 +000059# Flag to apply erratum 827671 workaround during reset. This erratum applies
60# only to revision >= r3p0 of the Cortex A15 cpu.
61CPU_FLAG_LIST += ERRATA_A15_827671
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000062
Boyan Karatoteve4447632022-11-17 12:01:29 +000063# Flag to apply erratum 852421 workaround during reset. This erratum applies
64# only to revision <= r1p2 of the Cortex A17 cpu.
65CPU_FLAG_LIST += ERRATA_A17_852421
Soby Mathew5541bb32014-09-22 14:13:34 +010066
Boyan Karatoteve4447632022-11-17 12:01:29 +000067# Flag to apply erratum 852423 workaround during reset. This erratum applies
68# only to revision <= r1p2 of the Cortex A17 cpu.
69CPU_FLAG_LIST += ERRATA_A17_852423
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010070
Boyan Karatoteve4447632022-11-17 12:01:29 +000071# Flag to apply erratum 855472 workaround during reset. This erratum applies
72# only to revision r0p0 of the Cortex A35 cpu.
73CPU_FLAG_LIST += ERRATA_A35_855472
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010074
Boyan Karatoteve4447632022-11-17 12:01:29 +000075# Flag to apply erratum 819472 workaround during reset. This erratum applies
76# only to revision <= r0p1 of the Cortex A53 cpu.
77CPU_FLAG_LIST += ERRATA_A53_819472
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060078
Boyan Karatoteve4447632022-11-17 12:01:29 +000079# Flag to apply erratum 824069 workaround during reset. This erratum applies
80# only to revision <= r0p2 of the Cortex A53 cpu.
81CPU_FLAG_LIST += ERRATA_A53_824069
82
83# Flag to apply erratum 826319 workaround during reset. This erratum applies
84# only to revision <= r0p2 of the Cortex A53 cpu.
85CPU_FLAG_LIST += ERRATA_A53_826319
86
87# Flag to apply erratum 827319 workaround during reset. This erratum applies
88# only to revision <= r0p2 of the Cortex A53 cpu.
89CPU_FLAG_LIST += ERRATA_A53_827319
90
91# Flag to apply erratum 835769 workaround at compile and link time. This
92# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
93# workaround can lead the linker to create "*.stub" sections.
94CPU_FLAG_LIST += ERRATA_A53_835769
95
96# Flag to apply erratum 836870 workaround during reset. This erratum applies
97# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
98# erratum workaround is enabled by default in hardware.
99CPU_FLAG_LIST += ERRATA_A53_836870
100
101# Flag to apply erratum 843419 workaround at link time.
102# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
103# workaround could lead the linker to emit "*.stub" sections which are 4kB
104# aligned.
105CPU_FLAG_LIST += ERRATA_A53_843419
106
107# Flag to apply errata 855873 during reset. This errata applies to all
108# revisions of the Cortex A53 CPU, but this firmware workaround only works
109# for revisions r0p3 and higher. Earlier revisions are taken care
110# of by the rich OS.
111CPU_FLAG_LIST += ERRATA_A53_855873
112
113# Flag to apply erratum 1530924 workaround during reset. This erratum applies
114# to all revisions of Cortex A53 cpu.
115CPU_FLAG_LIST += ERRATA_A53_1530924
116
117# Flag to apply erratum 768277 workaround during reset. This erratum applies
118# only to revision r0p0 of the Cortex A55 cpu.
119CPU_FLAG_LIST += ERRATA_A55_768277
120
121# Flag to apply erratum 778703 workaround during reset. This erratum applies
122# only to revision r0p0 of the Cortex A55 cpu.
123CPU_FLAG_LIST += ERRATA_A55_778703
124
125# Flag to apply erratum 798797 workaround during reset. This erratum applies
126# only to revision r0p0 of the Cortex A55 cpu.
127CPU_FLAG_LIST += ERRATA_A55_798797
128
129# Flag to apply erratum 846532 workaround during reset. This erratum applies
130# only to revision <= r0p1 of the Cortex A55 cpu.
131CPU_FLAG_LIST += ERRATA_A55_846532
132
133# Flag to apply erratum 903758 workaround during reset. This erratum applies
134# only to revision <= r0p1 of the Cortex A55 cpu.
135CPU_FLAG_LIST += ERRATA_A55_903758
136
137# Flag to apply erratum 1221012 workaround during reset. This erratum applies
138# only to revision <= r1p0 of the Cortex A55 cpu.
139CPU_FLAG_LIST += ERRATA_A55_1221012
140
141# Flag to apply erratum 1530923 workaround during reset. This erratum applies
142# to all revisions of Cortex A55 cpu.
143CPU_FLAG_LIST += ERRATA_A55_1530923
144
145# Flag to apply erratum 806969 workaround during reset. This erratum applies
146# only to revision r0p0 of the Cortex A57 cpu.
147CPU_FLAG_LIST += ERRATA_A57_806969
148
149# Flag to apply erratum 813419 workaround during reset. This erratum applies
150# only to revision r0p0 of the Cortex A57 cpu.
151CPU_FLAG_LIST += ERRATA_A57_813419
152
153# Flag to apply erratum 813420 workaround during reset. This erratum applies
154# only to revision r0p0 of the Cortex A57 cpu.
155CPU_FLAG_LIST += ERRATA_A57_813420
156
157# Flag to apply erratum 814670 workaround during reset. This erratum applies
158# only to revision r0p0 of the Cortex A57 cpu.
159CPU_FLAG_LIST += ERRATA_A57_814670
160
161# Flag to apply erratum 817169 workaround during power down. This erratum
162# applies only to revision <= r0p1 of the Cortex A57 cpu.
163CPU_FLAG_LIST += ERRATA_A57_817169
164
165# Flag to apply erratum 826974 workaround during reset. This erratum applies
166# only to revision <= r1p1 of the Cortex A57 cpu.
167CPU_FLAG_LIST += ERRATA_A57_826974
168
169# Flag to apply erratum 826977 workaround during reset. This erratum applies
170# only to revision <= r1p1 of the Cortex A57 cpu.
171CPU_FLAG_LIST += ERRATA_A57_826977
172
173# Flag to apply erratum 828024 workaround during reset. This erratum applies
174# only to revision <= r1p1 of the Cortex A57 cpu.
175CPU_FLAG_LIST += ERRATA_A57_828024
176
177# Flag to apply erratum 829520 workaround during reset. This erratum applies
178# only to revision <= r1p2 of the Cortex A57 cpu.
179CPU_FLAG_LIST += ERRATA_A57_829520
180
181# Flag to apply erratum 833471 workaround during reset. This erratum applies
182# only to revision <= r1p2 of the Cortex A57 cpu.
183CPU_FLAG_LIST += ERRATA_A57_833471
184
185# Flag to apply erratum 855972 workaround during reset. This erratum applies
186# only to revision <= r1p3 of the Cortex A57 cpu.
187CPU_FLAG_LIST += ERRATA_A57_859972
188
189# Flag to apply erratum 1319537 workaround during reset. This erratum applies
190# to all revisions of Cortex A57 cpu.
191CPU_FLAG_LIST += ERRATA_A57_1319537
192
193# Flag to apply erratum 855971 workaround during reset. This erratum applies
194# only to revision <= r0p3 of the Cortex A72 cpu.
195CPU_FLAG_LIST += ERRATA_A72_859971
196
197# Flag to apply erratum 1319367 workaround during reset. This erratum applies
198# to all revisions of Cortex A72 cpu.
199CPU_FLAG_LIST += ERRATA_A72_1319367
200
201# Flag to apply erratum 852427 workaround during reset. This erratum applies
202# only to revision r0p0 of the Cortex A73 cpu.
203CPU_FLAG_LIST += ERRATA_A73_852427
204
205# Flag to apply erratum 855423 workaround during reset. This erratum applies
206# only to revision <= r0p1 of the Cortex A73 cpu.
207CPU_FLAG_LIST += ERRATA_A73_855423
208
209# Flag to apply erratum 764081 workaround during reset. This erratum applies
210# only to revision <= r0p0 of the Cortex A75 cpu.
211CPU_FLAG_LIST += ERRATA_A75_764081
212
213# Flag to apply erratum 790748 workaround during reset. This erratum applies
214# only to revision <= r0p0 of the Cortex A75 cpu.
215CPU_FLAG_LIST += ERRATA_A75_790748
216
217# Flag to apply erratum 1073348 workaround during reset. This erratum applies
218# only to revision <= r1p0 of the Cortex A76 cpu.
219CPU_FLAG_LIST += ERRATA_A76_1073348
220
221# Flag to apply erratum 1130799 workaround during reset. This erratum applies
222# only to revision <= r2p0 of the Cortex A76 cpu.
223CPU_FLAG_LIST += ERRATA_A76_1130799
224
225# Flag to apply erratum 1220197 workaround during reset. This erratum applies
226# only to revision <= r2p0 of the Cortex A76 cpu.
227CPU_FLAG_LIST += ERRATA_A76_1220197
228
229# Flag to apply erratum 1257314 workaround during reset. This erratum applies
230# only to revision <= r3p0 of the Cortex A76 cpu.
231CPU_FLAG_LIST += ERRATA_A76_1257314
232
233# Flag to apply erratum 1262606 workaround during reset. This erratum applies
234# only to revision <= r3p0 of the Cortex A76 cpu.
235CPU_FLAG_LIST += ERRATA_A76_1262606
236
237# Flag to apply erratum 1262888 workaround during reset. This erratum applies
238# only to revision <= r3p0 of the Cortex A76 cpu.
239CPU_FLAG_LIST += ERRATA_A76_1262888
240
241# Flag to apply erratum 1275112 workaround during reset. This erratum applies
242# only to revision <= r3p0 of the Cortex A76 cpu.
243CPU_FLAG_LIST += ERRATA_A76_1275112
244
245# Flag to apply erratum 1286807 workaround during reset. This erratum applies
246# only to revision <= r3p0 of the Cortex A76 cpu.
247CPU_FLAG_LIST += ERRATA_A76_1286807
248
249# Flag to apply erratum 1791580 workaround during reset. This erratum applies
250# only to revision <= r4p0 of the Cortex A76 cpu.
251CPU_FLAG_LIST += ERRATA_A76_1791580
252
253# Flag to apply erratum 1165522 workaround during reset. This erratum applies
254# to all revisions of Cortex A76 cpu.
255CPU_FLAG_LIST += ERRATA_A76_1165522
256
257# Flag to apply erratum 1868343 workaround during reset. This erratum applies
258# only to revision <= r4p0 of the Cortex A76 cpu.
259CPU_FLAG_LIST += ERRATA_A76_1868343
260
261# Flag to apply erratum 1946160 workaround during reset. This erratum applies
262# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
263CPU_FLAG_LIST += ERRATA_A76_1946160
264
265# Flag to apply erratum 2743102 workaround during powerdown. This erratum
266# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open.
267CPU_FLAG_LIST += ERRATA_A76_2743102
268
269# Flag to apply erratum 1508412 workaround during reset. This erratum applies
270# only to revision <= r1p0 of the Cortex A77 cpu.
271CPU_FLAG_LIST += ERRATA_A77_1508412
272
273# Flag to apply erratum 1925769 workaround during reset. This erratum applies
274# only to revision <= r1p1 of the Cortex A77 cpu.
275CPU_FLAG_LIST += ERRATA_A77_1925769
276
277# Flag to apply erratum 1946167 workaround during reset. This erratum applies
278# only to revision <= r1p1 of the Cortex A77 cpu.
279CPU_FLAG_LIST += ERRATA_A77_1946167
280
281# Flag to apply erratum 1791578 workaround during reset. This erratum applies
282# to revisions r0p0, r1p0, and r1p1, it is still open.
283CPU_FLAG_LIST += ERRATA_A77_1791578
284
285# Flag to apply erratum 2356587 workaround during reset. This erratum applies
286# to revisions r0p0, r1p0, and r1p1, it is still open.
287CPU_FLAG_LIST += ERRATA_A77_2356587
288
289# Flag to apply erratum 1800714 workaround during reset. This erratum applies
290# to revisions <= r1p1 of the Cortex A77 cpu.
291CPU_FLAG_LIST += ERRATA_A77_1800714
292
293# Flag to apply erratum 2743100 workaround during power down. This erratum
294# applies to revisions r0p0, r1p0, and r1p1, it is still open.
295CPU_FLAG_LIST += ERRATA_A77_2743100
296
297# Flag to apply erratum 1688305 workaround during reset. This erratum applies
298# to revisions r0p0 - r1p0 of the A78 cpu.
299CPU_FLAG_LIST += ERRATA_A78_1688305
300
301# Flag to apply erratum 1941498 workaround during reset. This erratum applies
302# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
303CPU_FLAG_LIST += ERRATA_A78_1941498
304
305# Flag to apply erratum 1951500 workaround during reset. This erratum applies
306# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
307# well but there is no workaround for that revision.
308CPU_FLAG_LIST += ERRATA_A78_1951500
309
310# Flag to apply erratum 1821534 workaround during reset. This erratum applies
311# to revisions r0p0 and r1p0 of the A78 cpu.
312CPU_FLAG_LIST += ERRATA_A78_1821534
313
314# Flag to apply erratum 1952683 workaround during reset. This erratum applies
315# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
316CPU_FLAG_LIST += ERRATA_A78_1952683
317
Boyan Karatoteve4447632022-11-17 12:01:29 +0000318# Flag to apply erratum 2242635 workaround during reset. This erratum applies
319# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
320# present in r0p0 as well but there is no workaround for that revision.
321CPU_FLAG_LIST += ERRATA_A78_2242635
322
323# Flag to apply erratum 2376745 workaround during reset. This erratum applies
324# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
325CPU_FLAG_LIST += ERRATA_A78_2376745
326
327# Flag to apply erratum 2395406 workaround during reset. This erratum applies
328# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
329CPU_FLAG_LIST += ERRATA_A78_2395406
330
Sona Mathewab062f02023-03-14 16:50:36 -0500331# Flag to apply erratum 2712571 workaround for non-arm interconnect ip. This
332# erratum applies to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu.
333# It is fixed in r1p2.
334CPU_FLAG_LIST += ERRATA_A78_2712571
335
Boyan Karatoteve4447632022-11-17 12:01:29 +0000336# Flag to apply erratum 2742426 workaround during reset. This erratum
337# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
338# open.
339CPU_FLAG_LIST += ERRATA_A78_2742426
340
341# Flag to apply erratum 2772019 workaround during powerdown. This erratum
342# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
343# open.
344CPU_FLAG_LIST += ERRATA_A78_2772019
345
346# Flag to apply erratum 2779479 workaround during reset. This erratum applies
347# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open.
348CPU_FLAG_LIST += ERRATA_A78_2779479
349
350# Flag to apply erratum 1941500 workaround during reset. This erratum applies
351# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
352CPU_FLAG_LIST += ERRATA_A78_AE_1941500
353
354# Flag to apply erratum 1951502 workaround during reset. This erratum applies
355# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
356CPU_FLAG_LIST += ERRATA_A78_AE_1951502
357
358# Flag to apply erratum 2376748 workaround during reset. This erratum applies
Sona Mathewc8146192023-10-10 16:48:57 -0500359# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000360CPU_FLAG_LIST += ERRATA_A78_AE_2376748
361
362# Flag to apply erratum 2395408 workaround during reset. This erratum applies
363# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
364CPU_FLAG_LIST += ERRATA_A78_AE_2395408
365
Bipin Ravi672eb212023-03-14 10:04:23 -0500366# Flag to apply erratum 1827430 workaround during reset. This erratum applies
367# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
368CPU_FLAG_LIST += ERRATA_A78C_1827430
369
Bipin Ravib01a59e2023-03-14 11:03:24 -0500370# Flag to apply erratum 1827440 workaround during reset. This erratum applies
371# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
372CPU_FLAG_LIST += ERRATA_A78C_1827440
373
Sona Mathewab062f02023-03-14 16:50:36 -0500374# Flag to apply erratum 2712574 workaround for non-arm interconnect ip. This
375# erratum applies to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu.
376# It is still open.
377CPU_FLAG_LIST += ERRATA_A78_AE_2712574
378
Boyan Karatoteve4447632022-11-17 12:01:29 +0000379# Flag to apply erratum 2242638 workaround during reset. This erratum applies
380# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
381CPU_FLAG_LIST += ERRATA_A78C_2242638
382
383# Flag to apply erratum 2376749 workaround during reset. This erratum applies
384# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
385CPU_FLAG_LIST += ERRATA_A78C_2376749
386
387# Flag to apply erratum 2395411 workaround during reset. This erratum applies
388# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
389CPU_FLAG_LIST += ERRATA_A78C_2395411
390
Bipin Ravi68cac6a2023-12-20 15:40:44 -0600391# Flag to apply erratum 2683027 workaround during reset. This erratum applies
392# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
393CPU_FLAG_LIST += ERRATA_A78C_2683027
394
Sona Mathewab062f02023-03-14 16:50:36 -0500395# Flag to apply erratum 2712575 workaround for non-arm interconnect ip. This
396# erratum applies to revisions r0p1 and r0p2 of the A78C cpu.
397# It is still open.
398CPU_FLAG_LIST += ERRATA_A78C_2712575
399
Sona Mathew81d40942023-11-14 14:00:48 -0600400# Flag to apply erratum 2743232 workaround during reset. This erratum applies
401# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
402CPU_FLAG_LIST += ERRATA_A78C_2743232
403
Boyan Karatoteve4447632022-11-17 12:01:29 +0000404# Flag to apply erratum 2772121 workaround during powerdown. This erratum
405# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open.
406CPU_FLAG_LIST += ERRATA_A78C_2772121
407
408# Flag to apply erratum 2779484 workaround during reset. This erratum
409# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
410CPU_FLAG_LIST += ERRATA_A78C_2779484
411
412# Flag to apply erratum 1821534 workaround during reset. This erratum applies
413# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
414CPU_FLAG_LIST += ERRATA_X1_1821534
415
416# Flag to apply erratum 1688305 workaround during reset. This erratum applies
417# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
418CPU_FLAG_LIST += ERRATA_X1_1688305
419
420# Flag to apply erratum 1827429 workaround during reset. This erratum applies
421# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
422CPU_FLAG_LIST += ERRATA_X1_1827429
423
424# Flag to apply T32 CLREX workaround during reset. This erratum applies
425# only to r0p0 and r1p0 of the Neoverse N1 cpu.
426CPU_FLAG_LIST += ERRATA_N1_1043202
427
428# Flag to apply erratum 1073348 workaround during reset. This erratum applies
429# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
430CPU_FLAG_LIST += ERRATA_N1_1073348
431
432# Flag to apply erratum 1130799 workaround during reset. This erratum applies
433# only to revision <= r2p0 of the Neoverse N1 cpu.
434CPU_FLAG_LIST += ERRATA_N1_1130799
435
436# Flag to apply erratum 1165347 workaround during reset. This erratum applies
437# only to revision <= r2p0 of the Neoverse N1 cpu.
438CPU_FLAG_LIST += ERRATA_N1_1165347
439
440# Flag to apply erratum 1207823 workaround during reset. This erratum applies
441# only to revision <= r2p0 of the Neoverse N1 cpu.
442CPU_FLAG_LIST += ERRATA_N1_1207823
443
444# Flag to apply erratum 1220197 workaround during reset. This erratum applies
445# only to revision <= r2p0 of the Neoverse N1 cpu.
446CPU_FLAG_LIST += ERRATA_N1_1220197
447
448# Flag to apply erratum 1257314 workaround during reset. This erratum applies
449# only to revision <= r3p0 of the Neoverse N1 cpu.
450CPU_FLAG_LIST += ERRATA_N1_1257314
451
452# Flag to apply erratum 1262606 workaround during reset. This erratum applies
453# only to revision <= r3p0 of the Neoverse N1 cpu.
454CPU_FLAG_LIST += ERRATA_N1_1262606
455
456# Flag to apply erratum 1262888 workaround during reset. This erratum applies
457# only to revision <= r3p0 of the Neoverse N1 cpu.
458CPU_FLAG_LIST += ERRATA_N1_1262888
459
460# Flag to apply erratum 1275112 workaround during reset. This erratum applies
461# only to revision <= r3p0 of the Neoverse N1 cpu.
462CPU_FLAG_LIST += ERRATA_N1_1275112
463
464# Flag to apply erratum 1315703 workaround during reset. This erratum applies
465# to revisions before r3p1 of the Neoverse N1 cpu.
466CPU_FLAG_LIST += ERRATA_N1_1315703
467
468# Flag to apply erratum 1542419 workaround during reset. This erratum applies
469# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
470CPU_FLAG_LIST += ERRATA_N1_1542419
471
472# Flag to apply erratum 1868343 workaround during reset. This erratum applies
473# to revision <= r4p0 of the Neoverse N1 cpu.
474CPU_FLAG_LIST += ERRATA_N1_1868343
475
476# Flag to apply erratum 1946160 workaround during reset. This erratum applies
477# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
478# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
479CPU_FLAG_LIST += ERRATA_N1_1946160
480
481# Flag to apply erratum 2743102 workaround during powerdown. This erratum
482# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open.
483CPU_FLAG_LIST += ERRATA_N1_2743102
484
485# Flag to apply erratum 1618635 workaround during reset. This erratum applies
486# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
487CPU_FLAG_LIST += ERRATA_V1_1618635
488
489# Flag to apply erratum 1774420 workaround during reset. This erratum applies
490# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
491CPU_FLAG_LIST += ERRATA_V1_1774420
492
493# Flag to apply erratum 1791573 workaround during reset. This erratum applies
494# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
495CPU_FLAG_LIST += ERRATA_V1_1791573
496
497# Flag to apply erratum 1852267 workaround during reset. This erratum applies
498# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
499CPU_FLAG_LIST += ERRATA_V1_1852267
500
501# Flag to apply erratum 1925756 workaround during reset. This needs to be
502# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
503CPU_FLAG_LIST += ERRATA_V1_1925756
504
505# Flag to apply erratum 1940577 workaround during reset. This erratum applies
506# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
507CPU_FLAG_LIST += ERRATA_V1_1940577
508
509# Flag to apply erratum 1966096 workaround during reset. This erratum applies
510# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
511# exists in r0p0 as well but there is no workaround for that revision.
512CPU_FLAG_LIST += ERRATA_V1_1966096
513
514# Flag to apply erratum 2139242 workaround during reset. This erratum applies
515# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
516CPU_FLAG_LIST += ERRATA_V1_2139242
517
Boyan Karatoteve4447632022-11-17 12:01:29 +0000518# Flag to apply erratum 2216392 workaround during reset. This erratum applies
519# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
520# issue exists in r0p0 as well but there is no workaround for that revision.
521CPU_FLAG_LIST += ERRATA_V1_2216392
522
523# Flag to apply erratum 2294912 workaround during reset. This erratum applies
Sona Mathewab2b56d2023-10-16 15:12:30 -0500524# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000525CPU_FLAG_LIST += ERRATA_V1_2294912
526
Sona Mathew71ed9172023-11-07 13:46:15 -0600527# Flag to apply erratum 2348377 workaround during reset. This erratum applies
528# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is fixed in r1p2.
529CPU_FLAG_LIST += ERRATA_V1_2348377
530
Boyan Karatoteve4447632022-11-17 12:01:29 +0000531# Flag to apply erratum 2372203 workaround during reset. This erratum applies
532# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
533CPU_FLAG_LIST += ERRATA_V1_2372203
534
Sona Mathewab062f02023-03-14 16:50:36 -0500535# Flag to apply erratum 2701953 workaround to non-arm interconnect ip. This
536# erratum applies to revisions r0p0, r1p0, r1p1 of the Neoverse V1 cpu,
537# it is fixed in r1p2.
538CPU_FLAG_LIST += ERRATA_V1_2701953
539
Boyan Karatoteve4447632022-11-17 12:01:29 +0000540# Flag to apply erratum 2743093 workaround during powerdown. This erratum
541# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
542# still open.
543CPU_FLAG_LIST += ERRATA_V1_2743093
544
545# Flag to apply erratum 2743233 workaround during powerdown. This erratum
546# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
547# still open.
548CPU_FLAG_LIST += ERRATA_V1_2743233
549
550# Flag to apply erratum 2779461 workaround during powerdown. This erratum
551# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
552# still open.
553CPU_FLAG_LIST += ERRATA_V1_2779461
554
Govindraj Raja5f32fd22025-02-07 14:31:39 -0600555# Flag to apply erratum 2970647 workaround during reset. This erratum applies
556# to revisions r0p0 of the Neoverse V3 cpu and is fixed in r0p1.
557CPU_FLAG_LIST += ERRATA_V3_2970647
558
Govindraj Rajae25fc9d2025-01-21 19:20:29 -0600559# Flag to apply erratum 3701767 workaround during context save/restore of
560# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 and r0p2 of
561# the Neoverse V3 cpu and is still open.
562CPU_FLAG_LIST += ERRATA_V3_3701767
563
John Powell44673482025-06-09 13:14:33 -0500564# Flag to apply erratum 1901946 workaround during reset. This erratum applies
565# to revision r1p0 and is fixed in r2p0.
566CPU_FLAG_LIST += ERRATA_A710_1901946
567
John Powelldf067c02025-06-09 13:46:11 -0500568# Flag to apply erratum 1916945 workaround during reset. This erratum applies
569# to revisions r0p0 and r1p0 of the Cortex-A710 CPU and is fixed in r2p0.
570CPU_FLAG_LIST += ERRATA_A710_1916945
571
John Powelld91c4172025-06-09 14:32:39 -0500572# Flag to apply erratum 1917258 workaround during reset. This erratum applies
573# to revisions r0p0 and r1p0 of the Cortex-A710 CPU and is fixed in r2p0.
574CPU_FLAG_LIST += ERRATA_A710_1917258
575
John Powellcb2702c2025-06-09 17:06:55 -0500576# Flag to apply erratum 1927200 workaround during reset. This erratum applies
577# to revisions r0p0 and r1p0 of the Cortex-A710 CPU and is fixed in r2p0.
578CPU_FLAG_LIST += ERRATA_A710_1927200
579
Boyan Karatoteve4447632022-11-17 12:01:29 +0000580# Flag to apply erratum 1987031 workaround during reset. This erratum applies
581# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
582CPU_FLAG_LIST += ERRATA_A710_1987031
583
584# Flag to apply erratum 2081180 workaround during reset. This erratum applies
585# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
586CPU_FLAG_LIST += ERRATA_A710_2081180
587
588# Flag to apply erratum 2083908 workaround during reset. This erratum applies
589# to revision r2p0 of the Cortex-A710 cpu and is still open.
590CPU_FLAG_LIST += ERRATA_A710_2083908
591
Boyan Karatoteve4447632022-11-17 12:01:29 +0000592# Flag to apply erratum 2055002 workaround during reset. This erratum applies
593# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
594CPU_FLAG_LIST += ERRATA_A710_2055002
595
596# Flag to apply erratum 2017096 workaround during reset. This erratum applies
597# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
598CPU_FLAG_LIST += ERRATA_A710_2017096
599
600# Flag to apply erratum 2267065 workaround during reset. This erratum applies
601# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
602CPU_FLAG_LIST += ERRATA_A710_2267065
603
604# Flag to apply erratum 2136059 workaround during reset. This erratum applies
605# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
606CPU_FLAG_LIST += ERRATA_A710_2136059
607
608# Flag to apply erratum 2147715 workaround during reset. This erratum applies
609# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
610CPU_FLAG_LIST += ERRATA_A710_2147715
611
612# Flag to apply erratum 2216384 workaround during reset. This erratum applies
613# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
614CPU_FLAG_LIST += ERRATA_A710_2216384
615
616# Flag to apply erratum 2282622 workaround during reset. This erratum applies
617# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
618# open.
619CPU_FLAG_LIST += ERRATA_A710_2282622
620
621# Flag to apply erratum 2291219 workaround during reset. This erratum applies
622# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
623CPU_FLAG_LIST += ERRATA_A710_2291219
624
625# Flag to apply erratum 2008768 workaround during reset. This erratum applies
626# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
627CPU_FLAG_LIST += ERRATA_A710_2008768
628
629# Flag to apply erratum 2371105 workaround during reset. This erratum applies
630# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
631CPU_FLAG_LIST += ERRATA_A710_2371105
632
Sona Mathewab062f02023-03-14 16:50:36 -0500633# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
634# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
635# and is still open.
636CPU_FLAG_LIST += ERRATA_A710_2701952
637
Bipin Ravid7bc2cb2023-10-17 07:55:55 -0500638# Flag to apply erratum 2742423 workaround during reset. This erratum applies
639# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
640# open.
641CPU_FLAG_LIST += ERRATA_A710_2742423
642
Boyan Karatoteve4447632022-11-17 12:01:29 +0000643# Flag to apply erratum 2768515 workaround during power down. This erratum
644# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
645# still open.
646CPU_FLAG_LIST += ERRATA_A710_2768515
647
Sona Mathewc9508d62023-12-08 20:52:17 -0600648# Flag to apply erratum 2778471 workaround during reset. This erratum applies
649# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
650# open.
651CPU_FLAG_LIST += ERRATA_A710_2778471
652
Govindraj Raja463b5b42025-01-21 12:32:14 -0600653# Flag to apply erratum 3701772 workaround during context save/restore of
654# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0, r2p1
655# of the Cortex-A710 cpu and is still open.
656CPU_FLAG_LIST += ERRATA_A710_3701772
657
Boyan Karatoteve4447632022-11-17 12:01:29 +0000658# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500659# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000660CPU_FLAG_LIST += ERRATA_N2_2002655
661
Bipin Ravi74bfe312023-08-29 13:59:09 -0500662# Flag to apply erratum 2009478 workaround during powerdown. This erratum
663# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
664CPU_FLAG_LIST += ERRATA_N2_2009478
665
Boyan Karatoteve4447632022-11-17 12:01:29 +0000666# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500667# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000668CPU_FLAG_LIST += ERRATA_N2_2067956
669
670# Flag to apply erratum 2025414 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500671# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000672CPU_FLAG_LIST += ERRATA_N2_2025414
673
674# Flag to apply erratum 2189731 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500675# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000676CPU_FLAG_LIST += ERRATA_N2_2189731
677
678# Flag to apply erratum 2138956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500679# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000680CPU_FLAG_LIST += ERRATA_N2_2138956
681
Boyan Karatoteve4447632022-11-17 12:01:29 +0000682# Flag to apply erratum 2242415 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500683# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000684CPU_FLAG_LIST += ERRATA_N2_2242415
685
686# Flag to apply erratum 2138958 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500687# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000688CPU_FLAG_LIST += ERRATA_N2_2138958
689
690# Flag to apply erratum 2242400 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500691# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000692CPU_FLAG_LIST += ERRATA_N2_2242400
693
694# Flag to apply erratum 2280757 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500695# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000696CPU_FLAG_LIST += ERRATA_N2_2280757
697
Bipin Ravi68085ad2023-10-17 06:21:15 -0500698# Flag to apply erratum 2326639 workaroud during powerdown. This erratum
Boyan Karatoteve4447632022-11-17 12:01:29 +0000699# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
700CPU_FLAG_LIST += ERRATA_N2_2326639
701
Bipin Ravi68085ad2023-10-17 06:21:15 -0500702# Flag to apply erratum 2340933 workaroud during reset. This erratum
703# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
704CPU_FLAG_LIST += ERRATA_N2_2340933
705
Bipin Ravi6cb8be12023-10-17 05:56:01 -0500706# Flag to apply erratum 2346952 workaround during reset. This erratum applies
707# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
708CPU_FLAG_LIST += ERRATA_N2_2346952
709
Boyan Karatoteve4447632022-11-17 12:01:29 +0000710# Flag to apply erratum 2376738 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500711# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000712CPU_FLAG_LIST += ERRATA_N2_2376738
713
714# Flag to apply erratum 2388450 workaround during reset. This erratum applies
715# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
716CPU_FLAG_LIST += ERRATA_N2_2388450
717
Sona Mathewab062f02023-03-14 16:50:36 -0500718# Flag to apply erratum 2728475 workaround for non-arm interconnect ip. This
719# erratum applies to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in
720# r0p3.
721CPU_FLAG_LIST += ERRATA_N2_2728475
722
Arvind Ram Prakasheb440352023-07-05 17:24:23 -0500723# Flag to apply erratum 2743014 workaround during reset. This erratum applies
724# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
725CPU_FLAG_LIST += ERRATA_N2_2743014
726
Boyan Karatoteve4447632022-11-17 12:01:29 +0000727# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
728# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
729CPU_FLAG_LIST += ERRATA_N2_2743089
730
Arvind Ram Prakash12d28062023-07-17 14:46:14 -0500731# Flag to apply erratum 2779511 workaround during reset. This erratum applies
732# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
733CPU_FLAG_LIST += ERRATA_N2_2779511
734
Govindraj Rajaadea6e52025-01-21 18:56:25 -0600735# Flag to apply erratum 3701773 workaround during context save/restore of
736# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
737# of the Neoverse N2 cpu and is still open.
738CPU_FLAG_LIST += ERRATA_N2_3701773
739
Govindraj Rajafded8392025-01-21 19:03:34 -0600740# Flag to apply erratum 3699563 workaround during context save/restore of
741# ICH_VMCR_EL2 reg. This erratum applies to revision r0p0 of the Neoverse N3
742# cpu and is still open.
743CPU_FLAG_LIST += ERRATA_N3_3699563
744
John Powellce64ea62025-07-11 19:10:52 -0500745# Flag to apply erratum 1901946 workaround during reset. This erratum applies
746# only to revision r1p0 of the Cortex-X2 cpu, it is fixed in r2p0.
747CPU_FLAG_LIST += ERRATA_X2_1901946
748
John Powellff879c52025-07-11 19:27:15 -0500749# Flag to apply erratum 1916945 workaround during reset. This erratum applies
750# to revisions r0p0 and r1p0 of the Cortex-X2 cpu, it is fixed in r2p0.
751CPU_FLAG_LIST += ERRATA_X2_1916945
752
John Powellccee7fa2025-07-11 21:06:49 -0500753# Flag to apply erratum 1917258 workaround during reset. This erratum applies
754# to revisions r0p0 and r1p0 of the Cortex-X2 cpu, it is fixed in r2p0.
755CPU_FLAG_LIST += ERRATA_X2_1917258
756
John Powelle2365482025-07-11 21:26:00 -0500757# Flag to apply erratum 1927200 workaround during reset. This erratum applies
758# to revisions r0p0 and r1p0 of the Cortex-X2 cpu, it is fixed in r2p0.
759CPU_FLAG_LIST += ERRATA_X2_1927200
760
John Powell2c0467a2025-07-11 21:43:58 -0500761# Flag to apply erratum 1934260 workaround during reset. This erratum applies
762# only to revision r1p0 of the Cortex-X2 cpu, it is fixed in r2p0.
763CPU_FLAG_LIST += ERRATA_X2_1934260
764
Boyan Karatoteve4447632022-11-17 12:01:29 +0000765# Flag to apply erratum 2002765 workaround during reset. This erratum applies
John Powellf753b4a2025-07-14 13:38:14 -0500766# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
767# r2p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000768CPU_FLAG_LIST += ERRATA_X2_2002765
769
Boyan Karatoteve4447632022-11-17 12:01:29 +0000770# Flag to apply erratum 2017096 workaround during reset. This erratum applies
771# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
772# r2p1.
773CPU_FLAG_LIST += ERRATA_X2_2017096
774
775# Flag to apply erratum 2081180 workaround during reset. This erratum applies
776# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
777# r2p1.
778CPU_FLAG_LIST += ERRATA_X2_2081180
779
John Powellf753b4a2025-07-14 13:38:14 -0500780# Flag to apply erratum 2083908 workaround during reset. This erratum applies
781# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
782CPU_FLAG_LIST += ERRATA_X2_2083908
783
John Powella8e4d5a2025-07-11 21:55:56 -0500784# Flag to apply erratum 2136059 workaround during reset. This erratum applies
785# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
786# r2p1.
787CPU_FLAG_LIST += ERRATA_X2_2136059
788
John Powellf753b4a2025-07-14 13:38:14 -0500789# Flag to apply erratum 2147715 workaround during reset. This erratum applies
790# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
791CPU_FLAG_LIST += ERRATA_X2_2147715
792
Boyan Karatoteve4447632022-11-17 12:01:29 +0000793# Flag to apply erratum 2216384 workaround during reset. This erratum applies
794# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
795# r2p1.
796CPU_FLAG_LIST += ERRATA_X2_2216384
797
John Powell41b96972025-07-11 22:11:49 -0500798# Flag to apply erratum 2267065 workaround during reset. This erratum applies
799# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
800# r2p1.
801CPU_FLAG_LIST += ERRATA_X2_2267065
802
Boyan Karatoteve4447632022-11-17 12:01:29 +0000803# Flag to apply erratum 2282622 workaround during reset. This erratum applies
John Powellf753b4a2025-07-14 13:38:14 -0500804# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000805CPU_FLAG_LIST += ERRATA_X2_2282622
806
John Powell989c7982025-07-11 22:45:42 -0500807# Flag to apply erratum 2291219 workaround during reset. This erratum applies
808# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
809# r2p1.
810CPU_FLAG_LIST += ERRATA_X2_2291219
811
Boyan Karatoteve4447632022-11-17 12:01:29 +0000812# Flag to apply erratum 2371105 workaround during reset. This erratum applies
John Powellf753b4a2025-07-14 13:38:14 -0500813# to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000814CPU_FLAG_LIST += ERRATA_X2_2371105
815
John Powellf753b4a2025-07-14 13:38:14 -0500816# Flag to apply erratum 2701952 workaround for non-Arm interconnect IP. This
817# erratum applies to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu
Sona Mathewab062f02023-03-14 16:50:36 -0500818# and is still open.
819CPU_FLAG_LIST += ERRATA_X2_2701952
820
Bipin Ravife06e112023-10-17 09:11:19 -0500821# Flag to apply erratum 2742423 workaround during reset. This erratum applies
822# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
823CPU_FLAG_LIST += ERRATA_X2_2742423
824
Boyan Karatoteve4447632022-11-17 12:01:29 +0000825# Flag to apply erratum 2768515 workaround during power down. This erratum
John Powellf753b4a2025-07-14 13:38:14 -0500826# applies to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
Boyan Karatoteve4447632022-11-17 12:01:29 +0000827# still open.
828CPU_FLAG_LIST += ERRATA_X2_2768515
829
Sona Mathewb01a93d2023-12-09 13:09:30 -0600830# Flag to apply erratum 2778471 workaround during reset. This erratum applies
John Powellf753b4a2025-07-14 13:38:14 -0500831# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Sona Mathewb01a93d2023-12-09 13:09:30 -0600832CPU_FLAG_LIST += ERRATA_X2_2778471
833
Govindraj Rajaae6c7c92025-01-21 18:02:51 -0600834# Flag to apply erratum 3701772 workaround during context save/restore of
835# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0 and r2p1
836# of the Cortex-X2 cpu and is still open.
837CPU_FLAG_LIST += ERRATA_X2_3701772
838
Bipin Ravia65c5ba2023-12-20 14:53:37 -0600839# Flag to apply erratum 2266875 workaround during reset. This erratum applies
840# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
841CPU_FLAG_LIST += ERRATA_X3_2266875
842
Bipin Ravi3f9df2c2023-12-20 14:32:02 -0600843# Flag to apply erratum 2302506 workaround during reset. This erratum applies
844# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
845CPU_FLAG_LIST += ERRATA_X3_2302506
846
Boyan Karatoteve4447632022-11-17 12:01:29 +0000847# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
848# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
849CPU_FLAG_LIST += ERRATA_X3_2313909
850
Bipin Ravi7f69a402024-02-27 15:13:17 -0600851# Flag to apply erratum 2372204 workaround during reset. This erratum applies
852# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
853CPU_FLAG_LIST += ERRATA_X3_2372204
854
Boyan Karatoteve4447632022-11-17 12:01:29 +0000855# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
Sona Mathewf589a2a2024-03-15 11:07:33 -0500856# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000857CPU_FLAG_LIST += ERRATA_X3_2615812
858
Bipin Ravic1aa3fa2024-01-25 15:38:46 -0600859# Flag to apply erratum 2641945 workaround on reset. This erratum applies
860# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
861CPU_FLAG_LIST += ERRATA_X3_2641945
862
Sona Mathew106c4282024-02-21 15:07:30 -0600863# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
864# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
865CPU_FLAG_LIST += ERRATA_X3_2701951
866
Sona Mathew5b0e4432023-09-05 14:10:03 -0500867# Flag to apply erratum 2742421 workaround on reset. This erratum applies
868# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
869CPU_FLAG_LIST += ERRATA_X3_2742421
870
Harrison Mutaif43e9f52023-12-12 11:17:19 +0000871# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
872# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
873CPU_FLAG_LIST += ERRATA_X3_2743088
874
Govindraj Raja77feb742025-01-21 18:12:35 -0600875# Flag to apply erratum 3701769 workaround during context save/restore of
876# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p1 and r1p2
877# of the Cortex-X3 cpu and is still open.
878CPU_FLAG_LIST += ERRATA_X3_3701769
879
Sona Mathew355ce0a2023-11-06 13:48:22 -0600880# Flag to apply erratum 2779509 workaround on reset. This erratum applies
881# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
882CPU_FLAG_LIST += ERRATA_X3_2779509
883
Arvind Ram Prakash42920aa2025-07-10 09:59:00 -0500884# Flag to apply erratum 3213672 workaround on reset. This erratum applies
885# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu.
886# It is still open.
887CPU_FLAG_LIST += ERRATA_X3_3213672
888
Arvind Ram Prakashf828efe2025-06-30 16:22:46 -0500889# Flag to apply erratum 3692984 workaround on reset. This erratum applies
890# to revisions r0p0, r1p0, r1p1, r1p2 of the Cortex-X3 cpu and is still open.
891CPU_FLAG_LIST += ERRATA_X3_3692984
892
Arvind Ram Prakash6a464ee2025-07-03 16:30:03 -0500893# Flag to apply erratum 3827463 workaround on reset. This erratum applies
894# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu. It is fixed in r1p2.
895CPU_FLAG_LIST += ERRATA_X3_3827463
896
Sona Mathewcc41b562024-03-01 13:36:21 -0600897# Flag to apply erratum 2701112 workaround for platforms that do not use an
898# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
899# cpu and is fixed in r0p1.
900CPU_FLAG_LIST += ERRATA_X4_2701112
901
Arvind Ram Prakash4a97ff52024-08-05 16:04:37 -0500902# Flag to apply erratum 2726228 workaround during warmboot. This erratum
903# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
904CPU_FLAG_LIST += ERRATA_X4_2726228
905
Bipin Ravic833ca62024-04-10 15:33:21 -0500906# Flag to apply erratum 2740089 workaround during powerdown. This erratum
907# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
908CPU_FLAG_LIST += ERRATA_X4_2740089
909
Sona Mathew47312112024-04-05 16:27:07 -0500910# Flag to apply erratum 2763018 workaround on reset. This erratum applies
911# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
912CPU_FLAG_LIST += ERRATA_X4_2763018
913
Sona Mathew1e4480b2024-07-16 14:34:42 -0500914# Flag to apply erratum 2816013 workaround on reset. This erratum applies
915# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
916CPU_FLAG_LIST += ERRATA_X4_2816013
917
Arvind Ram Prakash609d08a2024-08-26 17:04:27 -0500918# Flag to apply erratum 2897503 workaround on reset. This erratum applies
919# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
920CPU_FLAG_LIST += ERRATA_X4_2897503
921
Arvind Ram Prakashcc461662024-11-27 15:02:32 -0600922# Flag to apply erratum 2923985 workaround on reset. This erratum applies
923# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
924CPU_FLAG_LIST += ERRATA_X4_2923985
925
Govindraj Raja09c1edb2025-02-07 14:21:14 -0600926# Flag to apply erratum 2957258 workaround to avoid incorrect virtualization of
927# MPIDR_EL1/VMPIDR_EL2 and MIDR_EL1/VPIDR_EL2 when reading in EL2/EL3. This
928# erratum applies to revisions r0p0, r0p1 of the Cortex-X4 cpu. It is fixed
929# in r0p2.
930CPU_FLAG_LIST += ERRATA_X4_2957258
931
Ryan Everettdb7eb682024-05-21 11:56:37 +0100932# Flag to apply erratum 3076789 workaround on reset. This erratum applies
933# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
934CPU_FLAG_LIST += ERRATA_X4_3076789
935
Arvind Ram Prakash58148b92025-07-29 14:05:41 -0500936# Flag to apply erratum 3133195 workaround on reset. This erratum applies
937# to revision r0p2 of the Cortex-X4 cpu. It is fixed in r0p3.
938CPU_FLAG_LIST += ERRATA_X4_3133195
939
Govindraj Raja38401c52025-01-21 18:24:57 -0600940# Flag to apply erratum 3701758 workaround during context save/restore of
941# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
942# of the Cortex-X4 cpu and is still open.
943CPU_FLAG_LIST += ERRATA_X4_3701758
944
Arvind Ram Prakash5a45f0f2025-07-29 14:44:40 -0500945# Flag to apply erratum 3887999 workaround on reset. This erratum applies to
946# revisions r0p0, r0p1, r0p2 and r0p3 of the Cortex-X4 cpu and is still open.
947CPU_FLAG_LIST += ERRATA_X4_3887999
948
Govindraj Raja29bda252025-02-07 15:17:09 -0600949# Flag to apply erratum 2963999 workaround during reset. This erratum applies
950# to revisions r0p0 of the Cortex-X925 cpu and is fixed in r0p1.
951CPU_FLAG_LIST += ERRATA_X925_2963999
952
Govindraj Raja511148e2025-01-21 18:38:56 -0600953# Flag to apply erratum 3701747 workaround during context save/restore of
954# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of the
955# Cortex-X925 cpu and is still open.
956CPU_FLAG_LIST += ERRATA_X925_3701747
957
Boyan Karatoteve4447632022-11-17 12:01:29 +0000958# Flag to apply erratum 1922240 workaround during reset. This erratum applies
959# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
960CPU_FLAG_LIST += ERRATA_A510_1922240
961
962# Flag to apply erratum 2288014 workaround during reset. This erratum applies
963# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
964# fixed in r1p1.
965CPU_FLAG_LIST += ERRATA_A510_2288014
966
967# Flag to apply erratum 2042739 workaround during reset. This erratum applies
968# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
969CPU_FLAG_LIST += ERRATA_A510_2042739
970
971# Flag to apply erratum 2041909 workaround during reset. This erratum applies
972# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
973# present in r0p0 and r0p1 but there is no workaround for those revisions.
974CPU_FLAG_LIST += ERRATA_A510_2041909
975
Sona Mathew6e864752023-10-12 12:04:53 -0500976# Flag to aply erratum 2080326 workaround during reset. This erratum applies
977# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
978# also present in r0p0 and r0p1 but there is no workaround for those revisions.
979CPU_FLAG_LIST += ERRATA_A510_2080326
980
Boyan Karatoteve4447632022-11-17 12:01:29 +0000981# Flag to apply erratum 2250311 workaround during reset. This erratum applies
982# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
983CPU_FLAG_LIST += ERRATA_A510_2250311
984
985# Flag to apply erratum 2218950 workaround during reset. This erratum applies
986# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
987CPU_FLAG_LIST += ERRATA_A510_2218950
988
989# Flag to apply erratum 2172148 workaround during reset. This erratum applies
990# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
991CPU_FLAG_LIST += ERRATA_A510_2172148
992
993# Flag to apply erratum 2347730 workaround during reset. This erratum applies
994# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
995# and is fixed in r1p2.
996CPU_FLAG_LIST += ERRATA_A510_2347730
997
998# Flag to apply erratum 2371937 workaround during reset. This erratum applies
999# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
1000CPU_FLAG_LIST += ERRATA_A510_2371937
1001
1002# Flag to apply erratum 2666669 workaround during reset. This erratum applies
1003# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
1004CPU_FLAG_LIST += ERRATA_A510_2666669
1005
1006# Flag to apply erratum 2684597 workaround during powerdown. This erratum
1007# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
1008# Cortex-A510 cpu and is fixed in r1p3.
1009CPU_FLAG_LIST += ERRATA_A510_2684597
1010
John Powellf2bd3522025-02-19 16:39:30 -06001011# Flag to apply erratum 2971420 workaround during context switch. This erratum
1012# applies to revisions r0p1, r0p2, r0p3, r1p0, r1p1, r1p2 and r1p3 of the
1013# Cortex-A510 cpu and is still open.
1014CPU_FLAG_LIST += ERRATA_A510_2971420
1015
Sona Mathewf03bfc32023-12-09 20:44:56 -06001016# Flag to apply erratum 2630792 workaround during reset. This erratum applies
1017# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
1018CPU_FLAG_LIST += ERRATA_A520_2630792
1019
Arvind Ram Prakash34db3532023-12-08 20:19:58 -06001020# Flag to apply erratum 2858100 workaround during reset. This erratum
1021# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
1022CPU_FLAG_LIST += ERRATA_A520_2858100
1023
Arvind Ram Prakash4a97ff52024-08-05 16:04:37 -05001024# Flag to apply erratum 2938996 workaround during reset. This erratum
1025# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is fixed in r0p2.
1026CPU_FLAG_LIST += ERRATA_A520_2938996
1027
Bipin Ravic0f8ce52023-10-17 19:42:15 -05001028# Flag to apply erratum 2618597 workaround during reset. This erratum applies
1029# to revisions r0p0 and r0p1. It is fixed in r0p2.
1030CPU_FLAG_LIST += ERRATA_V2_2618597
1031
Bipin Ravi912c4092023-10-17 18:35:55 -05001032# Flag to apply erratum 2662553 workaround during reset. This erratum applies
1033# to revisions r0p0 and r0p1. It is fixed in r0p2.
1034CPU_FLAG_LIST += ERRATA_V2_2662553
1035
Sona Mathewab062f02023-03-14 16:50:36 -05001036# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
1037# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
1038CPU_FLAG_LIST += ERRATA_V2_2719103
1039
Bipin Ravib0114022023-09-18 17:27:29 -05001040# Flag to apply erratum 2719105 workaround during reset. This erratum applies
1041# to revisions r0p0 and r0p1. It is fixed in r0p2.
1042CPU_FLAG_LIST += ERRATA_V2_2719105
1043
Bipin Ravi58dd1532023-09-18 19:54:41 -05001044# Flag to apply erratum 2743011 workaround during reset. This erratum applies
1045# to revisions r0p0 and r0p1. It is fixed in r0p2.
1046CPU_FLAG_LIST += ERRATA_V2_2743011
1047
Bipin Raviff342642023-09-18 19:28:32 -05001048# Flag to apply erratum 2779510 workaround during reset. This erratum applies
1049# to revisions r0p0 and r0p1. It is fixed in r0p2.
1050CPU_FLAG_LIST += ERRATA_V2_2779510
1051
Moritz Fischer40c81ed2023-07-06 00:01:23 +00001052# Flag to apply erratum 2801372 workaround for all configurations.
1053# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
1054CPU_FLAG_LIST += ERRATA_V2_2801372
1055
Bipin Ravi53b3cd22024-02-27 17:49:12 -06001056# Flag to apply erratum 2331818 workaround during reset. This erratum applies
1057# to revisions r0p0 and r1p0. It is fixed in r1p1.
1058CPU_FLAG_LIST += ERRATA_A715_2331818
1059
Harrison Mutai33c665a2024-01-02 16:55:44 +00001060# Flag to apply erratum 2344187 workaround during reset. This erratum applies
1061# to revisions r0p0, and r1p0. It is fixed in r1p1.
1062CPU_FLAG_LIST += ERRATA_A715_2344187
1063
Sona Mathew15a04612024-02-20 16:59:45 -06001064# Flag to apply erratum 2413290 workaround during reset. This erratum applies
1065# only to revision r1p0. It is fixed in r1p1.
1066CPU_FLAG_LIST += ERRATA_A715_2413290
1067
Bipin Ravi1f732472024-02-27 17:34:05 -06001068# Flag to apply erratum 2420947 workaround during reset. This erratum applies
1069# only to revision r1p0. It is fixed in r1p1.
1070CPU_FLAG_LIST += ERRATA_A715_2420947
1071
Bipin Ravi262dc9f2024-02-27 17:14:22 -06001072# Flag to apply erratum 2429384 workaround during reset. This erratum applies
1073# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
1074CPU_FLAG_LIST += ERRATA_A715_2429384
1075
Bipin Ravi6a6b2822024-01-25 16:18:20 -06001076# Flag to apply erratum 2561034 workaround during reset. This erratum applies
1077# only to revision r1p0. It is fixed in r1p1.
1078CPU_FLAG_LIST += ERRATA_A715_2561034
1079
Bipin Ravi10134e32024-04-10 15:06:11 -05001080# Flag to apply erratum 2728106 workaround during reset. This erratum applies
1081# only to revision r0p0, r1p0 and r1p1. It is fixed in r1p2.
1082CPU_FLAG_LIST += ERRATA_A715_2728106
1083
John Powellfcf2ab72025-02-11 11:22:14 -06001084# Flag to apply erratum 2804830 workaround during reset. This erratum applies
1085# to revisions r0p0, r1p0, r1p1 and r1p2. It is fixed in r1p3.
1086CPU_FLAG_LIST += ERRATA_A715_2804830
1087
Govindraj Raja26437af2025-01-21 17:00:11 -06001088# Flag to apply erratum 3699560 workaround during context save/restore of
1089# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p2, r1p3
1090# of the Cortex-A715 cpu and is still open.
1091CPU_FLAG_LIST += ERRATA_A715_3699560
1092
Arvind Ram Prakashb1bde252024-07-19 15:59:17 -05001093# Flag to apply erratum 2792132 workaround during reset. This erratum applies
1094# to revisions r0p0 and r0p1. It is fixed in r0p2.
1095CPU_FLAG_LIST += ERRATA_A720_2792132
1096
Sona Mathew12140902024-07-19 18:09:20 -05001097# Flag to apply erratum 2844092 workaround during reset. This erratum applies
1098# to revisions r0p0 and r0p1. It is fixed in r0p2.
1099CPU_FLAG_LIST += ERRATA_A720_2844092
1100
Bipin Ravi152f4cf2024-03-14 16:52:21 -05001101# Flag to apply erratum 2926083 workaround during reset. This erratum applies
1102# to revisions r0p0 and r0p1. It is fixed in r0p2.
1103CPU_FLAG_LIST += ERRATA_A720_2926083
1104
Bipin Ravi73852132024-03-12 10:29:16 -05001105# Flag to apply erratum 2940794 workaround during reset. This erratum applies
1106# to revisions r0p0 and r0p1. It is fixed in r0p2.
1107CPU_FLAG_LIST += ERRATA_A720_2940794
1108
Govindraj Raja050c4a32025-01-21 17:12:33 -06001109# Flag to apply erratum 3699561 workaround during context save/restore of
1110# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 of
1111# the Cortex-A720 cpu and is still open.
1112CPU_FLAG_LIST += ERRATA_A720_3699561
1113
Govindraj Rajaaf5ae9a2025-01-21 17:23:26 -06001114# Flag to apply erratum 3699562 workaround during context save/restore of
1115# ICH_VMCR_EL2 reg. This erratum applies to revision r0p0 the Cortex-A720-AE
1116# cpu and is still open.
1117CPU_FLAG_LIST += ERRATA_A720_AE_3699562
1118
Govindraj Rajad7323002025-01-21 17:44:17 -06001119# Flag to apply erratum 3699564 workaround during context save/restore of
1120# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of
1121# the Cortex-A725 cpu and is fixed in r0p2
1122CPU_FLAG_LIST += ERRATA_A725_3699564
1123
Boyan Karatoteve4447632022-11-17 12:01:29 +00001124# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
1125# Applying the workaround results in higher DSU power consumption on idle.
1126CPU_FLAG_LIST += ERRATA_DSU_798953
1127
1128# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
Govindraj Raja050c4a32025-01-21 17:12:33 -06001129# the ACP interface and revision < r0p0. Applying the workaround results in
Boyan Karatoteve4447632022-11-17 12:01:29 +00001130# higher DSU power consumption on idle.
1131CPU_FLAG_LIST += ERRATA_DSU_936184
1132
1133# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1134# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1135# results in higher DSU power consumption on idle.
1136CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001137
Arvind Ram Prakashefc945f2025-05-05 16:18:14 -05001138# Flag to apply DSU erratum 2900952 during reset. This erratum applies
1139# to some implementations of DSU-120 revision r2p0. Erratum might be fixed
1140# in some implementations of r2p0. This can be determined by reading
1141# the IMP_CLUSTERREVIDR_EL1 register where a set bit indicates that
1142# the erratum is fixed in this part. It is fixed in r2p1.
1143CPU_FLAG_LIST += ERRATA_DSU_2900952
1144
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001145ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001146 ifeq (${WORKAROUND_CVE_2018_3639},0)
1147 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1148 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001149endif
1150
Boyan Karatoteve4447632022-11-17 12:01:29 +00001151# process all flags
Boyan Karatotev593ae352023-03-22 15:55:36 +00001152ifeq (${ENABLE_ERRATA_ALL},1)
1153$(eval $(call default_ones, $(CPU_FLAG_LIST)))
1154else
Boyan Karatoteve4447632022-11-17 12:01:29 +00001155$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
Boyan Karatotev593ae352023-03-22 15:55:36 +00001156endif
Boyan Karatoteve4447632022-11-17 12:01:29 +00001157$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1158$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001159
Douglas Raillarda94cc372017-06-19 15:38:02 +01001160# Errata build flags
1161ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001162TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001163endif
1164
1165ifneq (${ERRATA_A53_835769},0)
1166TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001167TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001168endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001169
1170ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1171 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1172ERRATA_SPECULATIVE_AT := 1
1173else
1174ERRATA_SPECULATIVE_AT := 0
1175endif