blob: e1e0f4786d08b67be110a57c0b2afa35dfe7a97a [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Bipin Ravi744f07a2023-12-20 14:32:02 -06002# Copyright (c) 2014-2024, 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
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000040
Javier Almansa Sobrino25bbbd22020-10-23 13:22:07 +010041# Flags to indicate internal or external Last level cache
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000042# By default internal
Boyan Karatoteve4447632022-11-17 12:01:29 +000043CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000044
Boyan Karatoteve4447632022-11-17 12:01:29 +000045# CPU Errata Build flags.
46# These should be enabled by the platform if the erratum workaround needs to be
47# applied.
Varun Wadekarcd0ea182018-06-12 16:49:12 -070048
Boyan Karatoteve4447632022-11-17 12:01:29 +000049# Flag to apply erratum 794073 workaround when disabling mmu.
50CPU_FLAG_LIST += ERRATA_A9_794073
Soby Mathew5541bb32014-09-22 14:13:34 +010051
Boyan Karatoteve4447632022-11-17 12:01:29 +000052# Flag to apply erratum 816470 workaround during power down. This erratum
53# applies only to revision >= r3p0 of the Cortex A15 cpu.
54CPU_FLAG_LIST += ERRATA_A15_816470
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000055
Boyan Karatoteve4447632022-11-17 12:01:29 +000056# Flag to apply erratum 827671 workaround during reset. This erratum applies
57# only to revision >= r3p0 of the Cortex A15 cpu.
58CPU_FLAG_LIST += ERRATA_A15_827671
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000059
Boyan Karatoteve4447632022-11-17 12:01:29 +000060# Flag to apply erratum 852421 workaround during reset. This erratum applies
61# only to revision <= r1p2 of the Cortex A17 cpu.
62CPU_FLAG_LIST += ERRATA_A17_852421
Soby Mathew5541bb32014-09-22 14:13:34 +010063
Boyan Karatoteve4447632022-11-17 12:01:29 +000064# Flag to apply erratum 852423 workaround during reset. This erratum applies
65# only to revision <= r1p2 of the Cortex A17 cpu.
66CPU_FLAG_LIST += ERRATA_A17_852423
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010067
Boyan Karatoteve4447632022-11-17 12:01:29 +000068# Flag to apply erratum 855472 workaround during reset. This erratum applies
69# only to revision r0p0 of the Cortex A35 cpu.
70CPU_FLAG_LIST += ERRATA_A35_855472
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010071
Boyan Karatoteve4447632022-11-17 12:01:29 +000072# Flag to apply erratum 819472 workaround during reset. This erratum applies
73# only to revision <= r0p1 of the Cortex A53 cpu.
74CPU_FLAG_LIST += ERRATA_A53_819472
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060075
Boyan Karatoteve4447632022-11-17 12:01:29 +000076# Flag to apply erratum 824069 workaround during reset. This erratum applies
77# only to revision <= r0p2 of the Cortex A53 cpu.
78CPU_FLAG_LIST += ERRATA_A53_824069
79
80# Flag to apply erratum 826319 workaround during reset. This erratum applies
81# only to revision <= r0p2 of the Cortex A53 cpu.
82CPU_FLAG_LIST += ERRATA_A53_826319
83
84# Flag to apply erratum 827319 workaround during reset. This erratum applies
85# only to revision <= r0p2 of the Cortex A53 cpu.
86CPU_FLAG_LIST += ERRATA_A53_827319
87
88# Flag to apply erratum 835769 workaround at compile and link time. This
89# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
90# workaround can lead the linker to create "*.stub" sections.
91CPU_FLAG_LIST += ERRATA_A53_835769
92
93# Flag to apply erratum 836870 workaround during reset. This erratum applies
94# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
95# erratum workaround is enabled by default in hardware.
96CPU_FLAG_LIST += ERRATA_A53_836870
97
98# Flag to apply erratum 843419 workaround at link time.
99# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
100# workaround could lead the linker to emit "*.stub" sections which are 4kB
101# aligned.
102CPU_FLAG_LIST += ERRATA_A53_843419
103
104# Flag to apply errata 855873 during reset. This errata applies to all
105# revisions of the Cortex A53 CPU, but this firmware workaround only works
106# for revisions r0p3 and higher. Earlier revisions are taken care
107# of by the rich OS.
108CPU_FLAG_LIST += ERRATA_A53_855873
109
110# Flag to apply erratum 1530924 workaround during reset. This erratum applies
111# to all revisions of Cortex A53 cpu.
112CPU_FLAG_LIST += ERRATA_A53_1530924
113
114# Flag to apply erratum 768277 workaround during reset. This erratum applies
115# only to revision r0p0 of the Cortex A55 cpu.
116CPU_FLAG_LIST += ERRATA_A55_768277
117
118# Flag to apply erratum 778703 workaround during reset. This erratum applies
119# only to revision r0p0 of the Cortex A55 cpu.
120CPU_FLAG_LIST += ERRATA_A55_778703
121
122# Flag to apply erratum 798797 workaround during reset. This erratum applies
123# only to revision r0p0 of the Cortex A55 cpu.
124CPU_FLAG_LIST += ERRATA_A55_798797
125
126# Flag to apply erratum 846532 workaround during reset. This erratum applies
127# only to revision <= r0p1 of the Cortex A55 cpu.
128CPU_FLAG_LIST += ERRATA_A55_846532
129
130# Flag to apply erratum 903758 workaround during reset. This erratum applies
131# only to revision <= r0p1 of the Cortex A55 cpu.
132CPU_FLAG_LIST += ERRATA_A55_903758
133
134# Flag to apply erratum 1221012 workaround during reset. This erratum applies
135# only to revision <= r1p0 of the Cortex A55 cpu.
136CPU_FLAG_LIST += ERRATA_A55_1221012
137
138# Flag to apply erratum 1530923 workaround during reset. This erratum applies
139# to all revisions of Cortex A55 cpu.
140CPU_FLAG_LIST += ERRATA_A55_1530923
141
142# Flag to apply erratum 806969 workaround during reset. This erratum applies
143# only to revision r0p0 of the Cortex A57 cpu.
144CPU_FLAG_LIST += ERRATA_A57_806969
145
146# Flag to apply erratum 813419 workaround during reset. This erratum applies
147# only to revision r0p0 of the Cortex A57 cpu.
148CPU_FLAG_LIST += ERRATA_A57_813419
149
150# Flag to apply erratum 813420 workaround during reset. This erratum applies
151# only to revision r0p0 of the Cortex A57 cpu.
152CPU_FLAG_LIST += ERRATA_A57_813420
153
154# Flag to apply erratum 814670 workaround during reset. This erratum applies
155# only to revision r0p0 of the Cortex A57 cpu.
156CPU_FLAG_LIST += ERRATA_A57_814670
157
158# Flag to apply erratum 817169 workaround during power down. This erratum
159# applies only to revision <= r0p1 of the Cortex A57 cpu.
160CPU_FLAG_LIST += ERRATA_A57_817169
161
162# Flag to apply erratum 826974 workaround during reset. This erratum applies
163# only to revision <= r1p1 of the Cortex A57 cpu.
164CPU_FLAG_LIST += ERRATA_A57_826974
165
166# Flag to apply erratum 826977 workaround during reset. This erratum applies
167# only to revision <= r1p1 of the Cortex A57 cpu.
168CPU_FLAG_LIST += ERRATA_A57_826977
169
170# Flag to apply erratum 828024 workaround during reset. This erratum applies
171# only to revision <= r1p1 of the Cortex A57 cpu.
172CPU_FLAG_LIST += ERRATA_A57_828024
173
174# Flag to apply erratum 829520 workaround during reset. This erratum applies
175# only to revision <= r1p2 of the Cortex A57 cpu.
176CPU_FLAG_LIST += ERRATA_A57_829520
177
178# Flag to apply erratum 833471 workaround during reset. This erratum applies
179# only to revision <= r1p2 of the Cortex A57 cpu.
180CPU_FLAG_LIST += ERRATA_A57_833471
181
182# Flag to apply erratum 855972 workaround during reset. This erratum applies
183# only to revision <= r1p3 of the Cortex A57 cpu.
184CPU_FLAG_LIST += ERRATA_A57_859972
185
186# Flag to apply erratum 1319537 workaround during reset. This erratum applies
187# to all revisions of Cortex A57 cpu.
188CPU_FLAG_LIST += ERRATA_A57_1319537
189
190# Flag to apply erratum 855971 workaround during reset. This erratum applies
191# only to revision <= r0p3 of the Cortex A72 cpu.
192CPU_FLAG_LIST += ERRATA_A72_859971
193
194# Flag to apply erratum 1319367 workaround during reset. This erratum applies
195# to all revisions of Cortex A72 cpu.
196CPU_FLAG_LIST += ERRATA_A72_1319367
197
198# Flag to apply erratum 852427 workaround during reset. This erratum applies
199# only to revision r0p0 of the Cortex A73 cpu.
200CPU_FLAG_LIST += ERRATA_A73_852427
201
202# Flag to apply erratum 855423 workaround during reset. This erratum applies
203# only to revision <= r0p1 of the Cortex A73 cpu.
204CPU_FLAG_LIST += ERRATA_A73_855423
205
206# Flag to apply erratum 764081 workaround during reset. This erratum applies
207# only to revision <= r0p0 of the Cortex A75 cpu.
208CPU_FLAG_LIST += ERRATA_A75_764081
209
210# Flag to apply erratum 790748 workaround during reset. This erratum applies
211# only to revision <= r0p0 of the Cortex A75 cpu.
212CPU_FLAG_LIST += ERRATA_A75_790748
213
214# Flag to apply erratum 1073348 workaround during reset. This erratum applies
215# only to revision <= r1p0 of the Cortex A76 cpu.
216CPU_FLAG_LIST += ERRATA_A76_1073348
217
218# Flag to apply erratum 1130799 workaround during reset. This erratum applies
219# only to revision <= r2p0 of the Cortex A76 cpu.
220CPU_FLAG_LIST += ERRATA_A76_1130799
221
222# Flag to apply erratum 1220197 workaround during reset. This erratum applies
223# only to revision <= r2p0 of the Cortex A76 cpu.
224CPU_FLAG_LIST += ERRATA_A76_1220197
225
226# Flag to apply erratum 1257314 workaround during reset. This erratum applies
227# only to revision <= r3p0 of the Cortex A76 cpu.
228CPU_FLAG_LIST += ERRATA_A76_1257314
229
230# Flag to apply erratum 1262606 workaround during reset. This erratum applies
231# only to revision <= r3p0 of the Cortex A76 cpu.
232CPU_FLAG_LIST += ERRATA_A76_1262606
233
234# Flag to apply erratum 1262888 workaround during reset. This erratum applies
235# only to revision <= r3p0 of the Cortex A76 cpu.
236CPU_FLAG_LIST += ERRATA_A76_1262888
237
238# Flag to apply erratum 1275112 workaround during reset. This erratum applies
239# only to revision <= r3p0 of the Cortex A76 cpu.
240CPU_FLAG_LIST += ERRATA_A76_1275112
241
242# Flag to apply erratum 1286807 workaround during reset. This erratum applies
243# only to revision <= r3p0 of the Cortex A76 cpu.
244CPU_FLAG_LIST += ERRATA_A76_1286807
245
246# Flag to apply erratum 1791580 workaround during reset. This erratum applies
247# only to revision <= r4p0 of the Cortex A76 cpu.
248CPU_FLAG_LIST += ERRATA_A76_1791580
249
250# Flag to apply erratum 1165522 workaround during reset. This erratum applies
251# to all revisions of Cortex A76 cpu.
252CPU_FLAG_LIST += ERRATA_A76_1165522
253
254# Flag to apply erratum 1868343 workaround during reset. This erratum applies
255# only to revision <= r4p0 of the Cortex A76 cpu.
256CPU_FLAG_LIST += ERRATA_A76_1868343
257
258# Flag to apply erratum 1946160 workaround during reset. This erratum applies
259# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
260CPU_FLAG_LIST += ERRATA_A76_1946160
261
262# Flag to apply erratum 2743102 workaround during powerdown. This erratum
263# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open.
264CPU_FLAG_LIST += ERRATA_A76_2743102
265
266# Flag to apply erratum 1508412 workaround during reset. This erratum applies
267# only to revision <= r1p0 of the Cortex A77 cpu.
268CPU_FLAG_LIST += ERRATA_A77_1508412
269
270# Flag to apply erratum 1925769 workaround during reset. This erratum applies
271# only to revision <= r1p1 of the Cortex A77 cpu.
272CPU_FLAG_LIST += ERRATA_A77_1925769
273
274# Flag to apply erratum 1946167 workaround during reset. This erratum applies
275# only to revision <= r1p1 of the Cortex A77 cpu.
276CPU_FLAG_LIST += ERRATA_A77_1946167
277
278# Flag to apply erratum 1791578 workaround during reset. This erratum applies
279# to revisions r0p0, r1p0, and r1p1, it is still open.
280CPU_FLAG_LIST += ERRATA_A77_1791578
281
282# Flag to apply erratum 2356587 workaround during reset. This erratum applies
283# to revisions r0p0, r1p0, and r1p1, it is still open.
284CPU_FLAG_LIST += ERRATA_A77_2356587
285
286# Flag to apply erratum 1800714 workaround during reset. This erratum applies
287# to revisions <= r1p1 of the Cortex A77 cpu.
288CPU_FLAG_LIST += ERRATA_A77_1800714
289
290# Flag to apply erratum 2743100 workaround during power down. This erratum
291# applies to revisions r0p0, r1p0, and r1p1, it is still open.
292CPU_FLAG_LIST += ERRATA_A77_2743100
293
294# Flag to apply erratum 1688305 workaround during reset. This erratum applies
295# to revisions r0p0 - r1p0 of the A78 cpu.
296CPU_FLAG_LIST += ERRATA_A78_1688305
297
298# Flag to apply erratum 1941498 workaround during reset. This erratum applies
299# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
300CPU_FLAG_LIST += ERRATA_A78_1941498
301
302# Flag to apply erratum 1951500 workaround during reset. This erratum applies
303# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
304# well but there is no workaround for that revision.
305CPU_FLAG_LIST += ERRATA_A78_1951500
306
307# Flag to apply erratum 1821534 workaround during reset. This erratum applies
308# to revisions r0p0 and r1p0 of the A78 cpu.
309CPU_FLAG_LIST += ERRATA_A78_1821534
310
311# Flag to apply erratum 1952683 workaround during reset. This erratum applies
312# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
313CPU_FLAG_LIST += ERRATA_A78_1952683
314
315# Flag to apply erratum 2132060 workaround during reset. This erratum applies
316# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
317CPU_FLAG_LIST += ERRATA_A78_2132060
318
319# Flag to apply erratum 2242635 workaround during reset. This erratum applies
320# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
321# present in r0p0 as well but there is no workaround for that revision.
322CPU_FLAG_LIST += ERRATA_A78_2242635
323
324# Flag to apply erratum 2376745 workaround during reset. This erratum applies
325# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
326CPU_FLAG_LIST += ERRATA_A78_2376745
327
328# Flag to apply erratum 2395406 workaround during reset. This erratum applies
329# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
330CPU_FLAG_LIST += ERRATA_A78_2395406
331
Sona Mathewab062f02023-03-14 16:50:36 -0500332# Flag to apply erratum 2712571 workaround for non-arm interconnect ip. This
333# erratum applies to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu.
334# It is fixed in r1p2.
335CPU_FLAG_LIST += ERRATA_A78_2712571
336
Boyan Karatoteve4447632022-11-17 12:01:29 +0000337# Flag to apply erratum 2742426 workaround during reset. This erratum
338# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
339# open.
340CPU_FLAG_LIST += ERRATA_A78_2742426
341
342# Flag to apply erratum 2772019 workaround during powerdown. This erratum
343# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
344# open.
345CPU_FLAG_LIST += ERRATA_A78_2772019
346
347# Flag to apply erratum 2779479 workaround during reset. This erratum applies
348# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open.
349CPU_FLAG_LIST += ERRATA_A78_2779479
350
351# Flag to apply erratum 1941500 workaround during reset. This erratum applies
352# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
353CPU_FLAG_LIST += ERRATA_A78_AE_1941500
354
355# Flag to apply erratum 1951502 workaround during reset. This erratum applies
356# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
357CPU_FLAG_LIST += ERRATA_A78_AE_1951502
358
359# Flag to apply erratum 2376748 workaround during reset. This erratum applies
Sona Mathewc8146192023-10-10 16:48:57 -0500360# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000361CPU_FLAG_LIST += ERRATA_A78_AE_2376748
362
363# Flag to apply erratum 2395408 workaround during reset. This erratum applies
364# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
365CPU_FLAG_LIST += ERRATA_A78_AE_2395408
366
Bipin Ravi672eb212023-03-14 10:04:23 -0500367# Flag to apply erratum 1827430 workaround during reset. This erratum applies
368# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
369CPU_FLAG_LIST += ERRATA_A78C_1827430
370
Bipin Ravib01a59e2023-03-14 11:03:24 -0500371# Flag to apply erratum 1827440 workaround during reset. This erratum applies
372# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
373CPU_FLAG_LIST += ERRATA_A78C_1827440
374
Sona Mathewab062f02023-03-14 16:50:36 -0500375# Flag to apply erratum 2712574 workaround for non-arm interconnect ip. This
376# erratum applies to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu.
377# It is still open.
378CPU_FLAG_LIST += ERRATA_A78_AE_2712574
379
Boyan Karatoteve4447632022-11-17 12:01:29 +0000380# Flag to apply erratum 2132064 workaround during reset. This erratum applies
381# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
382CPU_FLAG_LIST += ERRATA_A78C_2132064
383
384# Flag to apply erratum 2242638 workaround during reset. This erratum applies
385# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
386CPU_FLAG_LIST += ERRATA_A78C_2242638
387
388# Flag to apply erratum 2376749 workaround during reset. This erratum applies
389# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
390CPU_FLAG_LIST += ERRATA_A78C_2376749
391
392# Flag to apply erratum 2395411 workaround during reset. This erratum applies
393# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
394CPU_FLAG_LIST += ERRATA_A78C_2395411
395
Bipin Ravi0e5e9942023-12-20 15:40:44 -0600396# Flag to apply erratum 2683027 workaround during reset. This erratum applies
397# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
398CPU_FLAG_LIST += ERRATA_A78C_2683027
399
Sona Mathewab062f02023-03-14 16:50:36 -0500400# Flag to apply erratum 2712575 workaround for non-arm interconnect ip. This
401# erratum applies to revisions r0p1 and r0p2 of the A78C cpu.
402# It is still open.
403CPU_FLAG_LIST += ERRATA_A78C_2712575
404
Sona Mathew6becda52023-11-14 14:00:48 -0600405# Flag to apply erratum 2743232 workaround during reset. This erratum applies
406# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
407CPU_FLAG_LIST += ERRATA_A78C_2743232
408
Boyan Karatoteve4447632022-11-17 12:01:29 +0000409# Flag to apply erratum 2772121 workaround during powerdown. This erratum
410# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open.
411CPU_FLAG_LIST += ERRATA_A78C_2772121
412
413# Flag to apply erratum 2779484 workaround during reset. This erratum
414# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
415CPU_FLAG_LIST += ERRATA_A78C_2779484
416
417# Flag to apply erratum 1821534 workaround during reset. This erratum applies
418# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
419CPU_FLAG_LIST += ERRATA_X1_1821534
420
421# Flag to apply erratum 1688305 workaround during reset. This erratum applies
422# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
423CPU_FLAG_LIST += ERRATA_X1_1688305
424
425# Flag to apply erratum 1827429 workaround during reset. This erratum applies
426# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
427CPU_FLAG_LIST += ERRATA_X1_1827429
428
429# Flag to apply T32 CLREX workaround during reset. This erratum applies
430# only to r0p0 and r1p0 of the Neoverse N1 cpu.
431CPU_FLAG_LIST += ERRATA_N1_1043202
432
433# Flag to apply erratum 1073348 workaround during reset. This erratum applies
434# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
435CPU_FLAG_LIST += ERRATA_N1_1073348
436
437# Flag to apply erratum 1130799 workaround during reset. This erratum applies
438# only to revision <= r2p0 of the Neoverse N1 cpu.
439CPU_FLAG_LIST += ERRATA_N1_1130799
440
441# Flag to apply erratum 1165347 workaround during reset. This erratum applies
442# only to revision <= r2p0 of the Neoverse N1 cpu.
443CPU_FLAG_LIST += ERRATA_N1_1165347
444
445# Flag to apply erratum 1207823 workaround during reset. This erratum applies
446# only to revision <= r2p0 of the Neoverse N1 cpu.
447CPU_FLAG_LIST += ERRATA_N1_1207823
448
449# Flag to apply erratum 1220197 workaround during reset. This erratum applies
450# only to revision <= r2p0 of the Neoverse N1 cpu.
451CPU_FLAG_LIST += ERRATA_N1_1220197
452
453# Flag to apply erratum 1257314 workaround during reset. This erratum applies
454# only to revision <= r3p0 of the Neoverse N1 cpu.
455CPU_FLAG_LIST += ERRATA_N1_1257314
456
457# Flag to apply erratum 1262606 workaround during reset. This erratum applies
458# only to revision <= r3p0 of the Neoverse N1 cpu.
459CPU_FLAG_LIST += ERRATA_N1_1262606
460
461# Flag to apply erratum 1262888 workaround during reset. This erratum applies
462# only to revision <= r3p0 of the Neoverse N1 cpu.
463CPU_FLAG_LIST += ERRATA_N1_1262888
464
465# Flag to apply erratum 1275112 workaround during reset. This erratum applies
466# only to revision <= r3p0 of the Neoverse N1 cpu.
467CPU_FLAG_LIST += ERRATA_N1_1275112
468
469# Flag to apply erratum 1315703 workaround during reset. This erratum applies
470# to revisions before r3p1 of the Neoverse N1 cpu.
471CPU_FLAG_LIST += ERRATA_N1_1315703
472
473# Flag to apply erratum 1542419 workaround during reset. This erratum applies
474# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
475CPU_FLAG_LIST += ERRATA_N1_1542419
476
477# Flag to apply erratum 1868343 workaround during reset. This erratum applies
478# to revision <= r4p0 of the Neoverse N1 cpu.
479CPU_FLAG_LIST += ERRATA_N1_1868343
480
481# Flag to apply erratum 1946160 workaround during reset. This erratum applies
482# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
483# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
484CPU_FLAG_LIST += ERRATA_N1_1946160
485
486# Flag to apply erratum 2743102 workaround during powerdown. This erratum
487# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open.
488CPU_FLAG_LIST += ERRATA_N1_2743102
489
490# Flag to apply erratum 1618635 workaround during reset. This erratum applies
491# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
492CPU_FLAG_LIST += ERRATA_V1_1618635
493
494# Flag to apply erratum 1774420 workaround during reset. This erratum applies
495# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
496CPU_FLAG_LIST += ERRATA_V1_1774420
497
498# Flag to apply erratum 1791573 workaround during reset. This erratum applies
499# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
500CPU_FLAG_LIST += ERRATA_V1_1791573
501
502# Flag to apply erratum 1852267 workaround during reset. This erratum applies
503# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
504CPU_FLAG_LIST += ERRATA_V1_1852267
505
506# Flag to apply erratum 1925756 workaround during reset. This needs to be
507# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
508CPU_FLAG_LIST += ERRATA_V1_1925756
509
510# Flag to apply erratum 1940577 workaround during reset. This erratum applies
511# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
512CPU_FLAG_LIST += ERRATA_V1_1940577
513
514# Flag to apply erratum 1966096 workaround during reset. This erratum applies
515# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
516# exists in r0p0 as well but there is no workaround for that revision.
517CPU_FLAG_LIST += ERRATA_V1_1966096
518
519# Flag to apply erratum 2139242 workaround during reset. This erratum applies
520# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
521CPU_FLAG_LIST += ERRATA_V1_2139242
522
523# Flag to apply erratum 2108267 workaround during reset. This erratum applies
524# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
525CPU_FLAG_LIST += ERRATA_V1_2108267
526
527# Flag to apply erratum 2216392 workaround during reset. This erratum applies
528# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
529# issue exists in r0p0 as well but there is no workaround for that revision.
530CPU_FLAG_LIST += ERRATA_V1_2216392
531
532# Flag to apply erratum 2294912 workaround during reset. This erratum applies
Sona Mathewab2b56d2023-10-16 15:12:30 -0500533# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000534CPU_FLAG_LIST += ERRATA_V1_2294912
535
Sona Mathew25cf2842023-11-07 13:46:15 -0600536# Flag to apply erratum 2348377 workaround during reset. This erratum applies
537# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is fixed in r1p2.
538CPU_FLAG_LIST += ERRATA_V1_2348377
539
Boyan Karatoteve4447632022-11-17 12:01:29 +0000540# Flag to apply erratum 2372203 workaround during reset. This erratum applies
541# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
542CPU_FLAG_LIST += ERRATA_V1_2372203
543
Sona Mathewab062f02023-03-14 16:50:36 -0500544# Flag to apply erratum 2701953 workaround to non-arm interconnect ip. This
545# erratum applies to revisions r0p0, r1p0, r1p1 of the Neoverse V1 cpu,
546# it is fixed in r1p2.
547CPU_FLAG_LIST += ERRATA_V1_2701953
548
Boyan Karatoteve4447632022-11-17 12:01:29 +0000549# Flag to apply erratum 2743093 workaround during powerdown. This erratum
550# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
551# still open.
552CPU_FLAG_LIST += ERRATA_V1_2743093
553
554# Flag to apply erratum 2743233 workaround during powerdown. This erratum
555# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
556# still open.
557CPU_FLAG_LIST += ERRATA_V1_2743233
558
559# Flag to apply erratum 2779461 workaround during powerdown. This erratum
560# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
561# still open.
562CPU_FLAG_LIST += ERRATA_V1_2779461
563
564# Flag to apply erratum 1987031 workaround during reset. This erratum applies
565# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
566CPU_FLAG_LIST += ERRATA_A710_1987031
567
568# Flag to apply erratum 2081180 workaround during reset. This erratum applies
569# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
570CPU_FLAG_LIST += ERRATA_A710_2081180
571
572# Flag to apply erratum 2083908 workaround during reset. This erratum applies
573# to revision r2p0 of the Cortex-A710 cpu and is still open.
574CPU_FLAG_LIST += ERRATA_A710_2083908
575
576# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew2bf79392023-10-10 13:51:45 -0500577# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
578# open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000579CPU_FLAG_LIST += ERRATA_A710_2058056
580
581# Flag to apply erratum 2055002 workaround during reset. This erratum applies
582# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
583CPU_FLAG_LIST += ERRATA_A710_2055002
584
585# Flag to apply erratum 2017096 workaround during reset. This erratum applies
586# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
587CPU_FLAG_LIST += ERRATA_A710_2017096
588
589# Flag to apply erratum 2267065 workaround during reset. This erratum applies
590# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
591CPU_FLAG_LIST += ERRATA_A710_2267065
592
593# Flag to apply erratum 2136059 workaround during reset. This erratum applies
594# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
595CPU_FLAG_LIST += ERRATA_A710_2136059
596
597# Flag to apply erratum 2147715 workaround during reset. This erratum applies
598# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
599CPU_FLAG_LIST += ERRATA_A710_2147715
600
601# Flag to apply erratum 2216384 workaround during reset. This erratum applies
602# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
603CPU_FLAG_LIST += ERRATA_A710_2216384
604
605# Flag to apply erratum 2282622 workaround during reset. This erratum applies
606# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
607# open.
608CPU_FLAG_LIST += ERRATA_A710_2282622
609
610# Flag to apply erratum 2291219 workaround during reset. This erratum applies
611# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
612CPU_FLAG_LIST += ERRATA_A710_2291219
613
614# Flag to apply erratum 2008768 workaround during reset. This erratum applies
615# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
616CPU_FLAG_LIST += ERRATA_A710_2008768
617
618# Flag to apply erratum 2371105 workaround during reset. This erratum applies
619# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
620CPU_FLAG_LIST += ERRATA_A710_2371105
621
Sona Mathewab062f02023-03-14 16:50:36 -0500622# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
623# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
624# and is still open.
625CPU_FLAG_LIST += ERRATA_A710_2701952
626
Bipin Ravid7bc2cb2023-10-17 07:55:55 -0500627# Flag to apply erratum 2742423 workaround during reset. This erratum applies
628# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
629# open.
630CPU_FLAG_LIST += ERRATA_A710_2742423
631
Boyan Karatoteve4447632022-11-17 12:01:29 +0000632# Flag to apply erratum 2768515 workaround during power down. This erratum
633# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
634# still open.
635CPU_FLAG_LIST += ERRATA_A710_2768515
636
Sona Mathewe27b8ec2023-12-08 20:52:17 -0600637# Flag to apply erratum 2778471 workaround during reset. This erratum applies
638# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
639# open.
640CPU_FLAG_LIST += ERRATA_A710_2778471
641
Boyan Karatoteve4447632022-11-17 12:01:29 +0000642# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500643# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000644CPU_FLAG_LIST += ERRATA_N2_2002655
645
Bipin Ravi74bfe312023-08-29 13:59:09 -0500646# Flag to apply erratum 2009478 workaround during powerdown. This erratum
647# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
648CPU_FLAG_LIST += ERRATA_N2_2009478
649
Boyan Karatoteve4447632022-11-17 12:01:29 +0000650# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500651# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000652CPU_FLAG_LIST += ERRATA_N2_2067956
653
654# Flag to apply erratum 2025414 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500655# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000656CPU_FLAG_LIST += ERRATA_N2_2025414
657
658# Flag to apply erratum 2189731 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500659# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000660CPU_FLAG_LIST += ERRATA_N2_2189731
661
662# Flag to apply erratum 2138956 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_2138956
665
666# Flag to apply erratum 2138953 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500667# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000668CPU_FLAG_LIST += ERRATA_N2_2138953
669
670# Flag to apply erratum 2242415 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_2242415
673
674# Flag to apply erratum 2138958 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_2138958
677
678# Flag to apply erratum 2242400 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_2242400
681
682# Flag to apply erratum 2280757 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_2280757
685
Bipin Ravi68085ad2023-10-17 06:21:15 -0500686# Flag to apply erratum 2326639 workaroud during powerdown. This erratum
Boyan Karatoteve4447632022-11-17 12:01:29 +0000687# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
688CPU_FLAG_LIST += ERRATA_N2_2326639
689
Bipin Ravi68085ad2023-10-17 06:21:15 -0500690# Flag to apply erratum 2340933 workaroud during reset. This erratum
691# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
692CPU_FLAG_LIST += ERRATA_N2_2340933
693
Bipin Ravi6cb8be12023-10-17 05:56:01 -0500694# Flag to apply erratum 2346952 workaround during reset. This erratum applies
695# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
696CPU_FLAG_LIST += ERRATA_N2_2346952
697
Boyan Karatoteve4447632022-11-17 12:01:29 +0000698# Flag to apply erratum 2376738 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500699# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000700CPU_FLAG_LIST += ERRATA_N2_2376738
701
702# Flag to apply erratum 2388450 workaround during reset. This erratum applies
703# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
704CPU_FLAG_LIST += ERRATA_N2_2388450
705
Sona Mathewab062f02023-03-14 16:50:36 -0500706# Flag to apply erratum 2728475 workaround for non-arm interconnect ip. This
707# erratum applies to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in
708# r0p3.
709CPU_FLAG_LIST += ERRATA_N2_2728475
710
Arvind Ram Prakasheb440352023-07-05 17:24:23 -0500711# Flag to apply erratum 2743014 workaround during reset. This erratum applies
712# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
713CPU_FLAG_LIST += ERRATA_N2_2743014
714
Boyan Karatoteve4447632022-11-17 12:01:29 +0000715# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
716# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
717CPU_FLAG_LIST += ERRATA_N2_2743089
718
Arvind Ram Prakash12d28062023-07-17 14:46:14 -0500719# Flag to apply erratum 2779511 workaround during reset. This erratum applies
720# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
721CPU_FLAG_LIST += ERRATA_N2_2779511
722
Boyan Karatoteve4447632022-11-17 12:01:29 +0000723# Flag to apply erratum 2002765 workaround during reset. This erratum applies
724# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
725CPU_FLAG_LIST += ERRATA_X2_2002765
726
727# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew8ae66d62023-10-16 13:33:18 -0500728# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000729CPU_FLAG_LIST += ERRATA_X2_2058056
730
731# Flag to apply erratum 2083908 workaround during reset. This erratum applies
732# to revision r2p0 of the Cortex-X2 cpu and is still open.
733CPU_FLAG_LIST += ERRATA_X2_2083908
734
735# Flag to apply erratum 2017096 workaround during reset. This erratum applies
736# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
737# r2p1.
738CPU_FLAG_LIST += ERRATA_X2_2017096
739
740# Flag to apply erratum 2081180 workaround during reset. This erratum applies
741# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
742# r2p1.
743CPU_FLAG_LIST += ERRATA_X2_2081180
744
745# Flag to apply erratum 2216384 workaround during reset. This erratum applies
746# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
747# r2p1.
748CPU_FLAG_LIST += ERRATA_X2_2216384
749
750# Flag to apply erratum 2147715 workaround during reset. This erratum applies
751# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
752CPU_FLAG_LIST += ERRATA_X2_2147715
753
754# Flag to apply erratum 2282622 workaround during reset. This erratum applies
755# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
756# open.
757CPU_FLAG_LIST += ERRATA_X2_2282622
758
759# Flag to apply erratum 2371105 workaround during reset. This erratum applies
760# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
761CPU_FLAG_LIST += ERRATA_X2_2371105
762
Sona Mathewab062f02023-03-14 16:50:36 -0500763# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
764# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
765# and is still open.
766CPU_FLAG_LIST += ERRATA_X2_2701952
767
Bipin Ravife06e112023-10-17 09:11:19 -0500768# Flag to apply erratum 2742423 workaround during reset. This erratum applies
769# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
770CPU_FLAG_LIST += ERRATA_X2_2742423
771
Boyan Karatoteve4447632022-11-17 12:01:29 +0000772# Flag to apply erratum 2768515 workaround during power down. This erratum
773# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
774# still open.
775CPU_FLAG_LIST += ERRATA_X2_2768515
776
Sona Mathewb312fa02023-12-09 13:09:30 -0600777# Flag to apply erratum 2778471 workaround during reset. This erratum applies
778# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
779CPU_FLAG_LIST += ERRATA_X2_2778471
780
Sona Mathew24543162023-10-03 17:09:09 -0500781# Flag to apply erratum 2070301 workaround on reset. This erratum applies
782# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
783# still open.
784CPU_FLAG_LIST += ERRATA_X3_2070301
785
Bipin Ravi7c227dc2023-12-20 14:53:37 -0600786# Flag to apply erratum 2266875 workaround during reset. This erratum applies
787# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
788CPU_FLAG_LIST += ERRATA_X3_2266875
789
Bipin Ravi744f07a2023-12-20 14:32:02 -0600790# Flag to apply erratum 2302506 workaround during reset. This erratum applies
791# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
792CPU_FLAG_LIST += ERRATA_X3_2302506
793
Boyan Karatoteve4447632022-11-17 12:01:29 +0000794# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
795# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
796CPU_FLAG_LIST += ERRATA_X3_2313909
797
Bipin Ravi5f8f7452024-02-27 15:13:17 -0600798# Flag to apply erratum 2372204 workaround during reset. This erratum applies
799# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
800CPU_FLAG_LIST += ERRATA_X3_2372204
801
Boyan Karatoteve4447632022-11-17 12:01:29 +0000802# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
Sona Mathew635c83e2024-03-15 11:07:33 -0500803# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000804CPU_FLAG_LIST += ERRATA_X3_2615812
805
Bipin Ravi84fcd042024-01-25 15:38:46 -0600806# Flag to apply erratum 2641945 workaround on reset. This erratum applies
807# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
808CPU_FLAG_LIST += ERRATA_X3_2641945
809
Sona Mathewa234f542024-02-21 15:07:30 -0600810# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
811# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
812CPU_FLAG_LIST += ERRATA_X3_2701951
813
Sona Mathew5b0e4432023-09-05 14:10:03 -0500814# Flag to apply erratum 2742421 workaround on reset. This erratum applies
815# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
816CPU_FLAG_LIST += ERRATA_X3_2742421
817
Harrison Mutai88a8cd02023-12-12 11:17:19 +0000818# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
819# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
820CPU_FLAG_LIST += ERRATA_X3_2743088
821
Sona Mathew402b9a92023-11-06 13:48:22 -0600822# Flag to apply erratum 2779509 workaround on reset. This erratum applies
823# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
824CPU_FLAG_LIST += ERRATA_X3_2779509
825
Sona Mathewd466c5d2024-03-01 13:36:21 -0600826# Flag to apply erratum 2701112 workaround for platforms that do not use an
827# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
828# cpu and is fixed in r0p1.
829CPU_FLAG_LIST += ERRATA_X4_2701112
830
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500831# Flag to apply erratum 2726228 workaround during warmboot. This erratum
832# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
833CPU_FLAG_LIST += ERRATA_X4_2726228
834
Bipin Ravi3609b0a2024-04-10 15:33:21 -0500835# Flag to apply erratum 2740089 workaround during powerdown. This erratum
836# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
837CPU_FLAG_LIST += ERRATA_X4_2740089
838
Sona Mathew200931d2024-04-05 16:27:07 -0500839# Flag to apply erratum 2763018 workaround on reset. This erratum applies
840# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
841CPU_FLAG_LIST += ERRATA_X4_2763018
842
Sona Mathew582b9502024-07-16 14:34:42 -0500843# Flag to apply erratum 2816013 workaround on reset. This erratum applies
844# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
845CPU_FLAG_LIST += ERRATA_X4_2816013
846
Arvind Ram Prakash23b59a32024-08-26 17:04:27 -0500847# Flag to apply erratum 2897503 workaround on reset. This erratum applies
848# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
849CPU_FLAG_LIST += ERRATA_X4_2897503
850
Ryan Everett34a4f242024-05-21 11:56:37 +0100851# Flag to apply erratum 3076789 workaround on reset. This erratum applies
852# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
853CPU_FLAG_LIST += ERRATA_X4_3076789
854
Boyan Karatoteve4447632022-11-17 12:01:29 +0000855# Flag to apply erratum 1922240 workaround during reset. This erratum applies
856# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
857CPU_FLAG_LIST += ERRATA_A510_1922240
858
859# Flag to apply erratum 2288014 workaround during reset. This erratum applies
860# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
861# fixed in r1p1.
862CPU_FLAG_LIST += ERRATA_A510_2288014
863
864# Flag to apply erratum 2042739 workaround during reset. This erratum applies
865# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
866CPU_FLAG_LIST += ERRATA_A510_2042739
867
868# Flag to apply erratum 2041909 workaround during reset. This erratum applies
869# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
870# present in r0p0 and r0p1 but there is no workaround for those revisions.
871CPU_FLAG_LIST += ERRATA_A510_2041909
872
Sona Mathew6e864752023-10-12 12:04:53 -0500873# Flag to aply erratum 2080326 workaround during reset. This erratum applies
874# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
875# also present in r0p0 and r0p1 but there is no workaround for those revisions.
876CPU_FLAG_LIST += ERRATA_A510_2080326
877
Boyan Karatoteve4447632022-11-17 12:01:29 +0000878# Flag to apply erratum 2250311 workaround during reset. This erratum applies
879# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
880CPU_FLAG_LIST += ERRATA_A510_2250311
881
882# Flag to apply erratum 2218950 workaround during reset. This erratum applies
883# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
884CPU_FLAG_LIST += ERRATA_A510_2218950
885
886# Flag to apply erratum 2172148 workaround during reset. This erratum applies
887# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
888CPU_FLAG_LIST += ERRATA_A510_2172148
889
890# Flag to apply erratum 2347730 workaround during reset. This erratum applies
891# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
892# and is fixed in r1p2.
893CPU_FLAG_LIST += ERRATA_A510_2347730
894
895# Flag to apply erratum 2371937 workaround during reset. This erratum applies
896# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
897CPU_FLAG_LIST += ERRATA_A510_2371937
898
899# Flag to apply erratum 2666669 workaround during reset. This erratum applies
900# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
901CPU_FLAG_LIST += ERRATA_A510_2666669
902
903# Flag to apply erratum 2684597 workaround during powerdown. This erratum
904# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
905# Cortex-A510 cpu and is fixed in r1p3.
906CPU_FLAG_LIST += ERRATA_A510_2684597
907
Sona Mathew4a9ed7a2023-12-09 20:44:56 -0600908# Flag to apply erratum 2630792 workaround during reset. This erratum applies
909# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
910CPU_FLAG_LIST += ERRATA_A520_2630792
911
Arvind Ram Prakash8d45e302023-12-08 20:19:58 -0600912# Flag to apply erratum 2858100 workaround during reset. This erratum
913# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
914CPU_FLAG_LIST += ERRATA_A520_2858100
915
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500916# Flag to apply erratum 2938996 workaround during reset. This erratum
917# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is fixed in r0p2.
918CPU_FLAG_LIST += ERRATA_A520_2938996
919
Bipin Ravi8852fb52023-09-18 16:34:13 -0500920# Flag to apply erratum 2331132 workaround during reset. This erratum applies
921# to revisions r0p0, r0p1 and r0p2. It is still open.
922CPU_FLAG_LIST += ERRATA_V2_2331132
923
Bipin Ravif98185e2023-10-17 19:42:15 -0500924# Flag to apply erratum 2618597 workaround during reset. This erratum applies
925# to revisions r0p0 and r0p1. It is fixed in r0p2.
926CPU_FLAG_LIST += ERRATA_V2_2618597
927
Bipin Ravid36d1672023-10-17 18:35:55 -0500928# Flag to apply erratum 2662553 workaround during reset. This erratum applies
929# to revisions r0p0 and r0p1. It is fixed in r0p2.
930CPU_FLAG_LIST += ERRATA_V2_2662553
931
Sona Mathewab062f02023-03-14 16:50:36 -0500932# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
933# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
934CPU_FLAG_LIST += ERRATA_V2_2719103
935
Bipin Ravib0114022023-09-18 17:27:29 -0500936# Flag to apply erratum 2719105 workaround during reset. This erratum applies
937# to revisions r0p0 and r0p1. It is fixed in r0p2.
938CPU_FLAG_LIST += ERRATA_V2_2719105
939
Bipin Ravi58dd1532023-09-18 19:54:41 -0500940# Flag to apply erratum 2743011 workaround during reset. This erratum applies
941# to revisions r0p0 and r0p1. It is fixed in r0p2.
942CPU_FLAG_LIST += ERRATA_V2_2743011
943
Bipin Raviff342642023-09-18 19:28:32 -0500944# Flag to apply erratum 2779510 workaround during reset. This erratum applies
945# to revisions r0p0 and r0p1. It is fixed in r0p2.
946CPU_FLAG_LIST += ERRATA_V2_2779510
947
Moritz Fischer40c81ed2023-07-06 00:01:23 +0000948# Flag to apply erratum 2801372 workaround for all configurations.
949# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
950CPU_FLAG_LIST += ERRATA_V2_2801372
951
Bipin Ravi940ebbe2024-02-27 17:49:12 -0600952# Flag to apply erratum 2331818 workaround during reset. This erratum applies
953# to revisions r0p0 and r1p0. It is fixed in r1p1.
954CPU_FLAG_LIST += ERRATA_A715_2331818
955
Harrison Mutai3e3ff292024-01-02 16:55:44 +0000956# Flag to apply erratum 2344187 workaround during reset. This erratum applies
957# to revisions r0p0, and r1p0. It is fixed in r1p1.
958CPU_FLAG_LIST += ERRATA_A715_2344187
959
Sona Mathewb59307e2024-02-20 16:59:45 -0600960# Flag to apply erratum 2413290 workaround during reset. This erratum applies
961# only to revision r1p0. It is fixed in r1p1.
962CPU_FLAG_LIST += ERRATA_A715_2413290
963
Bipin Ravi04c60d52024-02-27 17:34:05 -0600964# Flag to apply erratum 2420947 workaround during reset. This erratum applies
965# only to revision r1p0. It is fixed in r1p1.
966CPU_FLAG_LIST += ERRATA_A715_2420947
967
Bipin Ravi301698e2024-02-27 17:14:22 -0600968# Flag to apply erratum 2429384 workaround during reset. This erratum applies
969# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
970CPU_FLAG_LIST += ERRATA_A715_2429384
971
Bipin Ravi26249512024-01-25 16:18:20 -0600972# Flag to apply erratum 2561034 workaround during reset. This erratum applies
973# only to revision r1p0. It is fixed in r1p1.
974CPU_FLAG_LIST += ERRATA_A715_2561034
975
Bipin Ravi1edbf2a2024-04-10 15:06:11 -0500976# Flag to apply erratum 2728106 workaround during reset. This erratum applies
977# only to revision r0p0, r1p0 and r1p1. It is fixed in r1p2.
978CPU_FLAG_LIST += ERRATA_A715_2728106
979
Arvind Ram Prakasha93c69b2024-07-19 15:59:17 -0500980# Flag to apply erratum 2792132 workaround during reset. This erratum applies
981# to revisions r0p0 and r0p1. It is fixed in r0p2.
982CPU_FLAG_LIST += ERRATA_A720_2792132
983
Sona Mathew9d393432024-07-19 18:09:20 -0500984# Flag to apply erratum 2844092 workaround during reset. This erratum applies
985# to revisions r0p0 and r0p1. It is fixed in r0p2.
986CPU_FLAG_LIST += ERRATA_A720_2844092
987
Bipin Ravibaf14742024-03-14 16:52:21 -0500988# Flag to apply erratum 2926083 workaround during reset. This erratum applies
989# to revisions r0p0 and r0p1. It is fixed in r0p2.
990CPU_FLAG_LIST += ERRATA_A720_2926083
991
Bipin Ravi03636f22024-03-12 10:29:16 -0500992# Flag to apply erratum 2940794 workaround during reset. This erratum applies
993# to revisions r0p0 and r0p1. It is fixed in r0p2.
994CPU_FLAG_LIST += ERRATA_A720_2940794
995
Boyan Karatoteve4447632022-11-17 12:01:29 +0000996# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
997# Applying the workaround results in higher DSU power consumption on idle.
998CPU_FLAG_LIST += ERRATA_DSU_798953
999
1000# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
1001# the ACP interface and revision < r2p0. Applying the workaround results in
1002# higher DSU power consumption on idle.
1003CPU_FLAG_LIST += ERRATA_DSU_936184
1004
1005# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1006# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1007# results in higher DSU power consumption on idle.
1008CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001009
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001010ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001011 ifeq (${WORKAROUND_CVE_2018_3639},0)
1012 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1013 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001014endif
1015
Boyan Karatoteve4447632022-11-17 12:01:29 +00001016# process all flags
1017$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
1018$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1019$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001020
Douglas Raillarda94cc372017-06-19 15:38:02 +01001021# Errata build flags
1022ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001023TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001024endif
1025
1026ifneq (${ERRATA_A53_835769},0)
1027TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001028TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001029endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001030
1031ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1032 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1033ERRATA_SPECULATIVE_AT := 1
1034else
1035ERRATA_SPECULATIVE_AT := 0
1036endif