blob: 8fca6c8a0abf650fd6dd0b74b54eaa98b29266ed [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Arvind Ram Prakashb2be8b02024-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
Sona Mathewe42abf22024-05-20 13:48:19 -050010# Flag to disable Hardware page aggregation(HPA).
11# This flag is enabled by default.
12WORKAROUND_CVE_2024_5660 ?=1
13CPU_FLAG_LIST += WORKAROUND_CVE_2024_5660
14
Soby Mathew5541bb32014-09-22 14:13:34 +010015# Cortex A57 specific optimisation to skip L1 cache flush when
16# cluster is powered down.
Boyan Karatoteve4447632022-11-17 12:01:29 +000017CPU_FLAG_LIST += SKIP_A57_L1_FLUSH_PWR_DWN
Soby Mathew5541bb32014-09-22 14:13:34 +010018
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000019# Flag to disable the cache non-temporal hint.
20# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060021A53_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000022CPU_FLAG_LIST += A53_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000023
24# Flag to disable the cache non-temporal hint.
25# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060026A57_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000027CPU_FLAG_LIST += A57_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000028
Varun Wadekarcd0ea182018-06-12 16:49:12 -070029# Flag to enable higher performance non-cacheable load forwarding.
30# It is disabled by default.
Boyan Karatoteve4447632022-11-17 12:01:29 +000031CPU_FLAG_LIST += A57_ENABLE_NONCACHEABLE_LOAD_FWD
Varun Wadekarcd0ea182018-06-12 16:49:12 -070032
johpow0183435632022-01-04 16:15:18 -060033WORKAROUND_CVE_2017_5715 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000034CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715
johpow0183435632022-01-04 16:15:18 -060035WORKAROUND_CVE_2018_3639 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000036CPU_FLAG_LIST += WORKAROUND_CVE_2018_3639
37CPU_FLAG_LIST += DYNAMIC_WORKAROUND_CVE_2018_3639
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060038WORKAROUND_CVE_2022_23960 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000039CPU_FLAG_LIST += WORKAROUND_CVE_2022_23960
Arvind Ram Prakashb2be8b02024-09-06 11:35:56 -050040WORKAROUND_CVE_2024_7881 ?=1
41CPU_FLAG_LIST += WORKAROUND_CVE_2024_7881
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000042
Javier Almansa Sobrino25bbbd22020-10-23 13:22:07 +010043# Flags to indicate internal or external Last level cache
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000044# By default internal
Boyan Karatoteve4447632022-11-17 12:01:29 +000045CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000046
Boyan Karatoteve4447632022-11-17 12:01:29 +000047# CPU Errata Build flags.
48# These should be enabled by the platform if the erratum workaround needs to be
49# applied.
Varun Wadekarcd0ea182018-06-12 16:49:12 -070050
Boyan Karatoteve4447632022-11-17 12:01:29 +000051# Flag to apply erratum 794073 workaround when disabling mmu.
52CPU_FLAG_LIST += ERRATA_A9_794073
Soby Mathew5541bb32014-09-22 14:13:34 +010053
Boyan Karatoteve4447632022-11-17 12:01:29 +000054# Flag to apply erratum 816470 workaround during power down. This erratum
55# applies only to revision >= r3p0 of the Cortex A15 cpu.
56CPU_FLAG_LIST += ERRATA_A15_816470
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000057
Boyan Karatoteve4447632022-11-17 12:01:29 +000058# Flag to apply erratum 827671 workaround during reset. This erratum applies
59# only to revision >= r3p0 of the Cortex A15 cpu.
60CPU_FLAG_LIST += ERRATA_A15_827671
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000061
Boyan Karatoteve4447632022-11-17 12:01:29 +000062# Flag to apply erratum 852421 workaround during reset. This erratum applies
63# only to revision <= r1p2 of the Cortex A17 cpu.
64CPU_FLAG_LIST += ERRATA_A17_852421
Soby Mathew5541bb32014-09-22 14:13:34 +010065
Boyan Karatoteve4447632022-11-17 12:01:29 +000066# Flag to apply erratum 852423 workaround during reset. This erratum applies
67# only to revision <= r1p2 of the Cortex A17 cpu.
68CPU_FLAG_LIST += ERRATA_A17_852423
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010069
Boyan Karatoteve4447632022-11-17 12:01:29 +000070# Flag to apply erratum 855472 workaround during reset. This erratum applies
71# only to revision r0p0 of the Cortex A35 cpu.
72CPU_FLAG_LIST += ERRATA_A35_855472
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010073
Boyan Karatoteve4447632022-11-17 12:01:29 +000074# Flag to apply erratum 819472 workaround during reset. This erratum applies
75# only to revision <= r0p1 of the Cortex A53 cpu.
76CPU_FLAG_LIST += ERRATA_A53_819472
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060077
Boyan Karatoteve4447632022-11-17 12:01:29 +000078# Flag to apply erratum 824069 workaround during reset. This erratum applies
79# only to revision <= r0p2 of the Cortex A53 cpu.
80CPU_FLAG_LIST += ERRATA_A53_824069
81
82# Flag to apply erratum 826319 workaround during reset. This erratum applies
83# only to revision <= r0p2 of the Cortex A53 cpu.
84CPU_FLAG_LIST += ERRATA_A53_826319
85
86# Flag to apply erratum 827319 workaround during reset. This erratum applies
87# only to revision <= r0p2 of the Cortex A53 cpu.
88CPU_FLAG_LIST += ERRATA_A53_827319
89
90# Flag to apply erratum 835769 workaround at compile and link time. This
91# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
92# workaround can lead the linker to create "*.stub" sections.
93CPU_FLAG_LIST += ERRATA_A53_835769
94
95# Flag to apply erratum 836870 workaround during reset. This erratum applies
96# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
97# erratum workaround is enabled by default in hardware.
98CPU_FLAG_LIST += ERRATA_A53_836870
99
100# Flag to apply erratum 843419 workaround at link time.
101# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
102# workaround could lead the linker to emit "*.stub" sections which are 4kB
103# aligned.
104CPU_FLAG_LIST += ERRATA_A53_843419
105
106# Flag to apply errata 855873 during reset. This errata applies to all
107# revisions of the Cortex A53 CPU, but this firmware workaround only works
108# for revisions r0p3 and higher. Earlier revisions are taken care
109# of by the rich OS.
110CPU_FLAG_LIST += ERRATA_A53_855873
111
112# Flag to apply erratum 1530924 workaround during reset. This erratum applies
113# to all revisions of Cortex A53 cpu.
114CPU_FLAG_LIST += ERRATA_A53_1530924
115
116# Flag to apply erratum 768277 workaround during reset. This erratum applies
117# only to revision r0p0 of the Cortex A55 cpu.
118CPU_FLAG_LIST += ERRATA_A55_768277
119
120# Flag to apply erratum 778703 workaround during reset. This erratum applies
121# only to revision r0p0 of the Cortex A55 cpu.
122CPU_FLAG_LIST += ERRATA_A55_778703
123
124# Flag to apply erratum 798797 workaround during reset. This erratum applies
125# only to revision r0p0 of the Cortex A55 cpu.
126CPU_FLAG_LIST += ERRATA_A55_798797
127
128# Flag to apply erratum 846532 workaround during reset. This erratum applies
129# only to revision <= r0p1 of the Cortex A55 cpu.
130CPU_FLAG_LIST += ERRATA_A55_846532
131
132# Flag to apply erratum 903758 workaround during reset. This erratum applies
133# only to revision <= r0p1 of the Cortex A55 cpu.
134CPU_FLAG_LIST += ERRATA_A55_903758
135
136# Flag to apply erratum 1221012 workaround during reset. This erratum applies
137# only to revision <= r1p0 of the Cortex A55 cpu.
138CPU_FLAG_LIST += ERRATA_A55_1221012
139
140# Flag to apply erratum 1530923 workaround during reset. This erratum applies
141# to all revisions of Cortex A55 cpu.
142CPU_FLAG_LIST += ERRATA_A55_1530923
143
144# Flag to apply erratum 806969 workaround during reset. This erratum applies
145# only to revision r0p0 of the Cortex A57 cpu.
146CPU_FLAG_LIST += ERRATA_A57_806969
147
148# Flag to apply erratum 813419 workaround during reset. This erratum applies
149# only to revision r0p0 of the Cortex A57 cpu.
150CPU_FLAG_LIST += ERRATA_A57_813419
151
152# Flag to apply erratum 813420 workaround during reset. This erratum applies
153# only to revision r0p0 of the Cortex A57 cpu.
154CPU_FLAG_LIST += ERRATA_A57_813420
155
156# Flag to apply erratum 814670 workaround during reset. This erratum applies
157# only to revision r0p0 of the Cortex A57 cpu.
158CPU_FLAG_LIST += ERRATA_A57_814670
159
160# Flag to apply erratum 817169 workaround during power down. This erratum
161# applies only to revision <= r0p1 of the Cortex A57 cpu.
162CPU_FLAG_LIST += ERRATA_A57_817169
163
164# Flag to apply erratum 826974 workaround during reset. This erratum applies
165# only to revision <= r1p1 of the Cortex A57 cpu.
166CPU_FLAG_LIST += ERRATA_A57_826974
167
168# Flag to apply erratum 826977 workaround during reset. This erratum applies
169# only to revision <= r1p1 of the Cortex A57 cpu.
170CPU_FLAG_LIST += ERRATA_A57_826977
171
172# Flag to apply erratum 828024 workaround during reset. This erratum applies
173# only to revision <= r1p1 of the Cortex A57 cpu.
174CPU_FLAG_LIST += ERRATA_A57_828024
175
176# Flag to apply erratum 829520 workaround during reset. This erratum applies
177# only to revision <= r1p2 of the Cortex A57 cpu.
178CPU_FLAG_LIST += ERRATA_A57_829520
179
180# Flag to apply erratum 833471 workaround during reset. This erratum applies
181# only to revision <= r1p2 of the Cortex A57 cpu.
182CPU_FLAG_LIST += ERRATA_A57_833471
183
184# Flag to apply erratum 855972 workaround during reset. This erratum applies
185# only to revision <= r1p3 of the Cortex A57 cpu.
186CPU_FLAG_LIST += ERRATA_A57_859972
187
188# Flag to apply erratum 1319537 workaround during reset. This erratum applies
189# to all revisions of Cortex A57 cpu.
190CPU_FLAG_LIST += ERRATA_A57_1319537
191
192# Flag to apply erratum 855971 workaround during reset. This erratum applies
193# only to revision <= r0p3 of the Cortex A72 cpu.
194CPU_FLAG_LIST += ERRATA_A72_859971
195
196# Flag to apply erratum 1319367 workaround during reset. This erratum applies
197# to all revisions of Cortex A72 cpu.
198CPU_FLAG_LIST += ERRATA_A72_1319367
199
200# Flag to apply erratum 852427 workaround during reset. This erratum applies
201# only to revision r0p0 of the Cortex A73 cpu.
202CPU_FLAG_LIST += ERRATA_A73_852427
203
204# Flag to apply erratum 855423 workaround during reset. This erratum applies
205# only to revision <= r0p1 of the Cortex A73 cpu.
206CPU_FLAG_LIST += ERRATA_A73_855423
207
208# Flag to apply erratum 764081 workaround during reset. This erratum applies
209# only to revision <= r0p0 of the Cortex A75 cpu.
210CPU_FLAG_LIST += ERRATA_A75_764081
211
212# Flag to apply erratum 790748 workaround during reset. This erratum applies
213# only to revision <= r0p0 of the Cortex A75 cpu.
214CPU_FLAG_LIST += ERRATA_A75_790748
215
216# Flag to apply erratum 1073348 workaround during reset. This erratum applies
217# only to revision <= r1p0 of the Cortex A76 cpu.
218CPU_FLAG_LIST += ERRATA_A76_1073348
219
220# Flag to apply erratum 1130799 workaround during reset. This erratum applies
221# only to revision <= r2p0 of the Cortex A76 cpu.
222CPU_FLAG_LIST += ERRATA_A76_1130799
223
224# Flag to apply erratum 1220197 workaround during reset. This erratum applies
225# only to revision <= r2p0 of the Cortex A76 cpu.
226CPU_FLAG_LIST += ERRATA_A76_1220197
227
228# Flag to apply erratum 1257314 workaround during reset. This erratum applies
229# only to revision <= r3p0 of the Cortex A76 cpu.
230CPU_FLAG_LIST += ERRATA_A76_1257314
231
232# Flag to apply erratum 1262606 workaround during reset. This erratum applies
233# only to revision <= r3p0 of the Cortex A76 cpu.
234CPU_FLAG_LIST += ERRATA_A76_1262606
235
236# Flag to apply erratum 1262888 workaround during reset. This erratum applies
237# only to revision <= r3p0 of the Cortex A76 cpu.
238CPU_FLAG_LIST += ERRATA_A76_1262888
239
240# Flag to apply erratum 1275112 workaround during reset. This erratum applies
241# only to revision <= r3p0 of the Cortex A76 cpu.
242CPU_FLAG_LIST += ERRATA_A76_1275112
243
244# Flag to apply erratum 1286807 workaround during reset. This erratum applies
245# only to revision <= r3p0 of the Cortex A76 cpu.
246CPU_FLAG_LIST += ERRATA_A76_1286807
247
248# Flag to apply erratum 1791580 workaround during reset. This erratum applies
249# only to revision <= r4p0 of the Cortex A76 cpu.
250CPU_FLAG_LIST += ERRATA_A76_1791580
251
252# Flag to apply erratum 1165522 workaround during reset. This erratum applies
253# to all revisions of Cortex A76 cpu.
254CPU_FLAG_LIST += ERRATA_A76_1165522
255
256# Flag to apply erratum 1868343 workaround during reset. This erratum applies
257# only to revision <= r4p0 of the Cortex A76 cpu.
258CPU_FLAG_LIST += ERRATA_A76_1868343
259
260# Flag to apply erratum 1946160 workaround during reset. This erratum applies
261# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
262CPU_FLAG_LIST += ERRATA_A76_1946160
263
264# Flag to apply erratum 2743102 workaround during powerdown. This erratum
265# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open.
266CPU_FLAG_LIST += ERRATA_A76_2743102
267
268# Flag to apply erratum 1508412 workaround during reset. This erratum applies
269# only to revision <= r1p0 of the Cortex A77 cpu.
270CPU_FLAG_LIST += ERRATA_A77_1508412
271
272# Flag to apply erratum 1925769 workaround during reset. This erratum applies
273# only to revision <= r1p1 of the Cortex A77 cpu.
274CPU_FLAG_LIST += ERRATA_A77_1925769
275
276# Flag to apply erratum 1946167 workaround during reset. This erratum applies
277# only to revision <= r1p1 of the Cortex A77 cpu.
278CPU_FLAG_LIST += ERRATA_A77_1946167
279
280# Flag to apply erratum 1791578 workaround during reset. This erratum applies
281# to revisions r0p0, r1p0, and r1p1, it is still open.
282CPU_FLAG_LIST += ERRATA_A77_1791578
283
284# Flag to apply erratum 2356587 workaround during reset. This erratum applies
285# to revisions r0p0, r1p0, and r1p1, it is still open.
286CPU_FLAG_LIST += ERRATA_A77_2356587
287
288# Flag to apply erratum 1800714 workaround during reset. This erratum applies
289# to revisions <= r1p1 of the Cortex A77 cpu.
290CPU_FLAG_LIST += ERRATA_A77_1800714
291
292# Flag to apply erratum 2743100 workaround during power down. This erratum
293# applies to revisions r0p0, r1p0, and r1p1, it is still open.
294CPU_FLAG_LIST += ERRATA_A77_2743100
295
296# Flag to apply erratum 1688305 workaround during reset. This erratum applies
297# to revisions r0p0 - r1p0 of the A78 cpu.
298CPU_FLAG_LIST += ERRATA_A78_1688305
299
300# Flag to apply erratum 1941498 workaround during reset. This erratum applies
301# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
302CPU_FLAG_LIST += ERRATA_A78_1941498
303
304# Flag to apply erratum 1951500 workaround during reset. This erratum applies
305# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
306# well but there is no workaround for that revision.
307CPU_FLAG_LIST += ERRATA_A78_1951500
308
309# Flag to apply erratum 1821534 workaround during reset. This erratum applies
310# to revisions r0p0 and r1p0 of the A78 cpu.
311CPU_FLAG_LIST += ERRATA_A78_1821534
312
313# Flag to apply erratum 1952683 workaround during reset. This erratum applies
314# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
315CPU_FLAG_LIST += ERRATA_A78_1952683
316
317# Flag to apply erratum 2132060 workaround during reset. This erratum applies
318# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
319CPU_FLAG_LIST += ERRATA_A78_2132060
320
321# Flag to apply erratum 2242635 workaround during reset. This erratum applies
322# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
323# present in r0p0 as well but there is no workaround for that revision.
324CPU_FLAG_LIST += ERRATA_A78_2242635
325
326# Flag to apply erratum 2376745 workaround during reset. This erratum applies
327# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
328CPU_FLAG_LIST += ERRATA_A78_2376745
329
330# Flag to apply erratum 2395406 workaround during reset. This erratum applies
331# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
332CPU_FLAG_LIST += ERRATA_A78_2395406
333
Sona Mathewab062f02023-03-14 16:50:36 -0500334# Flag to apply erratum 2712571 workaround for non-arm interconnect ip. This
335# erratum applies to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu.
336# It is fixed in r1p2.
337CPU_FLAG_LIST += ERRATA_A78_2712571
338
Boyan Karatoteve4447632022-11-17 12:01:29 +0000339# Flag to apply erratum 2742426 workaround during reset. This erratum
340# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
341# open.
342CPU_FLAG_LIST += ERRATA_A78_2742426
343
344# Flag to apply erratum 2772019 workaround during powerdown. This erratum
345# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
346# open.
347CPU_FLAG_LIST += ERRATA_A78_2772019
348
349# Flag to apply erratum 2779479 workaround during reset. This erratum applies
350# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open.
351CPU_FLAG_LIST += ERRATA_A78_2779479
352
353# Flag to apply erratum 1941500 workaround during reset. This erratum applies
354# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
355CPU_FLAG_LIST += ERRATA_A78_AE_1941500
356
357# Flag to apply erratum 1951502 workaround during reset. This erratum applies
358# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
359CPU_FLAG_LIST += ERRATA_A78_AE_1951502
360
361# Flag to apply erratum 2376748 workaround during reset. This erratum applies
Sona Mathewc8146192023-10-10 16:48:57 -0500362# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000363CPU_FLAG_LIST += ERRATA_A78_AE_2376748
364
365# Flag to apply erratum 2395408 workaround during reset. This erratum applies
366# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
367CPU_FLAG_LIST += ERRATA_A78_AE_2395408
368
Bipin Ravi672eb212023-03-14 10:04:23 -0500369# Flag to apply erratum 1827430 workaround during reset. This erratum applies
370# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
371CPU_FLAG_LIST += ERRATA_A78C_1827430
372
Bipin Ravib01a59e2023-03-14 11:03:24 -0500373# Flag to apply erratum 1827440 workaround during reset. This erratum applies
374# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
375CPU_FLAG_LIST += ERRATA_A78C_1827440
376
Sona Mathewab062f02023-03-14 16:50:36 -0500377# Flag to apply erratum 2712574 workaround for non-arm interconnect ip. This
378# erratum applies to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu.
379# It is still open.
380CPU_FLAG_LIST += ERRATA_A78_AE_2712574
381
Boyan Karatoteve4447632022-11-17 12:01:29 +0000382# Flag to apply erratum 2132064 workaround during reset. This erratum applies
383# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
384CPU_FLAG_LIST += ERRATA_A78C_2132064
385
386# Flag to apply erratum 2242638 workaround during reset. This erratum applies
387# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
388CPU_FLAG_LIST += ERRATA_A78C_2242638
389
390# Flag to apply erratum 2376749 workaround during reset. This erratum applies
391# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
392CPU_FLAG_LIST += ERRATA_A78C_2376749
393
394# Flag to apply erratum 2395411 workaround during reset. This erratum applies
395# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
396CPU_FLAG_LIST += ERRATA_A78C_2395411
397
Bipin Ravi0e5e9942023-12-20 15:40:44 -0600398# Flag to apply erratum 2683027 workaround during reset. This erratum applies
399# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
400CPU_FLAG_LIST += ERRATA_A78C_2683027
401
Sona Mathewab062f02023-03-14 16:50:36 -0500402# Flag to apply erratum 2712575 workaround for non-arm interconnect ip. This
403# erratum applies to revisions r0p1 and r0p2 of the A78C cpu.
404# It is still open.
405CPU_FLAG_LIST += ERRATA_A78C_2712575
406
Sona Mathew6becda52023-11-14 14:00:48 -0600407# Flag to apply erratum 2743232 workaround during reset. This erratum applies
408# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
409CPU_FLAG_LIST += ERRATA_A78C_2743232
410
Boyan Karatoteve4447632022-11-17 12:01:29 +0000411# Flag to apply erratum 2772121 workaround during powerdown. This erratum
412# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open.
413CPU_FLAG_LIST += ERRATA_A78C_2772121
414
415# Flag to apply erratum 2779484 workaround during reset. This erratum
416# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
417CPU_FLAG_LIST += ERRATA_A78C_2779484
418
419# Flag to apply erratum 1821534 workaround during reset. This erratum applies
420# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
421CPU_FLAG_LIST += ERRATA_X1_1821534
422
423# Flag to apply erratum 1688305 workaround during reset. This erratum applies
424# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
425CPU_FLAG_LIST += ERRATA_X1_1688305
426
427# Flag to apply erratum 1827429 workaround during reset. This erratum applies
428# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
429CPU_FLAG_LIST += ERRATA_X1_1827429
430
431# Flag to apply T32 CLREX workaround during reset. This erratum applies
432# only to r0p0 and r1p0 of the Neoverse N1 cpu.
433CPU_FLAG_LIST += ERRATA_N1_1043202
434
435# Flag to apply erratum 1073348 workaround during reset. This erratum applies
436# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
437CPU_FLAG_LIST += ERRATA_N1_1073348
438
439# Flag to apply erratum 1130799 workaround during reset. This erratum applies
440# only to revision <= r2p0 of the Neoverse N1 cpu.
441CPU_FLAG_LIST += ERRATA_N1_1130799
442
443# Flag to apply erratum 1165347 workaround during reset. This erratum applies
444# only to revision <= r2p0 of the Neoverse N1 cpu.
445CPU_FLAG_LIST += ERRATA_N1_1165347
446
447# Flag to apply erratum 1207823 workaround during reset. This erratum applies
448# only to revision <= r2p0 of the Neoverse N1 cpu.
449CPU_FLAG_LIST += ERRATA_N1_1207823
450
451# Flag to apply erratum 1220197 workaround during reset. This erratum applies
452# only to revision <= r2p0 of the Neoverse N1 cpu.
453CPU_FLAG_LIST += ERRATA_N1_1220197
454
455# Flag to apply erratum 1257314 workaround during reset. This erratum applies
456# only to revision <= r3p0 of the Neoverse N1 cpu.
457CPU_FLAG_LIST += ERRATA_N1_1257314
458
459# Flag to apply erratum 1262606 workaround during reset. This erratum applies
460# only to revision <= r3p0 of the Neoverse N1 cpu.
461CPU_FLAG_LIST += ERRATA_N1_1262606
462
463# Flag to apply erratum 1262888 workaround during reset. This erratum applies
464# only to revision <= r3p0 of the Neoverse N1 cpu.
465CPU_FLAG_LIST += ERRATA_N1_1262888
466
467# Flag to apply erratum 1275112 workaround during reset. This erratum applies
468# only to revision <= r3p0 of the Neoverse N1 cpu.
469CPU_FLAG_LIST += ERRATA_N1_1275112
470
471# Flag to apply erratum 1315703 workaround during reset. This erratum applies
472# to revisions before r3p1 of the Neoverse N1 cpu.
473CPU_FLAG_LIST += ERRATA_N1_1315703
474
475# Flag to apply erratum 1542419 workaround during reset. This erratum applies
476# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
477CPU_FLAG_LIST += ERRATA_N1_1542419
478
479# Flag to apply erratum 1868343 workaround during reset. This erratum applies
480# to revision <= r4p0 of the Neoverse N1 cpu.
481CPU_FLAG_LIST += ERRATA_N1_1868343
482
483# Flag to apply erratum 1946160 workaround during reset. This erratum applies
484# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
485# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
486CPU_FLAG_LIST += ERRATA_N1_1946160
487
488# Flag to apply erratum 2743102 workaround during powerdown. This erratum
489# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open.
490CPU_FLAG_LIST += ERRATA_N1_2743102
491
492# Flag to apply erratum 1618635 workaround during reset. This erratum applies
493# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
494CPU_FLAG_LIST += ERRATA_V1_1618635
495
496# Flag to apply erratum 1774420 workaround during reset. This erratum applies
497# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
498CPU_FLAG_LIST += ERRATA_V1_1774420
499
500# Flag to apply erratum 1791573 workaround during reset. This erratum applies
501# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
502CPU_FLAG_LIST += ERRATA_V1_1791573
503
504# Flag to apply erratum 1852267 workaround during reset. This erratum applies
505# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
506CPU_FLAG_LIST += ERRATA_V1_1852267
507
508# Flag to apply erratum 1925756 workaround during reset. This needs to be
509# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
510CPU_FLAG_LIST += ERRATA_V1_1925756
511
512# Flag to apply erratum 1940577 workaround during reset. This erratum applies
513# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
514CPU_FLAG_LIST += ERRATA_V1_1940577
515
516# Flag to apply erratum 1966096 workaround during reset. This erratum applies
517# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
518# exists in r0p0 as well but there is no workaround for that revision.
519CPU_FLAG_LIST += ERRATA_V1_1966096
520
521# Flag to apply erratum 2139242 workaround during reset. This erratum applies
522# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
523CPU_FLAG_LIST += ERRATA_V1_2139242
524
525# Flag to apply erratum 2108267 workaround during reset. This erratum applies
526# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
527CPU_FLAG_LIST += ERRATA_V1_2108267
528
529# Flag to apply erratum 2216392 workaround during reset. This erratum applies
530# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
531# issue exists in r0p0 as well but there is no workaround for that revision.
532CPU_FLAG_LIST += ERRATA_V1_2216392
533
534# Flag to apply erratum 2294912 workaround during reset. This erratum applies
Sona Mathewab2b56d2023-10-16 15:12:30 -0500535# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000536CPU_FLAG_LIST += ERRATA_V1_2294912
537
Sona Mathew25cf2842023-11-07 13:46:15 -0600538# Flag to apply erratum 2348377 workaround during reset. This erratum applies
539# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is fixed in r1p2.
540CPU_FLAG_LIST += ERRATA_V1_2348377
541
Boyan Karatoteve4447632022-11-17 12:01:29 +0000542# Flag to apply erratum 2372203 workaround during reset. This erratum applies
543# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
544CPU_FLAG_LIST += ERRATA_V1_2372203
545
Sona Mathewab062f02023-03-14 16:50:36 -0500546# Flag to apply erratum 2701953 workaround to non-arm interconnect ip. This
547# erratum applies to revisions r0p0, r1p0, r1p1 of the Neoverse V1 cpu,
548# it is fixed in r1p2.
549CPU_FLAG_LIST += ERRATA_V1_2701953
550
Boyan Karatoteve4447632022-11-17 12:01:29 +0000551# Flag to apply erratum 2743093 workaround during powerdown. This erratum
552# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
553# still open.
554CPU_FLAG_LIST += ERRATA_V1_2743093
555
556# Flag to apply erratum 2743233 workaround during powerdown. This erratum
557# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
558# still open.
559CPU_FLAG_LIST += ERRATA_V1_2743233
560
561# Flag to apply erratum 2779461 workaround during powerdown. This erratum
562# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
563# still open.
564CPU_FLAG_LIST += ERRATA_V1_2779461
565
Govindraj Rajafc497732025-01-21 19:20:29 -0600566# Flag to apply erratum 3701767 workaround during context save/restore of
567# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 and r0p2 of
568# the Neoverse V3 cpu and is still open.
569CPU_FLAG_LIST += ERRATA_V3_3701767
570
Boyan Karatoteve4447632022-11-17 12:01:29 +0000571# Flag to apply erratum 1987031 workaround during reset. This erratum applies
572# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
573CPU_FLAG_LIST += ERRATA_A710_1987031
574
575# Flag to apply erratum 2081180 workaround during reset. This erratum applies
576# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
577CPU_FLAG_LIST += ERRATA_A710_2081180
578
579# Flag to apply erratum 2083908 workaround during reset. This erratum applies
580# to revision r2p0 of the Cortex-A710 cpu and is still open.
581CPU_FLAG_LIST += ERRATA_A710_2083908
582
583# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew2bf79392023-10-10 13:51:45 -0500584# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
585# open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000586CPU_FLAG_LIST += ERRATA_A710_2058056
587
588# Flag to apply erratum 2055002 workaround during reset. This erratum applies
589# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
590CPU_FLAG_LIST += ERRATA_A710_2055002
591
592# Flag to apply erratum 2017096 workaround during reset. This erratum applies
593# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
594CPU_FLAG_LIST += ERRATA_A710_2017096
595
596# Flag to apply erratum 2267065 workaround during reset. This erratum applies
597# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
598CPU_FLAG_LIST += ERRATA_A710_2267065
599
600# Flag to apply erratum 2136059 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_2136059
603
604# Flag to apply erratum 2147715 workaround during reset. This erratum applies
605# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
606CPU_FLAG_LIST += ERRATA_A710_2147715
607
608# Flag to apply erratum 2216384 workaround during reset. This erratum applies
609# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
610CPU_FLAG_LIST += ERRATA_A710_2216384
611
612# Flag to apply erratum 2282622 workaround during reset. This erratum applies
613# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
614# open.
615CPU_FLAG_LIST += ERRATA_A710_2282622
616
617# Flag to apply erratum 2291219 workaround during reset. This erratum applies
618# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
619CPU_FLAG_LIST += ERRATA_A710_2291219
620
621# Flag to apply erratum 2008768 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_2008768
624
625# Flag to apply erratum 2371105 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_2371105
628
Sona Mathewab062f02023-03-14 16:50:36 -0500629# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
630# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
631# and is still open.
632CPU_FLAG_LIST += ERRATA_A710_2701952
633
Bipin Ravid7bc2cb2023-10-17 07:55:55 -0500634# Flag to apply erratum 2742423 workaround during reset. This erratum applies
635# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
636# open.
637CPU_FLAG_LIST += ERRATA_A710_2742423
638
Boyan Karatoteve4447632022-11-17 12:01:29 +0000639# Flag to apply erratum 2768515 workaround during power down. This erratum
640# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
641# still open.
642CPU_FLAG_LIST += ERRATA_A710_2768515
643
Sona Mathewe27b8ec2023-12-08 20:52:17 -0600644# Flag to apply erratum 2778471 workaround during reset. This erratum applies
645# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
646# open.
647CPU_FLAG_LIST += ERRATA_A710_2778471
648
Govindraj Raja8f709372025-01-21 12:32:14 -0600649# Flag to apply erratum 3701772 workaround during context save/restore of
650# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0, r2p1
651# of the Cortex-A710 cpu and is still open.
652CPU_FLAG_LIST += ERRATA_A710_3701772
653
Boyan Karatoteve4447632022-11-17 12:01:29 +0000654# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500655# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000656CPU_FLAG_LIST += ERRATA_N2_2002655
657
Bipin Ravi74bfe312023-08-29 13:59:09 -0500658# Flag to apply erratum 2009478 workaround during powerdown. This erratum
659# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
660CPU_FLAG_LIST += ERRATA_N2_2009478
661
Boyan Karatoteve4447632022-11-17 12:01:29 +0000662# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500663# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000664CPU_FLAG_LIST += ERRATA_N2_2067956
665
666# Flag to apply erratum 2025414 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_2025414
669
670# Flag to apply erratum 2189731 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_2189731
673
674# Flag to apply erratum 2138956 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_2138956
677
678# Flag to apply erratum 2138953 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500679# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000680CPU_FLAG_LIST += ERRATA_N2_2138953
681
682# 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 Raja1d175782025-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 Rajae2a5da12025-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
Boyan Karatoteve4447632022-11-17 12:01:29 +0000745# Flag to apply erratum 2002765 workaround during reset. This erratum applies
746# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
747CPU_FLAG_LIST += ERRATA_X2_2002765
748
749# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew8ae66d62023-10-16 13:33:18 -0500750# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000751CPU_FLAG_LIST += ERRATA_X2_2058056
752
753# Flag to apply erratum 2083908 workaround during reset. This erratum applies
754# to revision r2p0 of the Cortex-X2 cpu and is still open.
755CPU_FLAG_LIST += ERRATA_X2_2083908
756
757# Flag to apply erratum 2017096 workaround during reset. This erratum applies
758# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
759# r2p1.
760CPU_FLAG_LIST += ERRATA_X2_2017096
761
762# Flag to apply erratum 2081180 workaround during reset. This erratum applies
763# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
764# r2p1.
765CPU_FLAG_LIST += ERRATA_X2_2081180
766
767# Flag to apply erratum 2216384 workaround during reset. This erratum applies
768# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
769# r2p1.
770CPU_FLAG_LIST += ERRATA_X2_2216384
771
772# Flag to apply erratum 2147715 workaround during reset. This erratum applies
773# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
774CPU_FLAG_LIST += ERRATA_X2_2147715
775
776# Flag to apply erratum 2282622 workaround during reset. This erratum applies
777# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
778# open.
779CPU_FLAG_LIST += ERRATA_X2_2282622
780
781# Flag to apply erratum 2371105 workaround during reset. This erratum applies
782# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
783CPU_FLAG_LIST += ERRATA_X2_2371105
784
Sona Mathewab062f02023-03-14 16:50:36 -0500785# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
786# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
787# and is still open.
788CPU_FLAG_LIST += ERRATA_X2_2701952
789
Bipin Ravife06e112023-10-17 09:11:19 -0500790# Flag to apply erratum 2742423 workaround during reset. This erratum applies
791# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
792CPU_FLAG_LIST += ERRATA_X2_2742423
793
Boyan Karatoteve4447632022-11-17 12:01:29 +0000794# Flag to apply erratum 2768515 workaround during power down. This erratum
795# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
796# still open.
797CPU_FLAG_LIST += ERRATA_X2_2768515
798
Sona Mathewb312fa02023-12-09 13:09:30 -0600799# Flag to apply erratum 2778471 workaround during reset. This erratum applies
800# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
801CPU_FLAG_LIST += ERRATA_X2_2778471
802
Govindraj Raja3e9433d2025-01-21 18:02:51 -0600803# Flag to apply erratum 3701772 workaround during context save/restore of
804# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0 and r2p1
805# of the Cortex-X2 cpu and is still open.
806CPU_FLAG_LIST += ERRATA_X2_3701772
807
Sona Mathew24543162023-10-03 17:09:09 -0500808# Flag to apply erratum 2070301 workaround on reset. This erratum applies
809# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
810# still open.
811CPU_FLAG_LIST += ERRATA_X3_2070301
812
Bipin Ravi7c227dc2023-12-20 14:53:37 -0600813# Flag to apply erratum 2266875 workaround during reset. This erratum applies
814# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
815CPU_FLAG_LIST += ERRATA_X3_2266875
816
Bipin Ravi744f07a2023-12-20 14:32:02 -0600817# Flag to apply erratum 2302506 workaround during reset. This erratum applies
818# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
819CPU_FLAG_LIST += ERRATA_X3_2302506
820
Boyan Karatoteve4447632022-11-17 12:01:29 +0000821# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
822# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
823CPU_FLAG_LIST += ERRATA_X3_2313909
824
Bipin Ravi5f8f7452024-02-27 15:13:17 -0600825# Flag to apply erratum 2372204 workaround during reset. This erratum applies
826# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
827CPU_FLAG_LIST += ERRATA_X3_2372204
828
Boyan Karatoteve4447632022-11-17 12:01:29 +0000829# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
Sona Mathew635c83e2024-03-15 11:07:33 -0500830# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000831CPU_FLAG_LIST += ERRATA_X3_2615812
832
Bipin Ravi84fcd042024-01-25 15:38:46 -0600833# Flag to apply erratum 2641945 workaround on reset. This erratum applies
834# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
835CPU_FLAG_LIST += ERRATA_X3_2641945
836
Sona Mathewa234f542024-02-21 15:07:30 -0600837# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
838# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
839CPU_FLAG_LIST += ERRATA_X3_2701951
840
Sona Mathew5b0e4432023-09-05 14:10:03 -0500841# Flag to apply erratum 2742421 workaround on reset. This erratum applies
842# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
843CPU_FLAG_LIST += ERRATA_X3_2742421
844
Harrison Mutai88a8cd02023-12-12 11:17:19 +0000845# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
846# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
847CPU_FLAG_LIST += ERRATA_X3_2743088
848
Govindraj Raja1852f602025-01-21 18:12:35 -0600849# Flag to apply erratum 3701769 workaround during context save/restore of
850# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p1 and r1p2
851# of the Cortex-X3 cpu and is still open.
852CPU_FLAG_LIST += ERRATA_X3_3701769
853
Sona Mathew402b9a92023-11-06 13:48:22 -0600854# Flag to apply erratum 2779509 workaround on reset. This erratum applies
855# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
856CPU_FLAG_LIST += ERRATA_X3_2779509
857
Sona Mathewd466c5d2024-03-01 13:36:21 -0600858# Flag to apply erratum 2701112 workaround for platforms that do not use an
859# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
860# cpu and is fixed in r0p1.
861CPU_FLAG_LIST += ERRATA_X4_2701112
862
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500863# Flag to apply erratum 2726228 workaround during warmboot. This erratum
864# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
865CPU_FLAG_LIST += ERRATA_X4_2726228
866
Bipin Ravi3609b0a2024-04-10 15:33:21 -0500867# Flag to apply erratum 2740089 workaround during powerdown. This erratum
868# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
869CPU_FLAG_LIST += ERRATA_X4_2740089
870
Sona Mathew200931d2024-04-05 16:27:07 -0500871# Flag to apply erratum 2763018 workaround on reset. This erratum applies
872# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
873CPU_FLAG_LIST += ERRATA_X4_2763018
874
Sona Mathew582b9502024-07-16 14:34:42 -0500875# Flag to apply erratum 2816013 workaround on reset. This erratum applies
876# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
877CPU_FLAG_LIST += ERRATA_X4_2816013
878
Arvind Ram Prakash23b59a32024-08-26 17:04:27 -0500879# Flag to apply erratum 2897503 workaround on reset. This erratum applies
880# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
881CPU_FLAG_LIST += ERRATA_X4_2897503
882
Arvind Ram Prakash196984e2024-11-27 15:02:32 -0600883# Flag to apply erratum 2923985 workaround on reset. This erratum applies
884# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
885CPU_FLAG_LIST += ERRATA_X4_2923985
886
Ryan Everett34a4f242024-05-21 11:56:37 +0100887# Flag to apply erratum 3076789 workaround on reset. This erratum applies
888# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
889CPU_FLAG_LIST += ERRATA_X4_3076789
890
Govindraj Rajadb3048d2025-01-21 18:24:57 -0600891# Flag to apply erratum 3701758 workaround during context save/restore of
892# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
893# of the Cortex-X4 cpu and is still open.
894CPU_FLAG_LIST += ERRATA_X4_3701758
895
Govindraj Rajac8a6cc02025-01-21 18:38:56 -0600896# Flag to apply erratum 3701747 workaround during context save/restore of
897# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of the
898# Cortex-X925 cpu and is still open.
899CPU_FLAG_LIST += ERRATA_X925_3701747
900
Boyan Karatoteve4447632022-11-17 12:01:29 +0000901# Flag to apply erratum 1922240 workaround during reset. This erratum applies
902# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
903CPU_FLAG_LIST += ERRATA_A510_1922240
904
905# Flag to apply erratum 2288014 workaround during reset. This erratum applies
906# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
907# fixed in r1p1.
908CPU_FLAG_LIST += ERRATA_A510_2288014
909
910# Flag to apply erratum 2042739 workaround during reset. This erratum applies
911# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
912CPU_FLAG_LIST += ERRATA_A510_2042739
913
914# Flag to apply erratum 2041909 workaround during reset. This erratum applies
915# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
916# present in r0p0 and r0p1 but there is no workaround for those revisions.
917CPU_FLAG_LIST += ERRATA_A510_2041909
918
Sona Mathew6e864752023-10-12 12:04:53 -0500919# Flag to aply erratum 2080326 workaround during reset. This erratum applies
920# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
921# also present in r0p0 and r0p1 but there is no workaround for those revisions.
922CPU_FLAG_LIST += ERRATA_A510_2080326
923
Boyan Karatoteve4447632022-11-17 12:01:29 +0000924# Flag to apply erratum 2250311 workaround during reset. This erratum applies
925# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
926CPU_FLAG_LIST += ERRATA_A510_2250311
927
928# Flag to apply erratum 2218950 workaround during reset. This erratum applies
929# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
930CPU_FLAG_LIST += ERRATA_A510_2218950
931
932# Flag to apply erratum 2172148 workaround during reset. This erratum applies
933# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
934CPU_FLAG_LIST += ERRATA_A510_2172148
935
936# Flag to apply erratum 2347730 workaround during reset. This erratum applies
937# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
938# and is fixed in r1p2.
939CPU_FLAG_LIST += ERRATA_A510_2347730
940
941# Flag to apply erratum 2371937 workaround during reset. This erratum applies
942# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
943CPU_FLAG_LIST += ERRATA_A510_2371937
944
945# Flag to apply erratum 2666669 workaround during reset. This erratum applies
946# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
947CPU_FLAG_LIST += ERRATA_A510_2666669
948
949# Flag to apply erratum 2684597 workaround during powerdown. This erratum
950# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
951# Cortex-A510 cpu and is fixed in r1p3.
952CPU_FLAG_LIST += ERRATA_A510_2684597
953
Sona Mathew4a9ed7a2023-12-09 20:44:56 -0600954# Flag to apply erratum 2630792 workaround during reset. This erratum applies
955# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
956CPU_FLAG_LIST += ERRATA_A520_2630792
957
Arvind Ram Prakash8d45e302023-12-08 20:19:58 -0600958# Flag to apply erratum 2858100 workaround during reset. This erratum
959# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
960CPU_FLAG_LIST += ERRATA_A520_2858100
961
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500962# Flag to apply erratum 2938996 workaround during reset. This erratum
963# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is fixed in r0p2.
964CPU_FLAG_LIST += ERRATA_A520_2938996
965
Bipin Ravi8852fb52023-09-18 16:34:13 -0500966# Flag to apply erratum 2331132 workaround during reset. This erratum applies
967# to revisions r0p0, r0p1 and r0p2. It is still open.
968CPU_FLAG_LIST += ERRATA_V2_2331132
969
Bipin Ravif98185e2023-10-17 19:42:15 -0500970# Flag to apply erratum 2618597 workaround during reset. This erratum applies
971# to revisions r0p0 and r0p1. It is fixed in r0p2.
972CPU_FLAG_LIST += ERRATA_V2_2618597
973
Bipin Ravid36d1672023-10-17 18:35:55 -0500974# Flag to apply erratum 2662553 workaround during reset. This erratum applies
975# to revisions r0p0 and r0p1. It is fixed in r0p2.
976CPU_FLAG_LIST += ERRATA_V2_2662553
977
Sona Mathewab062f02023-03-14 16:50:36 -0500978# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
979# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
980CPU_FLAG_LIST += ERRATA_V2_2719103
981
Bipin Ravib0114022023-09-18 17:27:29 -0500982# Flag to apply erratum 2719105 workaround during reset. This erratum applies
983# to revisions r0p0 and r0p1. It is fixed in r0p2.
984CPU_FLAG_LIST += ERRATA_V2_2719105
985
Bipin Ravi58dd1532023-09-18 19:54:41 -0500986# Flag to apply erratum 2743011 workaround during reset. This erratum applies
987# to revisions r0p0 and r0p1. It is fixed in r0p2.
988CPU_FLAG_LIST += ERRATA_V2_2743011
989
Bipin Raviff342642023-09-18 19:28:32 -0500990# Flag to apply erratum 2779510 workaround during reset. This erratum applies
991# to revisions r0p0 and r0p1. It is fixed in r0p2.
992CPU_FLAG_LIST += ERRATA_V2_2779510
993
Moritz Fischer40c81ed2023-07-06 00:01:23 +0000994# Flag to apply erratum 2801372 workaround for all configurations.
995# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
996CPU_FLAG_LIST += ERRATA_V2_2801372
997
Bipin Ravi940ebbe2024-02-27 17:49:12 -0600998# Flag to apply erratum 2331818 workaround during reset. This erratum applies
999# to revisions r0p0 and r1p0. It is fixed in r1p1.
1000CPU_FLAG_LIST += ERRATA_A715_2331818
1001
Harrison Mutai3e3ff292024-01-02 16:55:44 +00001002# Flag to apply erratum 2344187 workaround during reset. This erratum applies
1003# to revisions r0p0, and r1p0. It is fixed in r1p1.
1004CPU_FLAG_LIST += ERRATA_A715_2344187
1005
Sona Mathewb59307e2024-02-20 16:59:45 -06001006# Flag to apply erratum 2413290 workaround during reset. This erratum applies
1007# only to revision r1p0. It is fixed in r1p1.
1008CPU_FLAG_LIST += ERRATA_A715_2413290
1009
Bipin Ravi04c60d52024-02-27 17:34:05 -06001010# Flag to apply erratum 2420947 workaround during reset. This erratum applies
1011# only to revision r1p0. It is fixed in r1p1.
1012CPU_FLAG_LIST += ERRATA_A715_2420947
1013
Bipin Ravi301698e2024-02-27 17:14:22 -06001014# Flag to apply erratum 2429384 workaround during reset. This erratum applies
1015# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
1016CPU_FLAG_LIST += ERRATA_A715_2429384
1017
Bipin Ravi26249512024-01-25 16:18:20 -06001018# Flag to apply erratum 2561034 workaround during reset. This erratum applies
1019# only to revision r1p0. It is fixed in r1p1.
1020CPU_FLAG_LIST += ERRATA_A715_2561034
1021
Bipin Ravi1edbf2a2024-04-10 15:06:11 -05001022# Flag to apply erratum 2728106 workaround during reset. This erratum applies
1023# only to revision r0p0, r1p0 and r1p1. It is fixed in r1p2.
1024CPU_FLAG_LIST += ERRATA_A715_2728106
1025
Govindraj Raja857cfc22025-01-21 17:00:11 -06001026# Flag to apply erratum 3699560 workaround during context save/restore of
1027# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p2, r1p3
1028# of the Cortex-A715 cpu and is still open.
1029CPU_FLAG_LIST += ERRATA_A715_3699560
1030
Arvind Ram Prakasha93c69b2024-07-19 15:59:17 -05001031# Flag to apply erratum 2792132 workaround during reset. This erratum applies
1032# to revisions r0p0 and r0p1. It is fixed in r0p2.
1033CPU_FLAG_LIST += ERRATA_A720_2792132
1034
Sona Mathew9d393432024-07-19 18:09:20 -05001035# Flag to apply erratum 2844092 workaround during reset. This erratum applies
1036# to revisions r0p0 and r0p1. It is fixed in r0p2.
1037CPU_FLAG_LIST += ERRATA_A720_2844092
1038
Bipin Ravibaf14742024-03-14 16:52:21 -05001039# Flag to apply erratum 2926083 workaround during reset. This erratum applies
1040# to revisions r0p0 and r0p1. It is fixed in r0p2.
1041CPU_FLAG_LIST += ERRATA_A720_2926083
1042
Bipin Ravi03636f22024-03-12 10:29:16 -05001043# Flag to apply erratum 2940794 workaround during reset. This erratum applies
1044# to revisions r0p0 and r0p1. It is fixed in r0p2.
1045CPU_FLAG_LIST += ERRATA_A720_2940794
1046
Govindraj Raja36b53f92025-01-21 17:12:33 -06001047# Flag to apply erratum 3699561 workaround during context save/restore of
1048# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 of
1049# the Cortex-A720 cpu and is still open.
1050CPU_FLAG_LIST += ERRATA_A720_3699561
1051
Govindraj Raja17b8a8a2025-02-04 16:20:35 +01001052# Flag to apply erratum 3699564 workaround during context save/restore of
1053# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of
1054# the Cortex-A725 cpu and is fixed in r0p2
1055CPU_FLAG_LIST += ERRATA_A725_3699564
1056
Boyan Karatoteve4447632022-11-17 12:01:29 +00001057# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
1058# Applying the workaround results in higher DSU power consumption on idle.
1059CPU_FLAG_LIST += ERRATA_DSU_798953
1060
1061# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
Govindraj Raja36b53f92025-01-21 17:12:33 -06001062# the ACP interface and revision < r0p0. Applying the workaround results in
Boyan Karatoteve4447632022-11-17 12:01:29 +00001063# higher DSU power consumption on idle.
1064CPU_FLAG_LIST += ERRATA_DSU_936184
1065
1066# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1067# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1068# results in higher DSU power consumption on idle.
1069CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001070
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001071ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001072 ifeq (${WORKAROUND_CVE_2018_3639},0)
1073 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1074 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001075endif
1076
Boyan Karatoteve4447632022-11-17 12:01:29 +00001077# process all flags
Yann Gautierb9e252a2025-02-12 14:05:14 +01001078ifeq (${ENABLE_ERRATA_ALL},1)
1079$(eval $(call default_ones, $(CPU_FLAG_LIST)))
1080else
Boyan Karatoteve4447632022-11-17 12:01:29 +00001081$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
Yann Gautierb9e252a2025-02-12 14:05:14 +01001082endif
Boyan Karatoteve4447632022-11-17 12:01:29 +00001083$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1084$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001085
Douglas Raillarda94cc372017-06-19 15:38:02 +01001086# Errata build flags
1087ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001088TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001089endif
1090
1091ifneq (${ERRATA_A53_835769},0)
1092TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001093TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001094endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001095
1096ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1097 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1098ERRATA_SPECULATIVE_AT := 1
1099else
1100ERRATA_SPECULATIVE_AT := 0
1101endif