blob: 872f6c768f1de09cdb6950fcac09db4910bdc0c2 [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Bipin Ravi3f9df2c2023-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
Soby Mathew5541bb32014-09-22 14:13:34 +010010# Cortex A57 specific optimisation to skip L1 cache flush when
11# cluster is powered down.
Boyan Karatoteve4447632022-11-17 12:01:29 +000012CPU_FLAG_LIST += SKIP_A57_L1_FLUSH_PWR_DWN
Soby Mathew5541bb32014-09-22 14:13:34 +010013
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000014# Flag to disable the cache non-temporal hint.
15# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060016A53_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000017CPU_FLAG_LIST += A53_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000018
19# Flag to disable the cache non-temporal hint.
20# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060021A57_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000022CPU_FLAG_LIST += A57_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000023
Varun Wadekarcd0ea182018-06-12 16:49:12 -070024# Flag to enable higher performance non-cacheable load forwarding.
25# It is disabled by default.
Boyan Karatoteve4447632022-11-17 12:01:29 +000026CPU_FLAG_LIST += A57_ENABLE_NONCACHEABLE_LOAD_FWD
Varun Wadekarcd0ea182018-06-12 16:49:12 -070027
johpow0183435632022-01-04 16:15:18 -060028WORKAROUND_CVE_2017_5715 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000029CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715
johpow0183435632022-01-04 16:15:18 -060030WORKAROUND_CVE_2018_3639 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000031CPU_FLAG_LIST += WORKAROUND_CVE_2018_3639
32CPU_FLAG_LIST += DYNAMIC_WORKAROUND_CVE_2018_3639
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060033WORKAROUND_CVE_2022_23960 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000034CPU_FLAG_LIST += WORKAROUND_CVE_2022_23960
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000035
Javier Almansa Sobrino25bbbd22020-10-23 13:22:07 +010036# Flags to indicate internal or external Last level cache
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000037# By default internal
Boyan Karatoteve4447632022-11-17 12:01:29 +000038CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000039
Boyan Karatoteve4447632022-11-17 12:01:29 +000040# CPU Errata Build flags.
41# These should be enabled by the platform if the erratum workaround needs to be
42# applied.
Varun Wadekarcd0ea182018-06-12 16:49:12 -070043
Boyan Karatoteve4447632022-11-17 12:01:29 +000044# Flag to apply erratum 794073 workaround when disabling mmu.
45CPU_FLAG_LIST += ERRATA_A9_794073
Soby Mathew5541bb32014-09-22 14:13:34 +010046
Boyan Karatoteve4447632022-11-17 12:01:29 +000047# Flag to apply erratum 816470 workaround during power down. This erratum
48# applies only to revision >= r3p0 of the Cortex A15 cpu.
49CPU_FLAG_LIST += ERRATA_A15_816470
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000050
Boyan Karatoteve4447632022-11-17 12:01:29 +000051# Flag to apply erratum 827671 workaround during reset. This erratum applies
52# only to revision >= r3p0 of the Cortex A15 cpu.
53CPU_FLAG_LIST += ERRATA_A15_827671
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000054
Boyan Karatoteve4447632022-11-17 12:01:29 +000055# Flag to apply erratum 852421 workaround during reset. This erratum applies
56# only to revision <= r1p2 of the Cortex A17 cpu.
57CPU_FLAG_LIST += ERRATA_A17_852421
Soby Mathew5541bb32014-09-22 14:13:34 +010058
Boyan Karatoteve4447632022-11-17 12:01:29 +000059# Flag to apply erratum 852423 workaround during reset. This erratum applies
60# only to revision <= r1p2 of the Cortex A17 cpu.
61CPU_FLAG_LIST += ERRATA_A17_852423
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010062
Boyan Karatoteve4447632022-11-17 12:01:29 +000063# Flag to apply erratum 855472 workaround during reset. This erratum applies
64# only to revision r0p0 of the Cortex A35 cpu.
65CPU_FLAG_LIST += ERRATA_A35_855472
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010066
Boyan Karatoteve4447632022-11-17 12:01:29 +000067# Flag to apply erratum 819472 workaround during reset. This erratum applies
68# only to revision <= r0p1 of the Cortex A53 cpu.
69CPU_FLAG_LIST += ERRATA_A53_819472
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060070
Boyan Karatoteve4447632022-11-17 12:01:29 +000071# Flag to apply erratum 824069 workaround during reset. This erratum applies
72# only to revision <= r0p2 of the Cortex A53 cpu.
73CPU_FLAG_LIST += ERRATA_A53_824069
74
75# Flag to apply erratum 826319 workaround during reset. This erratum applies
76# only to revision <= r0p2 of the Cortex A53 cpu.
77CPU_FLAG_LIST += ERRATA_A53_826319
78
79# Flag to apply erratum 827319 workaround during reset. This erratum applies
80# only to revision <= r0p2 of the Cortex A53 cpu.
81CPU_FLAG_LIST += ERRATA_A53_827319
82
83# Flag to apply erratum 835769 workaround at compile and link time. This
84# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
85# workaround can lead the linker to create "*.stub" sections.
86CPU_FLAG_LIST += ERRATA_A53_835769
87
88# Flag to apply erratum 836870 workaround during reset. This erratum applies
89# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
90# erratum workaround is enabled by default in hardware.
91CPU_FLAG_LIST += ERRATA_A53_836870
92
93# Flag to apply erratum 843419 workaround at link time.
94# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
95# workaround could lead the linker to emit "*.stub" sections which are 4kB
96# aligned.
97CPU_FLAG_LIST += ERRATA_A53_843419
98
99# Flag to apply errata 855873 during reset. This errata applies to all
100# revisions of the Cortex A53 CPU, but this firmware workaround only works
101# for revisions r0p3 and higher. Earlier revisions are taken care
102# of by the rich OS.
103CPU_FLAG_LIST += ERRATA_A53_855873
104
105# Flag to apply erratum 1530924 workaround during reset. This erratum applies
106# to all revisions of Cortex A53 cpu.
107CPU_FLAG_LIST += ERRATA_A53_1530924
108
109# Flag to apply erratum 768277 workaround during reset. This erratum applies
110# only to revision r0p0 of the Cortex A55 cpu.
111CPU_FLAG_LIST += ERRATA_A55_768277
112
113# Flag to apply erratum 778703 workaround during reset. This erratum applies
114# only to revision r0p0 of the Cortex A55 cpu.
115CPU_FLAG_LIST += ERRATA_A55_778703
116
117# Flag to apply erratum 798797 workaround during reset. This erratum applies
118# only to revision r0p0 of the Cortex A55 cpu.
119CPU_FLAG_LIST += ERRATA_A55_798797
120
121# Flag to apply erratum 846532 workaround during reset. This erratum applies
122# only to revision <= r0p1 of the Cortex A55 cpu.
123CPU_FLAG_LIST += ERRATA_A55_846532
124
125# Flag to apply erratum 903758 workaround during reset. This erratum applies
126# only to revision <= r0p1 of the Cortex A55 cpu.
127CPU_FLAG_LIST += ERRATA_A55_903758
128
129# Flag to apply erratum 1221012 workaround during reset. This erratum applies
130# only to revision <= r1p0 of the Cortex A55 cpu.
131CPU_FLAG_LIST += ERRATA_A55_1221012
132
133# Flag to apply erratum 1530923 workaround during reset. This erratum applies
134# to all revisions of Cortex A55 cpu.
135CPU_FLAG_LIST += ERRATA_A55_1530923
136
137# Flag to apply erratum 806969 workaround during reset. This erratum applies
138# only to revision r0p0 of the Cortex A57 cpu.
139CPU_FLAG_LIST += ERRATA_A57_806969
140
141# Flag to apply erratum 813419 workaround during reset. This erratum applies
142# only to revision r0p0 of the Cortex A57 cpu.
143CPU_FLAG_LIST += ERRATA_A57_813419
144
145# Flag to apply erratum 813420 workaround during reset. This erratum applies
146# only to revision r0p0 of the Cortex A57 cpu.
147CPU_FLAG_LIST += ERRATA_A57_813420
148
149# Flag to apply erratum 814670 workaround during reset. This erratum applies
150# only to revision r0p0 of the Cortex A57 cpu.
151CPU_FLAG_LIST += ERRATA_A57_814670
152
153# Flag to apply erratum 817169 workaround during power down. This erratum
154# applies only to revision <= r0p1 of the Cortex A57 cpu.
155CPU_FLAG_LIST += ERRATA_A57_817169
156
157# Flag to apply erratum 826974 workaround during reset. This erratum applies
158# only to revision <= r1p1 of the Cortex A57 cpu.
159CPU_FLAG_LIST += ERRATA_A57_826974
160
161# Flag to apply erratum 826977 workaround during reset. This erratum applies
162# only to revision <= r1p1 of the Cortex A57 cpu.
163CPU_FLAG_LIST += ERRATA_A57_826977
164
165# Flag to apply erratum 828024 workaround during reset. This erratum applies
166# only to revision <= r1p1 of the Cortex A57 cpu.
167CPU_FLAG_LIST += ERRATA_A57_828024
168
169# Flag to apply erratum 829520 workaround during reset. This erratum applies
170# only to revision <= r1p2 of the Cortex A57 cpu.
171CPU_FLAG_LIST += ERRATA_A57_829520
172
173# Flag to apply erratum 833471 workaround during reset. This erratum applies
174# only to revision <= r1p2 of the Cortex A57 cpu.
175CPU_FLAG_LIST += ERRATA_A57_833471
176
177# Flag to apply erratum 855972 workaround during reset. This erratum applies
178# only to revision <= r1p3 of the Cortex A57 cpu.
179CPU_FLAG_LIST += ERRATA_A57_859972
180
181# Flag to apply erratum 1319537 workaround during reset. This erratum applies
182# to all revisions of Cortex A57 cpu.
183CPU_FLAG_LIST += ERRATA_A57_1319537
184
185# Flag to apply erratum 855971 workaround during reset. This erratum applies
186# only to revision <= r0p3 of the Cortex A72 cpu.
187CPU_FLAG_LIST += ERRATA_A72_859971
188
189# Flag to apply erratum 1319367 workaround during reset. This erratum applies
190# to all revisions of Cortex A72 cpu.
191CPU_FLAG_LIST += ERRATA_A72_1319367
192
193# Flag to apply erratum 852427 workaround during reset. This erratum applies
194# only to revision r0p0 of the Cortex A73 cpu.
195CPU_FLAG_LIST += ERRATA_A73_852427
196
197# Flag to apply erratum 855423 workaround during reset. This erratum applies
198# only to revision <= r0p1 of the Cortex A73 cpu.
199CPU_FLAG_LIST += ERRATA_A73_855423
200
201# Flag to apply erratum 764081 workaround during reset. This erratum applies
202# only to revision <= r0p0 of the Cortex A75 cpu.
203CPU_FLAG_LIST += ERRATA_A75_764081
204
205# Flag to apply erratum 790748 workaround during reset. This erratum applies
206# only to revision <= r0p0 of the Cortex A75 cpu.
207CPU_FLAG_LIST += ERRATA_A75_790748
208
209# Flag to apply erratum 1073348 workaround during reset. This erratum applies
210# only to revision <= r1p0 of the Cortex A76 cpu.
211CPU_FLAG_LIST += ERRATA_A76_1073348
212
213# Flag to apply erratum 1130799 workaround during reset. This erratum applies
214# only to revision <= r2p0 of the Cortex A76 cpu.
215CPU_FLAG_LIST += ERRATA_A76_1130799
216
217# Flag to apply erratum 1220197 workaround during reset. This erratum applies
218# only to revision <= r2p0 of the Cortex A76 cpu.
219CPU_FLAG_LIST += ERRATA_A76_1220197
220
221# Flag to apply erratum 1257314 workaround during reset. This erratum applies
222# only to revision <= r3p0 of the Cortex A76 cpu.
223CPU_FLAG_LIST += ERRATA_A76_1257314
224
225# Flag to apply erratum 1262606 workaround during reset. This erratum applies
226# only to revision <= r3p0 of the Cortex A76 cpu.
227CPU_FLAG_LIST += ERRATA_A76_1262606
228
229# Flag to apply erratum 1262888 workaround during reset. This erratum applies
230# only to revision <= r3p0 of the Cortex A76 cpu.
231CPU_FLAG_LIST += ERRATA_A76_1262888
232
233# Flag to apply erratum 1275112 workaround during reset. This erratum applies
234# only to revision <= r3p0 of the Cortex A76 cpu.
235CPU_FLAG_LIST += ERRATA_A76_1275112
236
237# Flag to apply erratum 1286807 workaround during reset. This erratum applies
238# only to revision <= r3p0 of the Cortex A76 cpu.
239CPU_FLAG_LIST += ERRATA_A76_1286807
240
241# Flag to apply erratum 1791580 workaround during reset. This erratum applies
242# only to revision <= r4p0 of the Cortex A76 cpu.
243CPU_FLAG_LIST += ERRATA_A76_1791580
244
245# Flag to apply erratum 1165522 workaround during reset. This erratum applies
246# to all revisions of Cortex A76 cpu.
247CPU_FLAG_LIST += ERRATA_A76_1165522
248
249# Flag to apply erratum 1868343 workaround during reset. This erratum applies
250# only to revision <= r4p0 of the Cortex A76 cpu.
251CPU_FLAG_LIST += ERRATA_A76_1868343
252
253# Flag to apply erratum 1946160 workaround during reset. This erratum applies
254# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
255CPU_FLAG_LIST += ERRATA_A76_1946160
256
257# Flag to apply erratum 2743102 workaround during powerdown. This erratum
258# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open.
259CPU_FLAG_LIST += ERRATA_A76_2743102
260
261# Flag to apply erratum 1508412 workaround during reset. This erratum applies
262# only to revision <= r1p0 of the Cortex A77 cpu.
263CPU_FLAG_LIST += ERRATA_A77_1508412
264
265# Flag to apply erratum 1925769 workaround during reset. This erratum applies
266# only to revision <= r1p1 of the Cortex A77 cpu.
267CPU_FLAG_LIST += ERRATA_A77_1925769
268
269# Flag to apply erratum 1946167 workaround during reset. This erratum applies
270# only to revision <= r1p1 of the Cortex A77 cpu.
271CPU_FLAG_LIST += ERRATA_A77_1946167
272
273# Flag to apply erratum 1791578 workaround during reset. This erratum applies
274# to revisions r0p0, r1p0, and r1p1, it is still open.
275CPU_FLAG_LIST += ERRATA_A77_1791578
276
277# Flag to apply erratum 2356587 workaround during reset. This erratum applies
278# to revisions r0p0, r1p0, and r1p1, it is still open.
279CPU_FLAG_LIST += ERRATA_A77_2356587
280
281# Flag to apply erratum 1800714 workaround during reset. This erratum applies
282# to revisions <= r1p1 of the Cortex A77 cpu.
283CPU_FLAG_LIST += ERRATA_A77_1800714
284
285# Flag to apply erratum 2743100 workaround during power down. This erratum
286# applies to revisions r0p0, r1p0, and r1p1, it is still open.
287CPU_FLAG_LIST += ERRATA_A77_2743100
288
289# Flag to apply erratum 1688305 workaround during reset. This erratum applies
290# to revisions r0p0 - r1p0 of the A78 cpu.
291CPU_FLAG_LIST += ERRATA_A78_1688305
292
293# Flag to apply erratum 1941498 workaround during reset. This erratum applies
294# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
295CPU_FLAG_LIST += ERRATA_A78_1941498
296
297# Flag to apply erratum 1951500 workaround during reset. This erratum applies
298# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
299# well but there is no workaround for that revision.
300CPU_FLAG_LIST += ERRATA_A78_1951500
301
302# Flag to apply erratum 1821534 workaround during reset. This erratum applies
303# to revisions r0p0 and r1p0 of the A78 cpu.
304CPU_FLAG_LIST += ERRATA_A78_1821534
305
306# Flag to apply erratum 1952683 workaround during reset. This erratum applies
307# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
308CPU_FLAG_LIST += ERRATA_A78_1952683
309
310# Flag to apply erratum 2132060 workaround during reset. This erratum applies
311# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
312CPU_FLAG_LIST += ERRATA_A78_2132060
313
314# Flag to apply erratum 2242635 workaround during reset. This erratum applies
315# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
316# present in r0p0 as well but there is no workaround for that revision.
317CPU_FLAG_LIST += ERRATA_A78_2242635
318
319# Flag to apply erratum 2376745 workaround during reset. This erratum applies
320# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
321CPU_FLAG_LIST += ERRATA_A78_2376745
322
323# Flag to apply erratum 2395406 workaround during reset. This erratum applies
324# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
325CPU_FLAG_LIST += ERRATA_A78_2395406
326
Sona Mathewab062f02023-03-14 16:50:36 -0500327# Flag to apply erratum 2712571 workaround for non-arm interconnect ip. This
328# erratum applies to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu.
329# It is fixed in r1p2.
330CPU_FLAG_LIST += ERRATA_A78_2712571
331
Boyan Karatoteve4447632022-11-17 12:01:29 +0000332# Flag to apply erratum 2742426 workaround during reset. This erratum
333# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
334# open.
335CPU_FLAG_LIST += ERRATA_A78_2742426
336
337# Flag to apply erratum 2772019 workaround during powerdown. 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_2772019
341
342# Flag to apply erratum 2779479 workaround during reset. This erratum applies
343# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open.
344CPU_FLAG_LIST += ERRATA_A78_2779479
345
346# Flag to apply erratum 1941500 workaround during reset. This erratum applies
347# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
348CPU_FLAG_LIST += ERRATA_A78_AE_1941500
349
350# Flag to apply erratum 1951502 workaround during reset. This erratum applies
351# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
352CPU_FLAG_LIST += ERRATA_A78_AE_1951502
353
354# Flag to apply erratum 2376748 workaround during reset. This erratum applies
Sona Mathewc8146192023-10-10 16:48:57 -0500355# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000356CPU_FLAG_LIST += ERRATA_A78_AE_2376748
357
358# Flag to apply erratum 2395408 workaround during reset. This erratum applies
359# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
360CPU_FLAG_LIST += ERRATA_A78_AE_2395408
361
Bipin Ravi672eb212023-03-14 10:04:23 -0500362# Flag to apply erratum 1827430 workaround during reset. This erratum applies
363# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
364CPU_FLAG_LIST += ERRATA_A78C_1827430
365
Bipin Ravib01a59e2023-03-14 11:03:24 -0500366# Flag to apply erratum 1827440 workaround during reset. This erratum applies
367# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
368CPU_FLAG_LIST += ERRATA_A78C_1827440
369
Sona Mathewab062f02023-03-14 16:50:36 -0500370# Flag to apply erratum 2712574 workaround for non-arm interconnect ip. This
371# erratum applies to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu.
372# It is still open.
373CPU_FLAG_LIST += ERRATA_A78_AE_2712574
374
Boyan Karatoteve4447632022-11-17 12:01:29 +0000375# Flag to apply erratum 2132064 workaround during reset. This erratum applies
376# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
377CPU_FLAG_LIST += ERRATA_A78C_2132064
378
379# Flag to apply erratum 2242638 workaround during reset. This erratum applies
380# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
381CPU_FLAG_LIST += ERRATA_A78C_2242638
382
383# Flag to apply erratum 2376749 workaround during reset. This erratum applies
384# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
385CPU_FLAG_LIST += ERRATA_A78C_2376749
386
387# Flag to apply erratum 2395411 workaround during reset. This erratum applies
388# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
389CPU_FLAG_LIST += ERRATA_A78C_2395411
390
Bipin Ravi68cac6a2023-12-20 15:40:44 -0600391# Flag to apply erratum 2683027 workaround during reset. This erratum applies
392# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
393CPU_FLAG_LIST += ERRATA_A78C_2683027
394
Sona Mathewab062f02023-03-14 16:50:36 -0500395# Flag to apply erratum 2712575 workaround for non-arm interconnect ip. This
396# erratum applies to revisions r0p1 and r0p2 of the A78C cpu.
397# It is still open.
398CPU_FLAG_LIST += ERRATA_A78C_2712575
399
Sona Mathew81d40942023-11-14 14:00:48 -0600400# Flag to apply erratum 2743232 workaround during reset. This erratum applies
401# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
402CPU_FLAG_LIST += ERRATA_A78C_2743232
403
Boyan Karatoteve4447632022-11-17 12:01:29 +0000404# Flag to apply erratum 2772121 workaround during powerdown. This erratum
405# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open.
406CPU_FLAG_LIST += ERRATA_A78C_2772121
407
408# Flag to apply erratum 2779484 workaround during reset. This erratum
409# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
410CPU_FLAG_LIST += ERRATA_A78C_2779484
411
412# Flag to apply erratum 1821534 workaround during reset. This erratum applies
413# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
414CPU_FLAG_LIST += ERRATA_X1_1821534
415
416# Flag to apply erratum 1688305 workaround during reset. This erratum applies
417# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
418CPU_FLAG_LIST += ERRATA_X1_1688305
419
420# Flag to apply erratum 1827429 workaround during reset. This erratum applies
421# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
422CPU_FLAG_LIST += ERRATA_X1_1827429
423
424# Flag to apply T32 CLREX workaround during reset. This erratum applies
425# only to r0p0 and r1p0 of the Neoverse N1 cpu.
426CPU_FLAG_LIST += ERRATA_N1_1043202
427
428# Flag to apply erratum 1073348 workaround during reset. This erratum applies
429# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
430CPU_FLAG_LIST += ERRATA_N1_1073348
431
432# Flag to apply erratum 1130799 workaround during reset. This erratum applies
433# only to revision <= r2p0 of the Neoverse N1 cpu.
434CPU_FLAG_LIST += ERRATA_N1_1130799
435
436# Flag to apply erratum 1165347 workaround during reset. This erratum applies
437# only to revision <= r2p0 of the Neoverse N1 cpu.
438CPU_FLAG_LIST += ERRATA_N1_1165347
439
440# Flag to apply erratum 1207823 workaround during reset. This erratum applies
441# only to revision <= r2p0 of the Neoverse N1 cpu.
442CPU_FLAG_LIST += ERRATA_N1_1207823
443
444# Flag to apply erratum 1220197 workaround during reset. This erratum applies
445# only to revision <= r2p0 of the Neoverse N1 cpu.
446CPU_FLAG_LIST += ERRATA_N1_1220197
447
448# Flag to apply erratum 1257314 workaround during reset. This erratum applies
449# only to revision <= r3p0 of the Neoverse N1 cpu.
450CPU_FLAG_LIST += ERRATA_N1_1257314
451
452# Flag to apply erratum 1262606 workaround during reset. This erratum applies
453# only to revision <= r3p0 of the Neoverse N1 cpu.
454CPU_FLAG_LIST += ERRATA_N1_1262606
455
456# Flag to apply erratum 1262888 workaround during reset. This erratum applies
457# only to revision <= r3p0 of the Neoverse N1 cpu.
458CPU_FLAG_LIST += ERRATA_N1_1262888
459
460# Flag to apply erratum 1275112 workaround during reset. This erratum applies
461# only to revision <= r3p0 of the Neoverse N1 cpu.
462CPU_FLAG_LIST += ERRATA_N1_1275112
463
464# Flag to apply erratum 1315703 workaround during reset. This erratum applies
465# to revisions before r3p1 of the Neoverse N1 cpu.
466CPU_FLAG_LIST += ERRATA_N1_1315703
467
468# Flag to apply erratum 1542419 workaround during reset. This erratum applies
469# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
470CPU_FLAG_LIST += ERRATA_N1_1542419
471
472# Flag to apply erratum 1868343 workaround during reset. This erratum applies
473# to revision <= r4p0 of the Neoverse N1 cpu.
474CPU_FLAG_LIST += ERRATA_N1_1868343
475
476# Flag to apply erratum 1946160 workaround during reset. This erratum applies
477# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
478# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
479CPU_FLAG_LIST += ERRATA_N1_1946160
480
481# Flag to apply erratum 2743102 workaround during powerdown. This erratum
482# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open.
483CPU_FLAG_LIST += ERRATA_N1_2743102
484
485# Flag to apply erratum 1618635 workaround during reset. This erratum applies
486# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
487CPU_FLAG_LIST += ERRATA_V1_1618635
488
489# Flag to apply erratum 1774420 workaround during reset. This erratum applies
490# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
491CPU_FLAG_LIST += ERRATA_V1_1774420
492
493# Flag to apply erratum 1791573 workaround during reset. This erratum applies
494# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
495CPU_FLAG_LIST += ERRATA_V1_1791573
496
497# Flag to apply erratum 1852267 workaround during reset. This erratum applies
498# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
499CPU_FLAG_LIST += ERRATA_V1_1852267
500
501# Flag to apply erratum 1925756 workaround during reset. This needs to be
502# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
503CPU_FLAG_LIST += ERRATA_V1_1925756
504
505# Flag to apply erratum 1940577 workaround during reset. This erratum applies
506# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
507CPU_FLAG_LIST += ERRATA_V1_1940577
508
509# Flag to apply erratum 1966096 workaround during reset. This erratum applies
510# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
511# exists in r0p0 as well but there is no workaround for that revision.
512CPU_FLAG_LIST += ERRATA_V1_1966096
513
514# Flag to apply erratum 2139242 workaround during reset. This erratum applies
515# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
516CPU_FLAG_LIST += ERRATA_V1_2139242
517
518# Flag to apply erratum 2108267 workaround during reset. This erratum applies
519# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
520CPU_FLAG_LIST += ERRATA_V1_2108267
521
522# Flag to apply erratum 2216392 workaround during reset. This erratum applies
523# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
524# issue exists in r0p0 as well but there is no workaround for that revision.
525CPU_FLAG_LIST += ERRATA_V1_2216392
526
527# Flag to apply erratum 2294912 workaround during reset. This erratum applies
Sona Mathewab2b56d2023-10-16 15:12:30 -0500528# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000529CPU_FLAG_LIST += ERRATA_V1_2294912
530
Sona Mathew71ed9172023-11-07 13:46:15 -0600531# Flag to apply erratum 2348377 workaround during reset. This erratum applies
532# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is fixed in r1p2.
533CPU_FLAG_LIST += ERRATA_V1_2348377
534
Boyan Karatoteve4447632022-11-17 12:01:29 +0000535# Flag to apply erratum 2372203 workaround during reset. This erratum applies
536# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
537CPU_FLAG_LIST += ERRATA_V1_2372203
538
Sona Mathewab062f02023-03-14 16:50:36 -0500539# Flag to apply erratum 2701953 workaround to non-arm interconnect ip. This
540# erratum applies to revisions r0p0, r1p0, r1p1 of the Neoverse V1 cpu,
541# it is fixed in r1p2.
542CPU_FLAG_LIST += ERRATA_V1_2701953
543
Boyan Karatoteve4447632022-11-17 12:01:29 +0000544# Flag to apply erratum 2743093 workaround during powerdown. This erratum
545# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
546# still open.
547CPU_FLAG_LIST += ERRATA_V1_2743093
548
549# Flag to apply erratum 2743233 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_2743233
553
554# Flag to apply erratum 2779461 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_2779461
558
559# Flag to apply erratum 1987031 workaround during reset. This erratum applies
560# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
561CPU_FLAG_LIST += ERRATA_A710_1987031
562
563# Flag to apply erratum 2081180 workaround during reset. This erratum applies
564# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
565CPU_FLAG_LIST += ERRATA_A710_2081180
566
567# Flag to apply erratum 2083908 workaround during reset. This erratum applies
568# to revision r2p0 of the Cortex-A710 cpu and is still open.
569CPU_FLAG_LIST += ERRATA_A710_2083908
570
571# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew2bf79392023-10-10 13:51:45 -0500572# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
573# open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000574CPU_FLAG_LIST += ERRATA_A710_2058056
575
576# Flag to apply erratum 2055002 workaround during reset. This erratum applies
577# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
578CPU_FLAG_LIST += ERRATA_A710_2055002
579
580# Flag to apply erratum 2017096 workaround during reset. This erratum applies
581# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
582CPU_FLAG_LIST += ERRATA_A710_2017096
583
584# Flag to apply erratum 2267065 workaround during reset. This erratum applies
585# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
586CPU_FLAG_LIST += ERRATA_A710_2267065
587
588# Flag to apply erratum 2136059 workaround during reset. This erratum applies
589# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
590CPU_FLAG_LIST += ERRATA_A710_2136059
591
592# Flag to apply erratum 2147715 workaround during reset. This erratum applies
593# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
594CPU_FLAG_LIST += ERRATA_A710_2147715
595
596# Flag to apply erratum 2216384 workaround during reset. This erratum applies
597# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
598CPU_FLAG_LIST += ERRATA_A710_2216384
599
600# Flag to apply erratum 2282622 workaround during reset. This erratum applies
601# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
602# open.
603CPU_FLAG_LIST += ERRATA_A710_2282622
604
605# Flag to apply erratum 2291219 workaround during reset. This erratum applies
606# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
607CPU_FLAG_LIST += ERRATA_A710_2291219
608
609# Flag to apply erratum 2008768 workaround during reset. This erratum applies
610# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
611CPU_FLAG_LIST += ERRATA_A710_2008768
612
613# Flag to apply erratum 2371105 workaround during reset. This erratum applies
614# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
615CPU_FLAG_LIST += ERRATA_A710_2371105
616
Sona Mathewab062f02023-03-14 16:50:36 -0500617# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
618# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
619# and is still open.
620CPU_FLAG_LIST += ERRATA_A710_2701952
621
Bipin Ravid7bc2cb2023-10-17 07:55:55 -0500622# Flag to apply erratum 2742423 workaround during reset. This erratum applies
623# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
624# open.
625CPU_FLAG_LIST += ERRATA_A710_2742423
626
Boyan Karatoteve4447632022-11-17 12:01:29 +0000627# Flag to apply erratum 2768515 workaround during power down. This erratum
628# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
629# still open.
630CPU_FLAG_LIST += ERRATA_A710_2768515
631
Sona Mathewc9508d62023-12-08 20:52:17 -0600632# Flag to apply erratum 2778471 workaround during reset. This erratum applies
633# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
634# open.
635CPU_FLAG_LIST += ERRATA_A710_2778471
636
Boyan Karatoteve4447632022-11-17 12:01:29 +0000637# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500638# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000639CPU_FLAG_LIST += ERRATA_N2_2002655
640
Bipin Ravi74bfe312023-08-29 13:59:09 -0500641# Flag to apply erratum 2009478 workaround during powerdown. This erratum
642# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
643CPU_FLAG_LIST += ERRATA_N2_2009478
644
Boyan Karatoteve4447632022-11-17 12:01:29 +0000645# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500646# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000647CPU_FLAG_LIST += ERRATA_N2_2067956
648
649# Flag to apply erratum 2025414 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500650# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000651CPU_FLAG_LIST += ERRATA_N2_2025414
652
653# Flag to apply erratum 2189731 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500654# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000655CPU_FLAG_LIST += ERRATA_N2_2189731
656
657# Flag to apply erratum 2138956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500658# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000659CPU_FLAG_LIST += ERRATA_N2_2138956
660
661# Flag to apply erratum 2138953 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500662# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000663CPU_FLAG_LIST += ERRATA_N2_2138953
664
665# Flag to apply erratum 2242415 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500666# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000667CPU_FLAG_LIST += ERRATA_N2_2242415
668
669# Flag to apply erratum 2138958 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500670# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000671CPU_FLAG_LIST += ERRATA_N2_2138958
672
673# Flag to apply erratum 2242400 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500674# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000675CPU_FLAG_LIST += ERRATA_N2_2242400
676
677# Flag to apply erratum 2280757 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500678# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000679CPU_FLAG_LIST += ERRATA_N2_2280757
680
Bipin Ravi68085ad2023-10-17 06:21:15 -0500681# Flag to apply erratum 2326639 workaroud during powerdown. This erratum
Boyan Karatoteve4447632022-11-17 12:01:29 +0000682# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
683CPU_FLAG_LIST += ERRATA_N2_2326639
684
Bipin Ravi68085ad2023-10-17 06:21:15 -0500685# Flag to apply erratum 2340933 workaroud during reset. This erratum
686# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
687CPU_FLAG_LIST += ERRATA_N2_2340933
688
Bipin Ravi6cb8be12023-10-17 05:56:01 -0500689# Flag to apply erratum 2346952 workaround during reset. This erratum applies
690# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
691CPU_FLAG_LIST += ERRATA_N2_2346952
692
Boyan Karatoteve4447632022-11-17 12:01:29 +0000693# Flag to apply erratum 2376738 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500694# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000695CPU_FLAG_LIST += ERRATA_N2_2376738
696
697# Flag to apply erratum 2388450 workaround during reset. This erratum applies
698# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
699CPU_FLAG_LIST += ERRATA_N2_2388450
700
Sona Mathewab062f02023-03-14 16:50:36 -0500701# Flag to apply erratum 2728475 workaround for non-arm interconnect ip. This
702# erratum applies to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in
703# r0p3.
704CPU_FLAG_LIST += ERRATA_N2_2728475
705
Arvind Ram Prakasheb440352023-07-05 17:24:23 -0500706# Flag to apply erratum 2743014 workaround during reset. This erratum applies
707# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
708CPU_FLAG_LIST += ERRATA_N2_2743014
709
Boyan Karatoteve4447632022-11-17 12:01:29 +0000710# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
711# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
712CPU_FLAG_LIST += ERRATA_N2_2743089
713
Arvind Ram Prakash12d28062023-07-17 14:46:14 -0500714# Flag to apply erratum 2779511 workaround during reset. This erratum applies
715# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
716CPU_FLAG_LIST += ERRATA_N2_2779511
717
Boyan Karatoteve4447632022-11-17 12:01:29 +0000718# Flag to apply erratum 2002765 workaround during reset. This erratum applies
719# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
720CPU_FLAG_LIST += ERRATA_X2_2002765
721
722# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew8ae66d62023-10-16 13:33:18 -0500723# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000724CPU_FLAG_LIST += ERRATA_X2_2058056
725
726# Flag to apply erratum 2083908 workaround during reset. This erratum applies
727# to revision r2p0 of the Cortex-X2 cpu and is still open.
728CPU_FLAG_LIST += ERRATA_X2_2083908
729
730# Flag to apply erratum 2017096 workaround during reset. This erratum applies
731# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
732# r2p1.
733CPU_FLAG_LIST += ERRATA_X2_2017096
734
735# Flag to apply erratum 2081180 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_2081180
739
740# Flag to apply erratum 2216384 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_2216384
744
745# Flag to apply erratum 2147715 workaround during reset. This erratum applies
746# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
747CPU_FLAG_LIST += ERRATA_X2_2147715
748
749# Flag to apply erratum 2282622 workaround during reset. This erratum applies
750# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
751# open.
752CPU_FLAG_LIST += ERRATA_X2_2282622
753
754# Flag to apply erratum 2371105 workaround during reset. This erratum applies
755# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
756CPU_FLAG_LIST += ERRATA_X2_2371105
757
Sona Mathewab062f02023-03-14 16:50:36 -0500758# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
759# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
760# and is still open.
761CPU_FLAG_LIST += ERRATA_X2_2701952
762
Bipin Ravife06e112023-10-17 09:11:19 -0500763# Flag to apply erratum 2742423 workaround during reset. This erratum applies
764# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
765CPU_FLAG_LIST += ERRATA_X2_2742423
766
Boyan Karatoteve4447632022-11-17 12:01:29 +0000767# Flag to apply erratum 2768515 workaround during power down. This erratum
768# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
769# still open.
770CPU_FLAG_LIST += ERRATA_X2_2768515
771
Sona Mathewb01a93d2023-12-09 13:09:30 -0600772# Flag to apply erratum 2778471 workaround during reset. This erratum applies
773# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
774CPU_FLAG_LIST += ERRATA_X2_2778471
775
Sona Mathew24543162023-10-03 17:09:09 -0500776# Flag to apply erratum 2070301 workaround on reset. This erratum applies
777# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
778# still open.
779CPU_FLAG_LIST += ERRATA_X3_2070301
780
Bipin Ravia65c5ba2023-12-20 14:53:37 -0600781# Flag to apply erratum 2266875 workaround during reset. This erratum applies
782# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
783CPU_FLAG_LIST += ERRATA_X3_2266875
784
Bipin Ravi3f9df2c2023-12-20 14:32:02 -0600785# Flag to apply erratum 2302506 workaround during reset. This erratum applies
786# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
787CPU_FLAG_LIST += ERRATA_X3_2302506
788
Boyan Karatoteve4447632022-11-17 12:01:29 +0000789# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
790# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
791CPU_FLAG_LIST += ERRATA_X3_2313909
792
Bipin Ravi7f69a402024-02-27 15:13:17 -0600793# Flag to apply erratum 2372204 workaround during reset. This erratum applies
794# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
795CPU_FLAG_LIST += ERRATA_X3_2372204
796
Boyan Karatoteve4447632022-11-17 12:01:29 +0000797# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
Sona Mathewf589a2a2024-03-15 11:07:33 -0500798# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000799CPU_FLAG_LIST += ERRATA_X3_2615812
800
Bipin Ravic1aa3fa2024-01-25 15:38:46 -0600801# Flag to apply erratum 2641945 workaround on reset. This erratum applies
802# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
803CPU_FLAG_LIST += ERRATA_X3_2641945
804
Sona Mathew106c4282024-02-21 15:07:30 -0600805# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
806# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
807CPU_FLAG_LIST += ERRATA_X3_2701951
808
Sona Mathew5b0e4432023-09-05 14:10:03 -0500809# Flag to apply erratum 2742421 workaround on reset. This erratum applies
810# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
811CPU_FLAG_LIST += ERRATA_X3_2742421
812
Harrison Mutaif43e9f52023-12-12 11:17:19 +0000813# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
814# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
815CPU_FLAG_LIST += ERRATA_X3_2743088
816
Sona Mathew355ce0a2023-11-06 13:48:22 -0600817# Flag to apply erratum 2779509 workaround on reset. This erratum applies
818# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
819CPU_FLAG_LIST += ERRATA_X3_2779509
820
Sona Mathewcc41b562024-03-01 13:36:21 -0600821# Flag to apply erratum 2701112 workaround for platforms that do not use an
822# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
823# cpu and is fixed in r0p1.
824CPU_FLAG_LIST += ERRATA_X4_2701112
825
Boyan Karatoteve4447632022-11-17 12:01:29 +0000826# Flag to apply erratum 1922240 workaround during reset. This erratum applies
827# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
828CPU_FLAG_LIST += ERRATA_A510_1922240
829
830# Flag to apply erratum 2288014 workaround during reset. This erratum applies
831# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
832# fixed in r1p1.
833CPU_FLAG_LIST += ERRATA_A510_2288014
834
835# Flag to apply erratum 2042739 workaround during reset. This erratum applies
836# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
837CPU_FLAG_LIST += ERRATA_A510_2042739
838
839# Flag to apply erratum 2041909 workaround during reset. This erratum applies
840# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
841# present in r0p0 and r0p1 but there is no workaround for those revisions.
842CPU_FLAG_LIST += ERRATA_A510_2041909
843
Sona Mathew6e864752023-10-12 12:04:53 -0500844# Flag to aply erratum 2080326 workaround during reset. This erratum applies
845# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
846# also present in r0p0 and r0p1 but there is no workaround for those revisions.
847CPU_FLAG_LIST += ERRATA_A510_2080326
848
Boyan Karatoteve4447632022-11-17 12:01:29 +0000849# Flag to apply erratum 2250311 workaround during reset. This erratum applies
850# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
851CPU_FLAG_LIST += ERRATA_A510_2250311
852
853# Flag to apply erratum 2218950 workaround during reset. This erratum applies
854# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
855CPU_FLAG_LIST += ERRATA_A510_2218950
856
857# Flag to apply erratum 2172148 workaround during reset. This erratum applies
858# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
859CPU_FLAG_LIST += ERRATA_A510_2172148
860
861# Flag to apply erratum 2347730 workaround during reset. This erratum applies
862# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
863# and is fixed in r1p2.
864CPU_FLAG_LIST += ERRATA_A510_2347730
865
866# Flag to apply erratum 2371937 workaround during reset. This erratum applies
867# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
868CPU_FLAG_LIST += ERRATA_A510_2371937
869
870# Flag to apply erratum 2666669 workaround during reset. This erratum applies
871# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
872CPU_FLAG_LIST += ERRATA_A510_2666669
873
874# Flag to apply erratum 2684597 workaround during powerdown. This erratum
875# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
876# Cortex-A510 cpu and is fixed in r1p3.
877CPU_FLAG_LIST += ERRATA_A510_2684597
878
Sona Mathewf03bfc32023-12-09 20:44:56 -0600879# Flag to apply erratum 2630792 workaround during reset. This erratum applies
880# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
881CPU_FLAG_LIST += ERRATA_A520_2630792
882
Arvind Ram Prakash34db3532023-12-08 20:19:58 -0600883# Flag to apply erratum 2858100 workaround during reset. This erratum
884# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
885CPU_FLAG_LIST += ERRATA_A520_2858100
886
Bipin Ravi8852fb52023-09-18 16:34:13 -0500887# Flag to apply erratum 2331132 workaround during reset. This erratum applies
888# to revisions r0p0, r0p1 and r0p2. It is still open.
889CPU_FLAG_LIST += ERRATA_V2_2331132
890
Bipin Ravic0f8ce52023-10-17 19:42:15 -0500891# Flag to apply erratum 2618597 workaround during reset. This erratum applies
892# to revisions r0p0 and r0p1. It is fixed in r0p2.
893CPU_FLAG_LIST += ERRATA_V2_2618597
894
Bipin Ravi912c4092023-10-17 18:35:55 -0500895# Flag to apply erratum 2662553 workaround during reset. This erratum applies
896# to revisions r0p0 and r0p1. It is fixed in r0p2.
897CPU_FLAG_LIST += ERRATA_V2_2662553
898
Sona Mathewab062f02023-03-14 16:50:36 -0500899# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
900# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
901CPU_FLAG_LIST += ERRATA_V2_2719103
902
Bipin Ravib0114022023-09-18 17:27:29 -0500903# Flag to apply erratum 2719105 workaround during reset. This erratum applies
904# to revisions r0p0 and r0p1. It is fixed in r0p2.
905CPU_FLAG_LIST += ERRATA_V2_2719105
906
Bipin Ravi58dd1532023-09-18 19:54:41 -0500907# Flag to apply erratum 2743011 workaround during reset. This erratum applies
908# to revisions r0p0 and r0p1. It is fixed in r0p2.
909CPU_FLAG_LIST += ERRATA_V2_2743011
910
Bipin Raviff342642023-09-18 19:28:32 -0500911# Flag to apply erratum 2779510 workaround during reset. This erratum applies
912# to revisions r0p0 and r0p1. It is fixed in r0p2.
913CPU_FLAG_LIST += ERRATA_V2_2779510
914
Moritz Fischer40c81ed2023-07-06 00:01:23 +0000915# Flag to apply erratum 2801372 workaround for all configurations.
916# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
917CPU_FLAG_LIST += ERRATA_V2_2801372
918
Bipin Ravi53b3cd22024-02-27 17:49:12 -0600919# Flag to apply erratum 2331818 workaround during reset. This erratum applies
920# to revisions r0p0 and r1p0. It is fixed in r1p1.
921CPU_FLAG_LIST += ERRATA_A715_2331818
922
Harrison Mutai33c665a2024-01-02 16:55:44 +0000923# Flag to apply erratum 2344187 workaround during reset. This erratum applies
924# to revisions r0p0, and r1p0. It is fixed in r1p1.
925CPU_FLAG_LIST += ERRATA_A715_2344187
926
Sona Mathew15a04612024-02-20 16:59:45 -0600927# Flag to apply erratum 2413290 workaround during reset. This erratum applies
928# only to revision r1p0. It is fixed in r1p1.
929CPU_FLAG_LIST += ERRATA_A715_2413290
930
Bipin Ravi1f732472024-02-27 17:34:05 -0600931# Flag to apply erratum 2420947 workaround during reset. This erratum applies
932# only to revision r1p0. It is fixed in r1p1.
933CPU_FLAG_LIST += ERRATA_A715_2420947
934
Bipin Ravi262dc9f2024-02-27 17:14:22 -0600935# Flag to apply erratum 2429384 workaround during reset. This erratum applies
936# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
937CPU_FLAG_LIST += ERRATA_A715_2429384
938
Bipin Ravi6a6b2822024-01-25 16:18:20 -0600939# Flag to apply erratum 2561034 workaround during reset. This erratum applies
940# only to revision r1p0. It is fixed in r1p1.
941CPU_FLAG_LIST += ERRATA_A715_2561034
942
Bipin Ravi152f4cf2024-03-14 16:52:21 -0500943# Flag to apply erratum 2926083 workaround during reset. This erratum applies
944# to revisions r0p0 and r0p1. It is fixed in r0p2.
945CPU_FLAG_LIST += ERRATA_A720_2926083
946
Bipin Ravi73852132024-03-12 10:29:16 -0500947# Flag to apply erratum 2940794 workaround during reset. This erratum applies
948# to revisions r0p0 and r0p1. It is fixed in r0p2.
949CPU_FLAG_LIST += ERRATA_A720_2940794
950
Boyan Karatoteve4447632022-11-17 12:01:29 +0000951# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
952# Applying the workaround results in higher DSU power consumption on idle.
953CPU_FLAG_LIST += ERRATA_DSU_798953
954
955# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
956# the ACP interface and revision < r2p0. Applying the workaround results in
957# higher DSU power consumption on idle.
958CPU_FLAG_LIST += ERRATA_DSU_936184
959
960# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
961# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
962# results in higher DSU power consumption on idle.
963CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +0000964
Dimitris Papastamosfe007b22018-05-16 11:36:14 +0100965ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -0600966 ifeq (${WORKAROUND_CVE_2018_3639},0)
967 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
968 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +0100969endif
970
Boyan Karatoteve4447632022-11-17 12:01:29 +0000971# process all flags
972$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
973$(eval $(call add_defines, $(CPU_FLAG_LIST)))
974$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -0600975
Douglas Raillarda94cc372017-06-19 15:38:02 +0100976# Errata build flags
977ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +0100978TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +0100979endif
980
981ifneq (${ERRATA_A53_835769},0)
982TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +0100983TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +0100984endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +0100985
986ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
987 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
988ERRATA_SPECULATIVE_AT := 1
989else
990ERRATA_SPECULATIVE_AT := 0
991endif