blob: 9e379d58890b4aedc3b9d990f654b004310362a4 [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Bipin Ravi70bd2642023-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 Karatoteve31060c2022-11-17 12:01:29 +00008include ${MAKE_HELPERS_DIRECTORY}$/build_macros.mk
9
Sona Mathew03d2ef82024-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-11-17 12:01:29 +000034CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715
johpow0183435632022-01-04 16:15:18 -060035WORKAROUND_CVE_2018_3639 ?=1
Boyan Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-11-17 12:01:29 +000043CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000044
Boyan Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Karatoteve31060c2022-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 Mathewf718c872023-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 Karatoteve31060c2022-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 Mathew589ee7e2023-10-10 16:48:57 -0500360# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve31060c2022-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 Ravi14bb7562023-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 Ravi330095f2023-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 Mathewf718c872023-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 Karatoteve31060c2022-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 Ravi560f1402023-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 Mathewf718c872023-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 Mathew9cdc77a2023-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 Karatoteve31060c2022-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 Mathew02bf8ca2023-10-16 15:12:30 -0500533# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000534CPU_FLAG_LIST += ERRATA_V1_2294912
535
Sona Mathew67fa0852023-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 Karatoteve31060c2022-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 Mathewf718c872023-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 Karatoteve31060c2022-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 2743233 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_2743233
563
564# Flag to apply erratum 2779461 workaround during powerdown. This erratum
565# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
566# still open.
567CPU_FLAG_LIST += ERRATA_V1_2779461
568
569# Flag to apply erratum 1987031 workaround during reset. This erratum applies
570# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
571CPU_FLAG_LIST += ERRATA_A710_1987031
572
573# Flag to apply erratum 2081180 workaround during reset. This erratum applies
574# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
575CPU_FLAG_LIST += ERRATA_A710_2081180
576
577# Flag to apply erratum 2083908 workaround during reset. This erratum applies
578# to revision r2p0 of the Cortex-A710 cpu and is still open.
579CPU_FLAG_LIST += ERRATA_A710_2083908
580
581# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew89e35792023-10-10 13:51:45 -0500582# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
583# open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000584CPU_FLAG_LIST += ERRATA_A710_2058056
585
586# Flag to apply erratum 2055002 workaround during reset. This erratum applies
587# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
588CPU_FLAG_LIST += ERRATA_A710_2055002
589
590# Flag to apply erratum 2017096 workaround during reset. This erratum applies
591# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
592CPU_FLAG_LIST += ERRATA_A710_2017096
593
594# Flag to apply erratum 2267065 workaround during reset. This erratum applies
595# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
596CPU_FLAG_LIST += ERRATA_A710_2267065
597
598# Flag to apply erratum 2136059 workaround during reset. This erratum applies
599# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
600CPU_FLAG_LIST += ERRATA_A710_2136059
601
602# Flag to apply erratum 2147715 workaround during reset. This erratum applies
603# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
604CPU_FLAG_LIST += ERRATA_A710_2147715
605
606# Flag to apply erratum 2216384 workaround during reset. This erratum applies
607# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
608CPU_FLAG_LIST += ERRATA_A710_2216384
609
610# Flag to apply erratum 2282622 workaround during reset. This erratum applies
611# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
612# open.
613CPU_FLAG_LIST += ERRATA_A710_2282622
614
615# Flag to apply erratum 2291219 workaround during reset. This erratum applies
616# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
617CPU_FLAG_LIST += ERRATA_A710_2291219
618
619# Flag to apply erratum 2008768 workaround during reset. This erratum applies
620# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
621CPU_FLAG_LIST += ERRATA_A710_2008768
622
623# Flag to apply erratum 2371105 workaround during reset. This erratum applies
624# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
625CPU_FLAG_LIST += ERRATA_A710_2371105
626
Sona Mathewf718c872023-03-14 16:50:36 -0500627# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
628# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
629# and is still open.
630CPU_FLAG_LIST += ERRATA_A710_2701952
631
Bipin Ravid7c66992023-10-17 07:55:55 -0500632# Flag to apply erratum 2742423 workaround during reset. This erratum applies
633# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
634# open.
635CPU_FLAG_LIST += ERRATA_A710_2742423
636
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000637# Flag to apply erratum 2768515 workaround during power down. This erratum
638# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
639# still open.
640CPU_FLAG_LIST += ERRATA_A710_2768515
641
Sona Mathew0dec81e2023-12-08 20:52:17 -0600642# Flag to apply erratum 2778471 workaround during reset. This erratum applies
643# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
644# open.
645CPU_FLAG_LIST += ERRATA_A710_2778471
646
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000647# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500648# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000649CPU_FLAG_LIST += ERRATA_N2_2002655
650
Bipin Ravibe171bb2023-08-29 13:59:09 -0500651# Flag to apply erratum 2009478 workaround during powerdown. This erratum
652# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
653CPU_FLAG_LIST += ERRATA_N2_2009478
654
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000655# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500656# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000657CPU_FLAG_LIST += ERRATA_N2_2067956
658
659# Flag to apply erratum 2025414 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500660# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000661CPU_FLAG_LIST += ERRATA_N2_2025414
662
663# Flag to apply erratum 2189731 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500664# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000665CPU_FLAG_LIST += ERRATA_N2_2189731
666
667# Flag to apply erratum 2138956 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500668# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000669CPU_FLAG_LIST += ERRATA_N2_2138956
670
671# Flag to apply erratum 2138953 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500672# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000673CPU_FLAG_LIST += ERRATA_N2_2138953
674
675# Flag to apply erratum 2242415 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500676# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000677CPU_FLAG_LIST += ERRATA_N2_2242415
678
679# Flag to apply erratum 2138958 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500680# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000681CPU_FLAG_LIST += ERRATA_N2_2138958
682
683# Flag to apply erratum 2242400 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500684# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000685CPU_FLAG_LIST += ERRATA_N2_2242400
686
687# Flag to apply erratum 2280757 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500688# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000689CPU_FLAG_LIST += ERRATA_N2_2280757
690
Bipin Ravi9f7275a2023-10-17 06:21:15 -0500691# Flag to apply erratum 2326639 workaroud during powerdown. This erratum
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000692# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
693CPU_FLAG_LIST += ERRATA_N2_2326639
694
Bipin Ravi9f7275a2023-10-17 06:21:15 -0500695# Flag to apply erratum 2340933 workaroud during reset. This erratum
696# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
697CPU_FLAG_LIST += ERRATA_N2_2340933
698
Bipin Ravi26bb39d2023-10-17 05:56:01 -0500699# Flag to apply erratum 2346952 workaround during reset. This erratum applies
700# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
701CPU_FLAG_LIST += ERRATA_N2_2346952
702
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000703# Flag to apply erratum 2376738 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500704# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000705CPU_FLAG_LIST += ERRATA_N2_2376738
706
707# Flag to apply erratum 2388450 workaround during reset. This erratum applies
708# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
709CPU_FLAG_LIST += ERRATA_N2_2388450
710
Sona Mathewf718c872023-03-14 16:50:36 -0500711# Flag to apply erratum 2728475 workaround for non-arm interconnect ip. This
712# erratum applies to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in
713# r0p3.
714CPU_FLAG_LIST += ERRATA_N2_2728475
715
Arvind Ram Prakash4e4d88b2023-07-05 17:24:23 -0500716# Flag to apply erratum 2743014 workaround during reset. This erratum applies
717# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
718CPU_FLAG_LIST += ERRATA_N2_2743014
719
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000720# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
721# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
722CPU_FLAG_LIST += ERRATA_N2_2743089
723
Arvind Ram Prakash16f2a342023-07-17 14:46:14 -0500724# Flag to apply erratum 2779511 workaround during reset. This erratum applies
725# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
726CPU_FLAG_LIST += ERRATA_N2_2779511
727
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000728# Flag to apply erratum 2002765 workaround during reset. This erratum applies
729# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
730CPU_FLAG_LIST += ERRATA_X2_2002765
731
732# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew24cf1112023-10-16 13:33:18 -0500733# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000734CPU_FLAG_LIST += ERRATA_X2_2058056
735
736# Flag to apply erratum 2083908 workaround during reset. This erratum applies
737# to revision r2p0 of the Cortex-X2 cpu and is still open.
738CPU_FLAG_LIST += ERRATA_X2_2083908
739
740# Flag to apply erratum 2017096 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_2017096
744
745# Flag to apply erratum 2081180 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_2081180
749
750# Flag to apply erratum 2216384 workaround during reset. This erratum applies
751# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
752# r2p1.
753CPU_FLAG_LIST += ERRATA_X2_2216384
754
755# Flag to apply erratum 2147715 workaround during reset. This erratum applies
756# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
757CPU_FLAG_LIST += ERRATA_X2_2147715
758
759# Flag to apply erratum 2282622 workaround during reset. This erratum applies
760# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
761# open.
762CPU_FLAG_LIST += ERRATA_X2_2282622
763
764# Flag to apply erratum 2371105 workaround during reset. This erratum applies
765# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
766CPU_FLAG_LIST += ERRATA_X2_2371105
767
Sona Mathewf718c872023-03-14 16:50:36 -0500768# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
769# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
770# and is still open.
771CPU_FLAG_LIST += ERRATA_X2_2701952
772
Bipin Ravi6fff64f2023-10-17 09:11:19 -0500773# Flag to apply erratum 2742423 workaround during reset. This erratum applies
774# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
775CPU_FLAG_LIST += ERRATA_X2_2742423
776
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000777# Flag to apply erratum 2768515 workaround during power down. This erratum
778# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
779# still open.
780CPU_FLAG_LIST += ERRATA_X2_2768515
781
Sona Mathew45bf33e2023-12-09 13:09:30 -0600782# Flag to apply erratum 2778471 workaround during reset. This erratum applies
783# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
784CPU_FLAG_LIST += ERRATA_X2_2778471
785
Sona Mathew1c706712023-10-03 17:09:09 -0500786# Flag to apply erratum 2070301 workaround on reset. This erratum applies
787# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
788# still open.
789CPU_FLAG_LIST += ERRATA_X3_2070301
790
Bipin Ravieadc24b2023-12-20 14:53:37 -0600791# Flag to apply erratum 2266875 workaround during reset. This erratum applies
792# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
793CPU_FLAG_LIST += ERRATA_X3_2266875
794
Bipin Ravi70bd2642023-12-20 14:32:02 -0600795# Flag to apply erratum 2302506 workaround during reset. This erratum applies
796# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
797CPU_FLAG_LIST += ERRATA_X3_2302506
798
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000799# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
800# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
801CPU_FLAG_LIST += ERRATA_X3_2313909
802
803# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
804# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is still open.
805CPU_FLAG_LIST += ERRATA_X3_2615812
806
Bipin Ravie80174e2024-01-25 15:38:46 -0600807# Flag to apply erratum 2641945 workaround on reset. This erratum applies
808# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
809CPU_FLAG_LIST += ERRATA_X3_2641945
810
Sona Mathew538c6372024-02-21 15:07:30 -0600811# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
812# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
813CPU_FLAG_LIST += ERRATA_X3_2701951
814
Sona Mathewd55ab352023-09-05 14:10:03 -0500815# Flag to apply erratum 2742421 workaround on reset. This erratum applies
816# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
817CPU_FLAG_LIST += ERRATA_X3_2742421
818
Harrison Mutaifc08e1b2023-12-12 11:17:19 +0000819# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
820# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
821CPU_FLAG_LIST += ERRATA_X3_2743088
822
Sona Mathewf1a90ce2023-11-06 13:48:22 -0600823# Flag to apply erratum 2779509 workaround on reset. This erratum applies
824# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
825CPU_FLAG_LIST += ERRATA_X3_2779509
826
Sona Mathew656c4312024-03-01 13:36:21 -0600827# Flag to apply erratum 2701112 workaround for platforms that do not use an
828# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
829# cpu and is fixed in r0p1.
830CPU_FLAG_LIST += ERRATA_X4_2701112
831
Arvind Ram Prakasha0a574d2024-08-05 16:04:37 -0500832# Flag to apply erratum 2726228 workaround during warmboot. This erratum
833# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
834CPU_FLAG_LIST += ERRATA_X4_2726228
835
Bipin Ravi9b5d75b2024-04-10 15:33:21 -0500836# Flag to apply erratum 2740089 workaround during powerdown. This erratum
837# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
838CPU_FLAG_LIST += ERRATA_X4_2740089
839
Sona Mathewd0a74e32024-04-05 16:27:07 -0500840# Flag to apply erratum 2763018 workaround on reset. This erratum applies
841# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
842CPU_FLAG_LIST += ERRATA_X4_2763018
843
Sona Mathew75124502024-07-16 14:34:42 -0500844# Flag to apply erratum 2816013 workaround on reset. This erratum applies
845# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
846CPU_FLAG_LIST += ERRATA_X4_2816013
847
Arvind Ram Prakashac24f382024-08-26 17:04:27 -0500848# Flag to apply erratum 2897503 workaround on reset. This erratum applies
849# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
850CPU_FLAG_LIST += ERRATA_X4_2897503
851
Ryan Everett62520722024-05-21 11:56:37 +0100852# Flag to apply erratum 3076789 workaround on reset. This erratum applies
853# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
854CPU_FLAG_LIST += ERRATA_X4_3076789
855
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000856# Flag to apply erratum 1922240 workaround during reset. This erratum applies
857# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
858CPU_FLAG_LIST += ERRATA_A510_1922240
859
860# Flag to apply erratum 2288014 workaround during reset. This erratum applies
861# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
862# fixed in r1p1.
863CPU_FLAG_LIST += ERRATA_A510_2288014
864
865# Flag to apply erratum 2042739 workaround during reset. This erratum applies
866# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
867CPU_FLAG_LIST += ERRATA_A510_2042739
868
869# Flag to apply erratum 2041909 workaround during reset. This erratum applies
870# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
871# present in r0p0 and r0p1 but there is no workaround for those revisions.
872CPU_FLAG_LIST += ERRATA_A510_2041909
873
Sona Mathewaf8088b2023-10-12 12:04:53 -0500874# Flag to aply erratum 2080326 workaround during reset. This erratum applies
875# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
876# also present in r0p0 and r0p1 but there is no workaround for those revisions.
877CPU_FLAG_LIST += ERRATA_A510_2080326
878
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000879# Flag to apply erratum 2250311 workaround during reset. This erratum applies
880# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
881CPU_FLAG_LIST += ERRATA_A510_2250311
882
883# Flag to apply erratum 2218950 workaround during reset. This erratum applies
884# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
885CPU_FLAG_LIST += ERRATA_A510_2218950
886
887# Flag to apply erratum 2172148 workaround during reset. This erratum applies
888# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
889CPU_FLAG_LIST += ERRATA_A510_2172148
890
891# Flag to apply erratum 2347730 workaround during reset. This erratum applies
892# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
893# and is fixed in r1p2.
894CPU_FLAG_LIST += ERRATA_A510_2347730
895
896# Flag to apply erratum 2371937 workaround during reset. This erratum applies
897# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
898CPU_FLAG_LIST += ERRATA_A510_2371937
899
900# Flag to apply erratum 2666669 workaround during reset. This erratum applies
901# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
902CPU_FLAG_LIST += ERRATA_A510_2666669
903
904# Flag to apply erratum 2684597 workaround during powerdown. This erratum
905# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
906# Cortex-A510 cpu and is fixed in r1p3.
907CPU_FLAG_LIST += ERRATA_A510_2684597
908
Sona Mathew03237dd2023-12-09 20:44:56 -0600909# Flag to apply erratum 2630792 workaround during reset. This erratum applies
910# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
911CPU_FLAG_LIST += ERRATA_A520_2630792
912
Arvind Ram Prakashd04495b2023-12-08 20:19:58 -0600913# Flag to apply erratum 2858100 workaround during reset. This erratum
914# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
915CPU_FLAG_LIST += ERRATA_A520_2858100
916
Arvind Ram Prakasha0a574d2024-08-05 16:04:37 -0500917# Flag to apply erratum 2938996 workaround during reset. This erratum
918# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is fixed in r0p2.
919CPU_FLAG_LIST += ERRATA_A520_2938996
920
Bipin Ravibce28142023-09-18 16:34:13 -0500921# Flag to apply erratum 2331132 workaround during reset. This erratum applies
922# to revisions r0p0, r0p1 and r0p2. It is still open.
923CPU_FLAG_LIST += ERRATA_V2_2331132
924
Bipin Ravi3a4bdce2023-10-17 19:42:15 -0500925# Flag to apply erratum 2618597 workaround during reset. This erratum applies
926# to revisions r0p0 and r0p1. It is fixed in r0p2.
927CPU_FLAG_LIST += ERRATA_V2_2618597
928
Bipin Ravi366dc1f2023-10-17 18:35:55 -0500929# Flag to apply erratum 2662553 workaround during reset. This erratum applies
930# to revisions r0p0 and r0p1. It is fixed in r0p2.
931CPU_FLAG_LIST += ERRATA_V2_2662553
932
Sona Mathewf718c872023-03-14 16:50:36 -0500933# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
934# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
935CPU_FLAG_LIST += ERRATA_V2_2719103
936
Bipin Ravi61d98222023-09-18 17:27:29 -0500937# Flag to apply erratum 2719105 workaround during reset. This erratum applies
938# to revisions r0p0 and r0p1. It is fixed in r0p2.
939CPU_FLAG_LIST += ERRATA_V2_2719105
940
Bipin Ravi28b3d982023-09-18 19:54:41 -0500941# Flag to apply erratum 2743011 workaround during reset. This erratum applies
942# to revisions r0p0 and r0p1. It is fixed in r0p2.
943CPU_FLAG_LIST += ERRATA_V2_2743011
944
Bipin Raviff996c22023-09-18 19:28:32 -0500945# Flag to apply erratum 2779510 workaround during reset. This erratum applies
946# to revisions r0p0 and r0p1. It is fixed in r0p2.
947CPU_FLAG_LIST += ERRATA_V2_2779510
948
Moritz Fischerec3fafa2023-07-06 00:01:23 +0000949# Flag to apply erratum 2801372 workaround for all configurations.
950# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
951CPU_FLAG_LIST += ERRATA_V2_2801372
952
Bipin Ravi877e9342024-02-27 17:49:12 -0600953# Flag to apply erratum 2331818 workaround during reset. This erratum applies
954# to revisions r0p0 and r1p0. It is fixed in r1p1.
955CPU_FLAG_LIST += ERRATA_A715_2331818
956
Harrison Mutaibd32e622024-01-02 16:55:44 +0000957# Flag to apply erratum 2344187 workaround during reset. This erratum applies
958# to revisions r0p0, and r1p0. It is fixed in r1p1.
959CPU_FLAG_LIST += ERRATA_A715_2344187
960
Sona Mathew81270d92024-02-20 16:59:45 -0600961# Flag to apply erratum 2413290 workaround during reset. This erratum applies
962# only to revision r1p0. It is fixed in r1p1.
963CPU_FLAG_LIST += ERRATA_A715_2413290
964
Bipin Ravi84e8de62024-02-27 17:34:05 -0600965# Flag to apply erratum 2420947 workaround during reset. This erratum applies
966# only to revision r1p0. It is fixed in r1p1.
967CPU_FLAG_LIST += ERRATA_A715_2420947
968
Bipin Ravi6a8a8672024-02-27 17:14:22 -0600969# Flag to apply erratum 2429384 workaround during reset. This erratum applies
970# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
971CPU_FLAG_LIST += ERRATA_A715_2429384
972
Bipin Ravia3cd4422024-01-25 16:18:20 -0600973# Flag to apply erratum 2561034 workaround during reset. This erratum applies
974# only to revision r1p0. It is fixed in r1p1.
975CPU_FLAG_LIST += ERRATA_A715_2561034
976
Bipin Ravi02633262024-04-10 15:06:11 -0500977# Flag to apply erratum 2728106 workaround during reset. This erratum applies
978# only to revision r0p0, r1p0 and r1p1. It is fixed in r1p2.
979CPU_FLAG_LIST += ERRATA_A715_2728106
980
Arvind Ram Prakash9db99a32024-07-19 15:59:17 -0500981# Flag to apply erratum 2792132 workaround during reset. This erratum applies
982# to revisions r0p0 and r0p1. It is fixed in r0p2.
983CPU_FLAG_LIST += ERRATA_A720_2792132
984
Sona Mathewdedcbb72024-07-19 18:09:20 -0500985# Flag to apply erratum 2844092 workaround during reset. This erratum applies
986# to revisions r0p0 and r0p1. It is fixed in r0p2.
987CPU_FLAG_LIST += ERRATA_A720_2844092
988
Bipin Ravi205980a2024-03-14 16:52:21 -0500989# Flag to apply erratum 2926083 workaround during reset. This erratum applies
990# to revisions r0p0 and r0p1. It is fixed in r0p2.
991CPU_FLAG_LIST += ERRATA_A720_2926083
992
Bipin Ravi46968062024-03-12 10:29:16 -0500993# Flag to apply erratum 2940794 workaround during reset. This erratum applies
994# to revisions r0p0 and r0p1. It is fixed in r0p2.
995CPU_FLAG_LIST += ERRATA_A720_2940794
996
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000997# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
998# Applying the workaround results in higher DSU power consumption on idle.
999CPU_FLAG_LIST += ERRATA_DSU_798953
1000
1001# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
1002# the ACP interface and revision < r2p0. Applying the workaround results in
1003# higher DSU power consumption on idle.
1004CPU_FLAG_LIST += ERRATA_DSU_936184
1005
1006# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1007# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1008# results in higher DSU power consumption on idle.
1009CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001010
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001011ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001012 ifeq (${WORKAROUND_CVE_2018_3639},0)
1013 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1014 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001015endif
1016
Boyan Karatoteve31060c2022-11-17 12:01:29 +00001017# process all flags
1018$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
1019$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1020$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001021
Douglas Raillarda94cc372017-06-19 15:38:02 +01001022# Errata build flags
1023ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001024TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001025endif
1026
1027ifneq (${ERRATA_A53_835769},0)
1028TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001029TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001030endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001031
1032ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1033 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1034ERRATA_SPECULATIVE_AT := 1
1035else
1036ERRATA_SPECULATIVE_AT := 0
1037endif