blob: fb904e232b38980161695a40c82dd2ce4b011e66 [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Arvind Ram Prakash23721792024-09-06 11:35:56 -05002# Copyright (c) 2014-2025, Arm Limited and Contributors. All rights reserved.
Varun Wadekar92e87082022-03-09 22:04:00 +00003# Copyright (c) 2020-2022, NVIDIA Corporation. All rights reserved.
Soby Mathewd9bdaf22014-08-14 16:19:29 +01004#
dp-arm82cb2c12017-05-03 09:38:09 +01005# SPDX-License-Identifier: BSD-3-Clause
Soby Mathewd9bdaf22014-08-14 16:19:29 +01006#
7
Boyan Karatoteve4447632022-11-17 12:01:29 +00008include ${MAKE_HELPERS_DIRECTORY}$/build_macros.mk
9
Soby Mathew5541bb32014-09-22 14:13:34 +010010# Cortex A57 specific optimisation to skip L1 cache flush when
11# cluster is powered down.
Boyan Karatoteve4447632022-11-17 12:01:29 +000012CPU_FLAG_LIST += SKIP_A57_L1_FLUSH_PWR_DWN
Soby Mathew5541bb32014-09-22 14:13:34 +010013
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000014# Flag to disable the cache non-temporal hint.
15# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060016A53_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000017CPU_FLAG_LIST += A53_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000018
19# Flag to disable the cache non-temporal hint.
20# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060021A57_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000022CPU_FLAG_LIST += A57_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000023
Varun Wadekarcd0ea182018-06-12 16:49:12 -070024# Flag to enable higher performance non-cacheable load forwarding.
25# It is disabled by default.
Boyan Karatoteve4447632022-11-17 12:01:29 +000026CPU_FLAG_LIST += A57_ENABLE_NONCACHEABLE_LOAD_FWD
Varun Wadekarcd0ea182018-06-12 16:49:12 -070027
johpow0183435632022-01-04 16:15:18 -060028WORKAROUND_CVE_2017_5715 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000029CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715
johpow0183435632022-01-04 16:15:18 -060030WORKAROUND_CVE_2018_3639 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000031CPU_FLAG_LIST += WORKAROUND_CVE_2018_3639
32CPU_FLAG_LIST += DYNAMIC_WORKAROUND_CVE_2018_3639
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060033WORKAROUND_CVE_2022_23960 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000034CPU_FLAG_LIST += WORKAROUND_CVE_2022_23960
Arvind Ram Prakash23721792024-09-06 11:35:56 -050035WORKAROUND_CVE_2024_7881 ?=1
36CPU_FLAG_LIST += WORKAROUND_CVE_2024_7881
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000037
Sona Mathewaf65cbb2024-05-20 13:48:19 -050038# Flag to disable Hardware page aggregation(HPA).
39# This flag is enabled by default.
40WORKAROUND_CVE_2024_5660 ?=1
41CPU_FLAG_LIST += WORKAROUND_CVE_2024_5660
42
43
Javier Almansa Sobrino25bbbd22020-10-23 13:22:07 +010044# Flags to indicate internal or external Last level cache
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000045# By default internal
Boyan Karatoteve4447632022-11-17 12:01:29 +000046CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000047
Boyan Karatoteve4447632022-11-17 12:01:29 +000048# CPU Errata Build flags.
49# These should be enabled by the platform if the erratum workaround needs to be
50# applied.
Varun Wadekarcd0ea182018-06-12 16:49:12 -070051
Boyan Karatoteve4447632022-11-17 12:01:29 +000052# Flag to apply erratum 794073 workaround when disabling mmu.
53CPU_FLAG_LIST += ERRATA_A9_794073
Soby Mathew5541bb32014-09-22 14:13:34 +010054
Boyan Karatoteve4447632022-11-17 12:01:29 +000055# Flag to apply erratum 816470 workaround during power down. This erratum
56# applies only to revision >= r3p0 of the Cortex A15 cpu.
57CPU_FLAG_LIST += ERRATA_A15_816470
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000058
Boyan Karatoteve4447632022-11-17 12:01:29 +000059# Flag to apply erratum 827671 workaround during reset. This erratum applies
60# only to revision >= r3p0 of the Cortex A15 cpu.
61CPU_FLAG_LIST += ERRATA_A15_827671
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000062
Boyan Karatoteve4447632022-11-17 12:01:29 +000063# Flag to apply erratum 852421 workaround during reset. This erratum applies
64# only to revision <= r1p2 of the Cortex A17 cpu.
65CPU_FLAG_LIST += ERRATA_A17_852421
Soby Mathew5541bb32014-09-22 14:13:34 +010066
Boyan Karatoteve4447632022-11-17 12:01:29 +000067# Flag to apply erratum 852423 workaround during reset. This erratum applies
68# only to revision <= r1p2 of the Cortex A17 cpu.
69CPU_FLAG_LIST += ERRATA_A17_852423
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010070
Boyan Karatoteve4447632022-11-17 12:01:29 +000071# Flag to apply erratum 855472 workaround during reset. This erratum applies
72# only to revision r0p0 of the Cortex A35 cpu.
73CPU_FLAG_LIST += ERRATA_A35_855472
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010074
Boyan Karatoteve4447632022-11-17 12:01:29 +000075# Flag to apply erratum 819472 workaround during reset. This erratum applies
76# only to revision <= r0p1 of the Cortex A53 cpu.
77CPU_FLAG_LIST += ERRATA_A53_819472
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060078
Boyan Karatoteve4447632022-11-17 12:01:29 +000079# Flag to apply erratum 824069 workaround during reset. This erratum applies
80# only to revision <= r0p2 of the Cortex A53 cpu.
81CPU_FLAG_LIST += ERRATA_A53_824069
82
83# Flag to apply erratum 826319 workaround during reset. This erratum applies
84# only to revision <= r0p2 of the Cortex A53 cpu.
85CPU_FLAG_LIST += ERRATA_A53_826319
86
87# Flag to apply erratum 827319 workaround during reset. This erratum applies
88# only to revision <= r0p2 of the Cortex A53 cpu.
89CPU_FLAG_LIST += ERRATA_A53_827319
90
91# Flag to apply erratum 835769 workaround at compile and link time. This
92# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
93# workaround can lead the linker to create "*.stub" sections.
94CPU_FLAG_LIST += ERRATA_A53_835769
95
96# Flag to apply erratum 836870 workaround during reset. This erratum applies
97# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
98# erratum workaround is enabled by default in hardware.
99CPU_FLAG_LIST += ERRATA_A53_836870
100
101# Flag to apply erratum 843419 workaround at link time.
102# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
103# workaround could lead the linker to emit "*.stub" sections which are 4kB
104# aligned.
105CPU_FLAG_LIST += ERRATA_A53_843419
106
107# Flag to apply errata 855873 during reset. This errata applies to all
108# revisions of the Cortex A53 CPU, but this firmware workaround only works
109# for revisions r0p3 and higher. Earlier revisions are taken care
110# of by the rich OS.
111CPU_FLAG_LIST += ERRATA_A53_855873
112
113# Flag to apply erratum 1530924 workaround during reset. This erratum applies
114# to all revisions of Cortex A53 cpu.
115CPU_FLAG_LIST += ERRATA_A53_1530924
116
117# Flag to apply erratum 768277 workaround during reset. This erratum applies
118# only to revision r0p0 of the Cortex A55 cpu.
119CPU_FLAG_LIST += ERRATA_A55_768277
120
121# Flag to apply erratum 778703 workaround during reset. This erratum applies
122# only to revision r0p0 of the Cortex A55 cpu.
123CPU_FLAG_LIST += ERRATA_A55_778703
124
125# Flag to apply erratum 798797 workaround during reset. This erratum applies
126# only to revision r0p0 of the Cortex A55 cpu.
127CPU_FLAG_LIST += ERRATA_A55_798797
128
129# Flag to apply erratum 846532 workaround during reset. This erratum applies
130# only to revision <= r0p1 of the Cortex A55 cpu.
131CPU_FLAG_LIST += ERRATA_A55_846532
132
133# Flag to apply erratum 903758 workaround during reset. This erratum applies
134# only to revision <= r0p1 of the Cortex A55 cpu.
135CPU_FLAG_LIST += ERRATA_A55_903758
136
137# Flag to apply erratum 1221012 workaround during reset. This erratum applies
138# only to revision <= r1p0 of the Cortex A55 cpu.
139CPU_FLAG_LIST += ERRATA_A55_1221012
140
141# Flag to apply erratum 1530923 workaround during reset. This erratum applies
142# to all revisions of Cortex A55 cpu.
143CPU_FLAG_LIST += ERRATA_A55_1530923
144
145# Flag to apply erratum 806969 workaround during reset. This erratum applies
146# only to revision r0p0 of the Cortex A57 cpu.
147CPU_FLAG_LIST += ERRATA_A57_806969
148
149# Flag to apply erratum 813419 workaround during reset. This erratum applies
150# only to revision r0p0 of the Cortex A57 cpu.
151CPU_FLAG_LIST += ERRATA_A57_813419
152
153# Flag to apply erratum 813420 workaround during reset. This erratum applies
154# only to revision r0p0 of the Cortex A57 cpu.
155CPU_FLAG_LIST += ERRATA_A57_813420
156
157# Flag to apply erratum 814670 workaround during reset. This erratum applies
158# only to revision r0p0 of the Cortex A57 cpu.
159CPU_FLAG_LIST += ERRATA_A57_814670
160
161# Flag to apply erratum 817169 workaround during power down. This erratum
162# applies only to revision <= r0p1 of the Cortex A57 cpu.
163CPU_FLAG_LIST += ERRATA_A57_817169
164
165# Flag to apply erratum 826974 workaround during reset. This erratum applies
166# only to revision <= r1p1 of the Cortex A57 cpu.
167CPU_FLAG_LIST += ERRATA_A57_826974
168
169# Flag to apply erratum 826977 workaround during reset. This erratum applies
170# only to revision <= r1p1 of the Cortex A57 cpu.
171CPU_FLAG_LIST += ERRATA_A57_826977
172
173# Flag to apply erratum 828024 workaround during reset. This erratum applies
174# only to revision <= r1p1 of the Cortex A57 cpu.
175CPU_FLAG_LIST += ERRATA_A57_828024
176
177# Flag to apply erratum 829520 workaround during reset. This erratum applies
178# only to revision <= r1p2 of the Cortex A57 cpu.
179CPU_FLAG_LIST += ERRATA_A57_829520
180
181# Flag to apply erratum 833471 workaround during reset. This erratum applies
182# only to revision <= r1p2 of the Cortex A57 cpu.
183CPU_FLAG_LIST += ERRATA_A57_833471
184
185# Flag to apply erratum 855972 workaround during reset. This erratum applies
186# only to revision <= r1p3 of the Cortex A57 cpu.
187CPU_FLAG_LIST += ERRATA_A57_859972
188
189# Flag to apply erratum 1319537 workaround during reset. This erratum applies
190# to all revisions of Cortex A57 cpu.
191CPU_FLAG_LIST += ERRATA_A57_1319537
192
193# Flag to apply erratum 855971 workaround during reset. This erratum applies
194# only to revision <= r0p3 of the Cortex A72 cpu.
195CPU_FLAG_LIST += ERRATA_A72_859971
196
197# Flag to apply erratum 1319367 workaround during reset. This erratum applies
198# to all revisions of Cortex A72 cpu.
199CPU_FLAG_LIST += ERRATA_A72_1319367
200
201# Flag to apply erratum 852427 workaround during reset. This erratum applies
202# only to revision r0p0 of the Cortex A73 cpu.
203CPU_FLAG_LIST += ERRATA_A73_852427
204
205# Flag to apply erratum 855423 workaround during reset. This erratum applies
206# only to revision <= r0p1 of the Cortex A73 cpu.
207CPU_FLAG_LIST += ERRATA_A73_855423
208
209# Flag to apply erratum 764081 workaround during reset. This erratum applies
210# only to revision <= r0p0 of the Cortex A75 cpu.
211CPU_FLAG_LIST += ERRATA_A75_764081
212
213# Flag to apply erratum 790748 workaround during reset. This erratum applies
214# only to revision <= r0p0 of the Cortex A75 cpu.
215CPU_FLAG_LIST += ERRATA_A75_790748
216
217# Flag to apply erratum 1073348 workaround during reset. This erratum applies
218# only to revision <= r1p0 of the Cortex A76 cpu.
219CPU_FLAG_LIST += ERRATA_A76_1073348
220
221# Flag to apply erratum 1130799 workaround during reset. This erratum applies
222# only to revision <= r2p0 of the Cortex A76 cpu.
223CPU_FLAG_LIST += ERRATA_A76_1130799
224
225# Flag to apply erratum 1220197 workaround during reset. This erratum applies
226# only to revision <= r2p0 of the Cortex A76 cpu.
227CPU_FLAG_LIST += ERRATA_A76_1220197
228
229# Flag to apply erratum 1257314 workaround during reset. This erratum applies
230# only to revision <= r3p0 of the Cortex A76 cpu.
231CPU_FLAG_LIST += ERRATA_A76_1257314
232
233# Flag to apply erratum 1262606 workaround during reset. This erratum applies
234# only to revision <= r3p0 of the Cortex A76 cpu.
235CPU_FLAG_LIST += ERRATA_A76_1262606
236
237# Flag to apply erratum 1262888 workaround during reset. This erratum applies
238# only to revision <= r3p0 of the Cortex A76 cpu.
239CPU_FLAG_LIST += ERRATA_A76_1262888
240
241# Flag to apply erratum 1275112 workaround during reset. This erratum applies
242# only to revision <= r3p0 of the Cortex A76 cpu.
243CPU_FLAG_LIST += ERRATA_A76_1275112
244
245# Flag to apply erratum 1286807 workaround during reset. This erratum applies
246# only to revision <= r3p0 of the Cortex A76 cpu.
247CPU_FLAG_LIST += ERRATA_A76_1286807
248
249# Flag to apply erratum 1791580 workaround during reset. This erratum applies
250# only to revision <= r4p0 of the Cortex A76 cpu.
251CPU_FLAG_LIST += ERRATA_A76_1791580
252
253# Flag to apply erratum 1165522 workaround during reset. This erratum applies
254# to all revisions of Cortex A76 cpu.
255CPU_FLAG_LIST += ERRATA_A76_1165522
256
257# Flag to apply erratum 1868343 workaround during reset. This erratum applies
258# only to revision <= r4p0 of the Cortex A76 cpu.
259CPU_FLAG_LIST += ERRATA_A76_1868343
260
261# Flag to apply erratum 1946160 workaround during reset. This erratum applies
262# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
263CPU_FLAG_LIST += ERRATA_A76_1946160
264
265# Flag to apply erratum 2743102 workaround during powerdown. This erratum
266# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open.
267CPU_FLAG_LIST += ERRATA_A76_2743102
268
269# Flag to apply erratum 1508412 workaround during reset. This erratum applies
270# only to revision <= r1p0 of the Cortex A77 cpu.
271CPU_FLAG_LIST += ERRATA_A77_1508412
272
273# Flag to apply erratum 1925769 workaround during reset. This erratum applies
274# only to revision <= r1p1 of the Cortex A77 cpu.
275CPU_FLAG_LIST += ERRATA_A77_1925769
276
277# Flag to apply erratum 1946167 workaround during reset. This erratum applies
278# only to revision <= r1p1 of the Cortex A77 cpu.
279CPU_FLAG_LIST += ERRATA_A77_1946167
280
281# Flag to apply erratum 1791578 workaround during reset. This erratum applies
282# to revisions r0p0, r1p0, and r1p1, it is still open.
283CPU_FLAG_LIST += ERRATA_A77_1791578
284
285# Flag to apply erratum 2356587 workaround during reset. This erratum applies
286# to revisions r0p0, r1p0, and r1p1, it is still open.
287CPU_FLAG_LIST += ERRATA_A77_2356587
288
289# Flag to apply erratum 1800714 workaround during reset. This erratum applies
290# to revisions <= r1p1 of the Cortex A77 cpu.
291CPU_FLAG_LIST += ERRATA_A77_1800714
292
293# Flag to apply erratum 2743100 workaround during power down. This erratum
294# applies to revisions r0p0, r1p0, and r1p1, it is still open.
295CPU_FLAG_LIST += ERRATA_A77_2743100
296
297# Flag to apply erratum 1688305 workaround during reset. This erratum applies
298# to revisions r0p0 - r1p0 of the A78 cpu.
299CPU_FLAG_LIST += ERRATA_A78_1688305
300
301# Flag to apply erratum 1941498 workaround during reset. This erratum applies
302# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
303CPU_FLAG_LIST += ERRATA_A78_1941498
304
305# Flag to apply erratum 1951500 workaround during reset. This erratum applies
306# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
307# well but there is no workaround for that revision.
308CPU_FLAG_LIST += ERRATA_A78_1951500
309
310# Flag to apply erratum 1821534 workaround during reset. This erratum applies
311# to revisions r0p0 and r1p0 of the A78 cpu.
312CPU_FLAG_LIST += ERRATA_A78_1821534
313
314# Flag to apply erratum 1952683 workaround during reset. This erratum applies
315# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
316CPU_FLAG_LIST += ERRATA_A78_1952683
317
318# Flag to apply erratum 2132060 workaround during reset. This erratum applies
319# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
320CPU_FLAG_LIST += ERRATA_A78_2132060
321
322# Flag to apply erratum 2242635 workaround during reset. This erratum applies
323# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
324# present in r0p0 as well but there is no workaround for that revision.
325CPU_FLAG_LIST += ERRATA_A78_2242635
326
327# Flag to apply erratum 2376745 workaround during reset. This erratum applies
328# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
329CPU_FLAG_LIST += ERRATA_A78_2376745
330
331# Flag to apply erratum 2395406 workaround during reset. This erratum applies
332# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
333CPU_FLAG_LIST += ERRATA_A78_2395406
334
Sona Mathewab062f02023-03-14 16:50:36 -0500335# Flag to apply erratum 2712571 workaround for non-arm interconnect ip. This
336# erratum applies to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu.
337# It is fixed in r1p2.
338CPU_FLAG_LIST += ERRATA_A78_2712571
339
Boyan Karatoteve4447632022-11-17 12:01:29 +0000340# Flag to apply erratum 2742426 workaround during reset. This erratum
341# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
342# open.
343CPU_FLAG_LIST += ERRATA_A78_2742426
344
345# Flag to apply erratum 2772019 workaround during powerdown. This erratum
346# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
347# open.
348CPU_FLAG_LIST += ERRATA_A78_2772019
349
350# Flag to apply erratum 2779479 workaround during reset. This erratum applies
351# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open.
352CPU_FLAG_LIST += ERRATA_A78_2779479
353
354# Flag to apply erratum 1941500 workaround during reset. This erratum applies
355# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
356CPU_FLAG_LIST += ERRATA_A78_AE_1941500
357
358# Flag to apply erratum 1951502 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_1951502
361
362# Flag to apply erratum 2376748 workaround during reset. This erratum applies
Sona Mathewc8146192023-10-10 16:48:57 -0500363# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000364CPU_FLAG_LIST += ERRATA_A78_AE_2376748
365
366# Flag to apply erratum 2395408 workaround during reset. This erratum applies
367# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
368CPU_FLAG_LIST += ERRATA_A78_AE_2395408
369
Bipin Ravi672eb212023-03-14 10:04:23 -0500370# Flag to apply erratum 1827430 workaround during reset. This erratum applies
371# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
372CPU_FLAG_LIST += ERRATA_A78C_1827430
373
Bipin Ravib01a59e2023-03-14 11:03:24 -0500374# Flag to apply erratum 1827440 workaround during reset. This erratum applies
375# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
376CPU_FLAG_LIST += ERRATA_A78C_1827440
377
Sona Mathewab062f02023-03-14 16:50:36 -0500378# Flag to apply erratum 2712574 workaround for non-arm interconnect ip. This
379# erratum applies to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu.
380# It is still open.
381CPU_FLAG_LIST += ERRATA_A78_AE_2712574
382
Boyan Karatoteve4447632022-11-17 12:01:29 +0000383# Flag to apply erratum 2132064 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_2132064
386
387# Flag to apply erratum 2242638 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_2242638
390
391# Flag to apply erratum 2376749 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_2376749
394
395# Flag to apply erratum 2395411 workaround during reset. This erratum applies
396# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
397CPU_FLAG_LIST += ERRATA_A78C_2395411
398
Bipin Ravi68cac6a2023-12-20 15:40:44 -0600399# Flag to apply erratum 2683027 workaround during reset. This erratum applies
400# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
401CPU_FLAG_LIST += ERRATA_A78C_2683027
402
Sona Mathewab062f02023-03-14 16:50:36 -0500403# Flag to apply erratum 2712575 workaround for non-arm interconnect ip. This
404# erratum applies to revisions r0p1 and r0p2 of the A78C cpu.
405# It is still open.
406CPU_FLAG_LIST += ERRATA_A78C_2712575
407
Sona Mathew81d40942023-11-14 14:00:48 -0600408# Flag to apply erratum 2743232 workaround during reset. This erratum applies
409# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
410CPU_FLAG_LIST += ERRATA_A78C_2743232
411
Boyan Karatoteve4447632022-11-17 12:01:29 +0000412# Flag to apply erratum 2772121 workaround during powerdown. This erratum
413# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open.
414CPU_FLAG_LIST += ERRATA_A78C_2772121
415
416# Flag to apply erratum 2779484 workaround during reset. This erratum
417# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
418CPU_FLAG_LIST += ERRATA_A78C_2779484
419
420# Flag to apply erratum 1821534 workaround during reset. This erratum applies
421# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
422CPU_FLAG_LIST += ERRATA_X1_1821534
423
424# Flag to apply erratum 1688305 workaround during reset. This erratum applies
425# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
426CPU_FLAG_LIST += ERRATA_X1_1688305
427
428# Flag to apply erratum 1827429 workaround during reset. This erratum applies
429# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
430CPU_FLAG_LIST += ERRATA_X1_1827429
431
432# Flag to apply T32 CLREX workaround during reset. This erratum applies
433# only to r0p0 and r1p0 of the Neoverse N1 cpu.
434CPU_FLAG_LIST += ERRATA_N1_1043202
435
436# Flag to apply erratum 1073348 workaround during reset. This erratum applies
437# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
438CPU_FLAG_LIST += ERRATA_N1_1073348
439
440# Flag to apply erratum 1130799 workaround during reset. This erratum applies
441# only to revision <= r2p0 of the Neoverse N1 cpu.
442CPU_FLAG_LIST += ERRATA_N1_1130799
443
444# Flag to apply erratum 1165347 workaround during reset. This erratum applies
445# only to revision <= r2p0 of the Neoverse N1 cpu.
446CPU_FLAG_LIST += ERRATA_N1_1165347
447
448# Flag to apply erratum 1207823 workaround during reset. This erratum applies
449# only to revision <= r2p0 of the Neoverse N1 cpu.
450CPU_FLAG_LIST += ERRATA_N1_1207823
451
452# Flag to apply erratum 1220197 workaround during reset. This erratum applies
453# only to revision <= r2p0 of the Neoverse N1 cpu.
454CPU_FLAG_LIST += ERRATA_N1_1220197
455
456# Flag to apply erratum 1257314 workaround during reset. This erratum applies
457# only to revision <= r3p0 of the Neoverse N1 cpu.
458CPU_FLAG_LIST += ERRATA_N1_1257314
459
460# Flag to apply erratum 1262606 workaround during reset. This erratum applies
461# only to revision <= r3p0 of the Neoverse N1 cpu.
462CPU_FLAG_LIST += ERRATA_N1_1262606
463
464# Flag to apply erratum 1262888 workaround during reset. This erratum applies
465# only to revision <= r3p0 of the Neoverse N1 cpu.
466CPU_FLAG_LIST += ERRATA_N1_1262888
467
468# Flag to apply erratum 1275112 workaround during reset. This erratum applies
469# only to revision <= r3p0 of the Neoverse N1 cpu.
470CPU_FLAG_LIST += ERRATA_N1_1275112
471
472# Flag to apply erratum 1315703 workaround during reset. This erratum applies
473# to revisions before r3p1 of the Neoverse N1 cpu.
474CPU_FLAG_LIST += ERRATA_N1_1315703
475
476# Flag to apply erratum 1542419 workaround during reset. This erratum applies
477# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
478CPU_FLAG_LIST += ERRATA_N1_1542419
479
480# Flag to apply erratum 1868343 workaround during reset. This erratum applies
481# to revision <= r4p0 of the Neoverse N1 cpu.
482CPU_FLAG_LIST += ERRATA_N1_1868343
483
484# Flag to apply erratum 1946160 workaround during reset. This erratum applies
485# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
486# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
487CPU_FLAG_LIST += ERRATA_N1_1946160
488
489# Flag to apply erratum 2743102 workaround during powerdown. This erratum
490# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open.
491CPU_FLAG_LIST += ERRATA_N1_2743102
492
493# Flag to apply erratum 1618635 workaround during reset. This erratum applies
494# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
495CPU_FLAG_LIST += ERRATA_V1_1618635
496
497# Flag to apply erratum 1774420 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_1774420
500
501# Flag to apply erratum 1791573 workaround during reset. This erratum applies
502# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
503CPU_FLAG_LIST += ERRATA_V1_1791573
504
505# Flag to apply erratum 1852267 workaround during reset. This erratum applies
506# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
507CPU_FLAG_LIST += ERRATA_V1_1852267
508
509# Flag to apply erratum 1925756 workaround during reset. This needs to be
510# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
511CPU_FLAG_LIST += ERRATA_V1_1925756
512
513# Flag to apply erratum 1940577 workaround during reset. This erratum applies
514# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
515CPU_FLAG_LIST += ERRATA_V1_1940577
516
517# Flag to apply erratum 1966096 workaround during reset. This erratum applies
518# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
519# exists in r0p0 as well but there is no workaround for that revision.
520CPU_FLAG_LIST += ERRATA_V1_1966096
521
522# Flag to apply erratum 2139242 workaround during reset. This erratum applies
523# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
524CPU_FLAG_LIST += ERRATA_V1_2139242
525
526# Flag to apply erratum 2108267 workaround during reset. This erratum applies
527# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
528CPU_FLAG_LIST += ERRATA_V1_2108267
529
530# Flag to apply erratum 2216392 workaround during reset. This erratum applies
531# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
532# issue exists in r0p0 as well but there is no workaround for that revision.
533CPU_FLAG_LIST += ERRATA_V1_2216392
534
535# Flag to apply erratum 2294912 workaround during reset. This erratum applies
Sona Mathewab2b56d2023-10-16 15:12:30 -0500536# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000537CPU_FLAG_LIST += ERRATA_V1_2294912
538
Sona Mathew71ed9172023-11-07 13:46:15 -0600539# Flag to apply erratum 2348377 workaround during reset. This erratum applies
540# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is fixed in r1p2.
541CPU_FLAG_LIST += ERRATA_V1_2348377
542
Boyan Karatoteve4447632022-11-17 12:01:29 +0000543# Flag to apply erratum 2372203 workaround during reset. This erratum applies
544# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
545CPU_FLAG_LIST += ERRATA_V1_2372203
546
Sona Mathewab062f02023-03-14 16:50:36 -0500547# Flag to apply erratum 2701953 workaround to non-arm interconnect ip. This
548# erratum applies to revisions r0p0, r1p0, r1p1 of the Neoverse V1 cpu,
549# it is fixed in r1p2.
550CPU_FLAG_LIST += ERRATA_V1_2701953
551
Boyan Karatoteve4447632022-11-17 12:01:29 +0000552# Flag to apply erratum 2743093 workaround during powerdown. This erratum
553# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
554# still open.
555CPU_FLAG_LIST += ERRATA_V1_2743093
556
557# Flag to apply erratum 2743233 workaround during powerdown. This erratum
558# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
559# still open.
560CPU_FLAG_LIST += ERRATA_V1_2743233
561
562# Flag to apply erratum 2779461 workaround during powerdown. This erratum
563# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
564# still open.
565CPU_FLAG_LIST += ERRATA_V1_2779461
566
Govindraj Rajae25fc9d2025-01-21 19:20:29 -0600567# Flag to apply erratum 3701767 workaround during context save/restore of
568# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 and r0p2 of
569# the Neoverse V3 cpu and is still open.
570CPU_FLAG_LIST += ERRATA_V3_3701767
571
Boyan Karatoteve4447632022-11-17 12:01:29 +0000572# Flag to apply erratum 1987031 workaround during reset. This erratum applies
573# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
574CPU_FLAG_LIST += ERRATA_A710_1987031
575
576# Flag to apply erratum 2081180 workaround during reset. This erratum applies
577# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
578CPU_FLAG_LIST += ERRATA_A710_2081180
579
580# Flag to apply erratum 2083908 workaround during reset. This erratum applies
581# to revision r2p0 of the Cortex-A710 cpu and is still open.
582CPU_FLAG_LIST += ERRATA_A710_2083908
583
584# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew2bf79392023-10-10 13:51:45 -0500585# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
586# open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000587CPU_FLAG_LIST += ERRATA_A710_2058056
588
589# Flag to apply erratum 2055002 workaround during reset. This erratum applies
590# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
591CPU_FLAG_LIST += ERRATA_A710_2055002
592
593# Flag to apply erratum 2017096 workaround during reset. This erratum applies
594# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
595CPU_FLAG_LIST += ERRATA_A710_2017096
596
597# Flag to apply erratum 2267065 workaround during reset. This erratum applies
598# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
599CPU_FLAG_LIST += ERRATA_A710_2267065
600
601# Flag to apply erratum 2136059 workaround during reset. This erratum applies
602# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
603CPU_FLAG_LIST += ERRATA_A710_2136059
604
605# Flag to apply erratum 2147715 workaround during reset. This erratum applies
606# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
607CPU_FLAG_LIST += ERRATA_A710_2147715
608
609# Flag to apply erratum 2216384 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_2216384
612
613# Flag to apply erratum 2282622 workaround during reset. This erratum applies
614# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
615# open.
616CPU_FLAG_LIST += ERRATA_A710_2282622
617
618# Flag to apply erratum 2291219 workaround during reset. This erratum applies
619# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
620CPU_FLAG_LIST += ERRATA_A710_2291219
621
622# Flag to apply erratum 2008768 workaround during reset. This erratum applies
623# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
624CPU_FLAG_LIST += ERRATA_A710_2008768
625
626# Flag to apply erratum 2371105 workaround during reset. This erratum applies
627# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
628CPU_FLAG_LIST += ERRATA_A710_2371105
629
Sona Mathewab062f02023-03-14 16:50:36 -0500630# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
631# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
632# and is still open.
633CPU_FLAG_LIST += ERRATA_A710_2701952
634
Bipin Ravid7bc2cb2023-10-17 07:55:55 -0500635# Flag to apply erratum 2742423 workaround during reset. This erratum applies
636# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
637# open.
638CPU_FLAG_LIST += ERRATA_A710_2742423
639
Boyan Karatoteve4447632022-11-17 12:01:29 +0000640# Flag to apply erratum 2768515 workaround during power down. This erratum
641# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
642# still open.
643CPU_FLAG_LIST += ERRATA_A710_2768515
644
Sona Mathewc9508d62023-12-08 20:52:17 -0600645# Flag to apply erratum 2778471 workaround during reset. This erratum applies
646# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
647# open.
648CPU_FLAG_LIST += ERRATA_A710_2778471
649
Govindraj Raja463b5b42025-01-21 12:32:14 -0600650# Flag to apply erratum 3701772 workaround during context save/restore of
651# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0, r2p1
652# of the Cortex-A710 cpu and is still open.
653CPU_FLAG_LIST += ERRATA_A710_3701772
654
Boyan Karatoteve4447632022-11-17 12:01:29 +0000655# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500656# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000657CPU_FLAG_LIST += ERRATA_N2_2002655
658
Bipin Ravi74bfe312023-08-29 13:59:09 -0500659# Flag to apply erratum 2009478 workaround during powerdown. This erratum
660# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
661CPU_FLAG_LIST += ERRATA_N2_2009478
662
Boyan Karatoteve4447632022-11-17 12:01:29 +0000663# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500664# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000665CPU_FLAG_LIST += ERRATA_N2_2067956
666
667# Flag to apply erratum 2025414 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500668# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000669CPU_FLAG_LIST += ERRATA_N2_2025414
670
671# Flag to apply erratum 2189731 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500672# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000673CPU_FLAG_LIST += ERRATA_N2_2189731
674
675# Flag to apply erratum 2138956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500676# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000677CPU_FLAG_LIST += ERRATA_N2_2138956
678
679# Flag to apply erratum 2138953 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500680# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000681CPU_FLAG_LIST += ERRATA_N2_2138953
682
683# Flag to apply erratum 2242415 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500684# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000685CPU_FLAG_LIST += ERRATA_N2_2242415
686
687# Flag to apply erratum 2138958 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500688# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000689CPU_FLAG_LIST += ERRATA_N2_2138958
690
691# Flag to apply erratum 2242400 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500692# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000693CPU_FLAG_LIST += ERRATA_N2_2242400
694
695# Flag to apply erratum 2280757 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500696# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000697CPU_FLAG_LIST += ERRATA_N2_2280757
698
Bipin Ravi68085ad2023-10-17 06:21:15 -0500699# Flag to apply erratum 2326639 workaroud during powerdown. This erratum
Boyan Karatoteve4447632022-11-17 12:01:29 +0000700# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
701CPU_FLAG_LIST += ERRATA_N2_2326639
702
Bipin Ravi68085ad2023-10-17 06:21:15 -0500703# Flag to apply erratum 2340933 workaroud during reset. This erratum
704# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
705CPU_FLAG_LIST += ERRATA_N2_2340933
706
Bipin Ravi6cb8be12023-10-17 05:56:01 -0500707# Flag to apply erratum 2346952 workaround during reset. This erratum applies
708# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
709CPU_FLAG_LIST += ERRATA_N2_2346952
710
Boyan Karatoteve4447632022-11-17 12:01:29 +0000711# Flag to apply erratum 2376738 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500712# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000713CPU_FLAG_LIST += ERRATA_N2_2376738
714
715# Flag to apply erratum 2388450 workaround during reset. This erratum applies
716# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
717CPU_FLAG_LIST += ERRATA_N2_2388450
718
Sona Mathewab062f02023-03-14 16:50:36 -0500719# Flag to apply erratum 2728475 workaround for non-arm interconnect ip. This
720# erratum applies to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in
721# r0p3.
722CPU_FLAG_LIST += ERRATA_N2_2728475
723
Arvind Ram Prakasheb440352023-07-05 17:24:23 -0500724# Flag to apply erratum 2743014 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_2743014
727
Boyan Karatoteve4447632022-11-17 12:01:29 +0000728# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
729# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
730CPU_FLAG_LIST += ERRATA_N2_2743089
731
Arvind Ram Prakash12d28062023-07-17 14:46:14 -0500732# Flag to apply erratum 2779511 workaround during reset. This erratum applies
733# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
734CPU_FLAG_LIST += ERRATA_N2_2779511
735
Govindraj Rajaadea6e52025-01-21 18:56:25 -0600736# Flag to apply erratum 3701773 workaround during context save/restore of
737# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
738# of the Neoverse N2 cpu and is still open.
739CPU_FLAG_LIST += ERRATA_N2_3701773
740
Govindraj Rajafded8392025-01-21 19:03:34 -0600741# Flag to apply erratum 3699563 workaround during context save/restore of
742# ICH_VMCR_EL2 reg. This erratum applies to revision r0p0 of the Neoverse N3
743# cpu and is still open.
744CPU_FLAG_LIST += ERRATA_N3_3699563
745
Boyan Karatoteve4447632022-11-17 12:01:29 +0000746# Flag to apply erratum 2002765 workaround during reset. This erratum applies
747# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
748CPU_FLAG_LIST += ERRATA_X2_2002765
749
750# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew8ae66d62023-10-16 13:33:18 -0500751# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000752CPU_FLAG_LIST += ERRATA_X2_2058056
753
754# Flag to apply erratum 2083908 workaround during reset. This erratum applies
755# to revision r2p0 of the Cortex-X2 cpu and is still open.
756CPU_FLAG_LIST += ERRATA_X2_2083908
757
758# Flag to apply erratum 2017096 workaround during reset. This erratum applies
759# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
760# r2p1.
761CPU_FLAG_LIST += ERRATA_X2_2017096
762
763# Flag to apply erratum 2081180 workaround during reset. This erratum applies
764# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
765# r2p1.
766CPU_FLAG_LIST += ERRATA_X2_2081180
767
768# Flag to apply erratum 2216384 workaround during reset. This erratum applies
769# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
770# r2p1.
771CPU_FLAG_LIST += ERRATA_X2_2216384
772
773# Flag to apply erratum 2147715 workaround during reset. This erratum applies
774# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
775CPU_FLAG_LIST += ERRATA_X2_2147715
776
777# Flag to apply erratum 2282622 workaround during reset. This erratum applies
778# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
779# open.
780CPU_FLAG_LIST += ERRATA_X2_2282622
781
782# Flag to apply erratum 2371105 workaround during reset. This erratum applies
783# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
784CPU_FLAG_LIST += ERRATA_X2_2371105
785
Sona Mathewab062f02023-03-14 16:50:36 -0500786# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
787# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
788# and is still open.
789CPU_FLAG_LIST += ERRATA_X2_2701952
790
Bipin Ravife06e112023-10-17 09:11:19 -0500791# Flag to apply erratum 2742423 workaround during reset. This erratum applies
792# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
793CPU_FLAG_LIST += ERRATA_X2_2742423
794
Boyan Karatoteve4447632022-11-17 12:01:29 +0000795# Flag to apply erratum 2768515 workaround during power down. This erratum
796# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
797# still open.
798CPU_FLAG_LIST += ERRATA_X2_2768515
799
Sona Mathewb01a93d2023-12-09 13:09:30 -0600800# Flag to apply erratum 2778471 workaround during reset. This erratum applies
801# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
802CPU_FLAG_LIST += ERRATA_X2_2778471
803
Govindraj Rajaae6c7c92025-01-21 18:02:51 -0600804# Flag to apply erratum 3701772 workaround during context save/restore of
805# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0 and r2p1
806# of the Cortex-X2 cpu and is still open.
807CPU_FLAG_LIST += ERRATA_X2_3701772
808
Sona Mathew24543162023-10-03 17:09:09 -0500809# Flag to apply erratum 2070301 workaround on reset. This erratum applies
810# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
811# still open.
812CPU_FLAG_LIST += ERRATA_X3_2070301
813
Bipin Ravia65c5ba2023-12-20 14:53:37 -0600814# Flag to apply erratum 2266875 workaround during reset. This erratum applies
815# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
816CPU_FLAG_LIST += ERRATA_X3_2266875
817
Bipin Ravi3f9df2c2023-12-20 14:32:02 -0600818# Flag to apply erratum 2302506 workaround during reset. This erratum applies
819# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
820CPU_FLAG_LIST += ERRATA_X3_2302506
821
Boyan Karatoteve4447632022-11-17 12:01:29 +0000822# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
823# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
824CPU_FLAG_LIST += ERRATA_X3_2313909
825
Bipin Ravi7f69a402024-02-27 15:13:17 -0600826# Flag to apply erratum 2372204 workaround during reset. This erratum applies
827# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
828CPU_FLAG_LIST += ERRATA_X3_2372204
829
Boyan Karatoteve4447632022-11-17 12:01:29 +0000830# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
Sona Mathewf589a2a2024-03-15 11:07:33 -0500831# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000832CPU_FLAG_LIST += ERRATA_X3_2615812
833
Bipin Ravic1aa3fa2024-01-25 15:38:46 -0600834# Flag to apply erratum 2641945 workaround on reset. This erratum applies
835# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
836CPU_FLAG_LIST += ERRATA_X3_2641945
837
Sona Mathew106c4282024-02-21 15:07:30 -0600838# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
839# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
840CPU_FLAG_LIST += ERRATA_X3_2701951
841
Sona Mathew5b0e4432023-09-05 14:10:03 -0500842# Flag to apply erratum 2742421 workaround on reset. This erratum applies
843# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
844CPU_FLAG_LIST += ERRATA_X3_2742421
845
Harrison Mutaif43e9f52023-12-12 11:17:19 +0000846# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
847# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
848CPU_FLAG_LIST += ERRATA_X3_2743088
849
Govindraj Raja77feb742025-01-21 18:12:35 -0600850# Flag to apply erratum 3701769 workaround during context save/restore of
851# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p1 and r1p2
852# of the Cortex-X3 cpu and is still open.
853CPU_FLAG_LIST += ERRATA_X3_3701769
854
Sona Mathew355ce0a2023-11-06 13:48:22 -0600855# Flag to apply erratum 2779509 workaround on reset. This erratum applies
856# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
857CPU_FLAG_LIST += ERRATA_X3_2779509
858
Sona Mathewcc41b562024-03-01 13:36:21 -0600859# Flag to apply erratum 2701112 workaround for platforms that do not use an
860# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
861# cpu and is fixed in r0p1.
862CPU_FLAG_LIST += ERRATA_X4_2701112
863
Arvind Ram Prakash4a97ff52024-08-05 16:04:37 -0500864# Flag to apply erratum 2726228 workaround during warmboot. This erratum
865# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
866CPU_FLAG_LIST += ERRATA_X4_2726228
867
Bipin Ravic833ca62024-04-10 15:33:21 -0500868# Flag to apply erratum 2740089 workaround during powerdown. This erratum
869# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
870CPU_FLAG_LIST += ERRATA_X4_2740089
871
Sona Mathew47312112024-04-05 16:27:07 -0500872# Flag to apply erratum 2763018 workaround on reset. This erratum applies
873# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
874CPU_FLAG_LIST += ERRATA_X4_2763018
875
Sona Mathew1e4480b2024-07-16 14:34:42 -0500876# Flag to apply erratum 2816013 workaround on reset. This erratum applies
877# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
878CPU_FLAG_LIST += ERRATA_X4_2816013
879
Arvind Ram Prakash609d08a2024-08-26 17:04:27 -0500880# Flag to apply erratum 2897503 workaround on reset. This erratum applies
881# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
882CPU_FLAG_LIST += ERRATA_X4_2897503
883
Arvind Ram Prakashcc461662024-11-27 15:02:32 -0600884# Flag to apply erratum 2923985 workaround on reset. This erratum applies
885# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
886CPU_FLAG_LIST += ERRATA_X4_2923985
887
Ryan Everettdb7eb682024-05-21 11:56:37 +0100888# Flag to apply erratum 3076789 workaround on reset. This erratum applies
889# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
890CPU_FLAG_LIST += ERRATA_X4_3076789
891
Govindraj Raja38401c52025-01-21 18:24:57 -0600892# Flag to apply erratum 3701758 workaround during context save/restore of
893# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
894# of the Cortex-X4 cpu and is still open.
895CPU_FLAG_LIST += ERRATA_X4_3701758
896
Govindraj Raja511148e2025-01-21 18:38:56 -0600897# Flag to apply erratum 3701747 workaround during context save/restore of
898# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of the
899# Cortex-X925 cpu and is still open.
900CPU_FLAG_LIST += ERRATA_X925_3701747
901
Boyan Karatoteve4447632022-11-17 12:01:29 +0000902# Flag to apply erratum 1922240 workaround during reset. This erratum applies
903# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
904CPU_FLAG_LIST += ERRATA_A510_1922240
905
906# Flag to apply erratum 2288014 workaround during reset. This erratum applies
907# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
908# fixed in r1p1.
909CPU_FLAG_LIST += ERRATA_A510_2288014
910
911# Flag to apply erratum 2042739 workaround during reset. This erratum applies
912# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
913CPU_FLAG_LIST += ERRATA_A510_2042739
914
915# Flag to apply erratum 2041909 workaround during reset. This erratum applies
916# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
917# present in r0p0 and r0p1 but there is no workaround for those revisions.
918CPU_FLAG_LIST += ERRATA_A510_2041909
919
Sona Mathew6e864752023-10-12 12:04:53 -0500920# Flag to aply erratum 2080326 workaround during reset. This erratum applies
921# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
922# also present in r0p0 and r0p1 but there is no workaround for those revisions.
923CPU_FLAG_LIST += ERRATA_A510_2080326
924
Boyan Karatoteve4447632022-11-17 12:01:29 +0000925# Flag to apply erratum 2250311 workaround during reset. This erratum applies
926# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
927CPU_FLAG_LIST += ERRATA_A510_2250311
928
929# Flag to apply erratum 2218950 workaround during reset. This erratum applies
930# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
931CPU_FLAG_LIST += ERRATA_A510_2218950
932
933# Flag to apply erratum 2172148 workaround during reset. This erratum applies
934# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
935CPU_FLAG_LIST += ERRATA_A510_2172148
936
937# Flag to apply erratum 2347730 workaround during reset. This erratum applies
938# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
939# and is fixed in r1p2.
940CPU_FLAG_LIST += ERRATA_A510_2347730
941
942# Flag to apply erratum 2371937 workaround during reset. This erratum applies
943# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
944CPU_FLAG_LIST += ERRATA_A510_2371937
945
946# Flag to apply erratum 2666669 workaround during reset. This erratum applies
947# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
948CPU_FLAG_LIST += ERRATA_A510_2666669
949
950# Flag to apply erratum 2684597 workaround during powerdown. This erratum
951# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
952# Cortex-A510 cpu and is fixed in r1p3.
953CPU_FLAG_LIST += ERRATA_A510_2684597
954
Sona Mathewf03bfc32023-12-09 20:44:56 -0600955# Flag to apply erratum 2630792 workaround during reset. This erratum applies
956# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
957CPU_FLAG_LIST += ERRATA_A520_2630792
958
Arvind Ram Prakash34db3532023-12-08 20:19:58 -0600959# Flag to apply erratum 2858100 workaround during reset. This erratum
960# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
961CPU_FLAG_LIST += ERRATA_A520_2858100
962
Arvind Ram Prakash4a97ff52024-08-05 16:04:37 -0500963# Flag to apply erratum 2938996 workaround during reset. This erratum
964# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is fixed in r0p2.
965CPU_FLAG_LIST += ERRATA_A520_2938996
966
Bipin Ravi8852fb52023-09-18 16:34:13 -0500967# Flag to apply erratum 2331132 workaround during reset. This erratum applies
968# to revisions r0p0, r0p1 and r0p2. It is still open.
969CPU_FLAG_LIST += ERRATA_V2_2331132
970
Bipin Ravic0f8ce52023-10-17 19:42:15 -0500971# Flag to apply erratum 2618597 workaround during reset. This erratum applies
972# to revisions r0p0 and r0p1. It is fixed in r0p2.
973CPU_FLAG_LIST += ERRATA_V2_2618597
974
Bipin Ravi912c4092023-10-17 18:35:55 -0500975# Flag to apply erratum 2662553 workaround during reset. This erratum applies
976# to revisions r0p0 and r0p1. It is fixed in r0p2.
977CPU_FLAG_LIST += ERRATA_V2_2662553
978
Sona Mathewab062f02023-03-14 16:50:36 -0500979# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
980# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
981CPU_FLAG_LIST += ERRATA_V2_2719103
982
Bipin Ravib0114022023-09-18 17:27:29 -0500983# Flag to apply erratum 2719105 workaround during reset. This erratum applies
984# to revisions r0p0 and r0p1. It is fixed in r0p2.
985CPU_FLAG_LIST += ERRATA_V2_2719105
986
Bipin Ravi58dd1532023-09-18 19:54:41 -0500987# Flag to apply erratum 2743011 workaround during reset. This erratum applies
988# to revisions r0p0 and r0p1. It is fixed in r0p2.
989CPU_FLAG_LIST += ERRATA_V2_2743011
990
Bipin Raviff342642023-09-18 19:28:32 -0500991# Flag to apply erratum 2779510 workaround during reset. This erratum applies
992# to revisions r0p0 and r0p1. It is fixed in r0p2.
993CPU_FLAG_LIST += ERRATA_V2_2779510
994
Moritz Fischer40c81ed2023-07-06 00:01:23 +0000995# Flag to apply erratum 2801372 workaround for all configurations.
996# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
997CPU_FLAG_LIST += ERRATA_V2_2801372
998
Bipin Ravi53b3cd22024-02-27 17:49:12 -0600999# Flag to apply erratum 2331818 workaround during reset. This erratum applies
1000# to revisions r0p0 and r1p0. It is fixed in r1p1.
1001CPU_FLAG_LIST += ERRATA_A715_2331818
1002
Harrison Mutai33c665a2024-01-02 16:55:44 +00001003# Flag to apply erratum 2344187 workaround during reset. This erratum applies
1004# to revisions r0p0, and r1p0. It is fixed in r1p1.
1005CPU_FLAG_LIST += ERRATA_A715_2344187
1006
Sona Mathew15a04612024-02-20 16:59:45 -06001007# Flag to apply erratum 2413290 workaround during reset. This erratum applies
1008# only to revision r1p0. It is fixed in r1p1.
1009CPU_FLAG_LIST += ERRATA_A715_2413290
1010
Bipin Ravi1f732472024-02-27 17:34:05 -06001011# Flag to apply erratum 2420947 workaround during reset. This erratum applies
1012# only to revision r1p0. It is fixed in r1p1.
1013CPU_FLAG_LIST += ERRATA_A715_2420947
1014
Bipin Ravi262dc9f2024-02-27 17:14:22 -06001015# Flag to apply erratum 2429384 workaround during reset. This erratum applies
1016# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
1017CPU_FLAG_LIST += ERRATA_A715_2429384
1018
Bipin Ravi6a6b2822024-01-25 16:18:20 -06001019# Flag to apply erratum 2561034 workaround during reset. This erratum applies
1020# only to revision r1p0. It is fixed in r1p1.
1021CPU_FLAG_LIST += ERRATA_A715_2561034
1022
Bipin Ravi10134e32024-04-10 15:06:11 -05001023# Flag to apply erratum 2728106 workaround during reset. This erratum applies
1024# only to revision r0p0, r1p0 and r1p1. It is fixed in r1p2.
1025CPU_FLAG_LIST += ERRATA_A715_2728106
1026
Govindraj Raja26437af2025-01-21 17:00:11 -06001027# Flag to apply erratum 3699560 workaround during context save/restore of
1028# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p2, r1p3
1029# of the Cortex-A715 cpu and is still open.
1030CPU_FLAG_LIST += ERRATA_A715_3699560
1031
Arvind Ram Prakashb1bde252024-07-19 15:59:17 -05001032# Flag to apply erratum 2792132 workaround during reset. This erratum applies
1033# to revisions r0p0 and r0p1. It is fixed in r0p2.
1034CPU_FLAG_LIST += ERRATA_A720_2792132
1035
Sona Mathew12140902024-07-19 18:09:20 -05001036# Flag to apply erratum 2844092 workaround during reset. This erratum applies
1037# to revisions r0p0 and r0p1. It is fixed in r0p2.
1038CPU_FLAG_LIST += ERRATA_A720_2844092
1039
Bipin Ravi152f4cf2024-03-14 16:52:21 -05001040# Flag to apply erratum 2926083 workaround during reset. This erratum applies
1041# to revisions r0p0 and r0p1. It is fixed in r0p2.
1042CPU_FLAG_LIST += ERRATA_A720_2926083
1043
Bipin Ravi73852132024-03-12 10:29:16 -05001044# Flag to apply erratum 2940794 workaround during reset. This erratum applies
1045# to revisions r0p0 and r0p1. It is fixed in r0p2.
1046CPU_FLAG_LIST += ERRATA_A720_2940794
1047
Govindraj Raja050c4a32025-01-21 17:12:33 -06001048# Flag to apply erratum 3699561 workaround during context save/restore of
1049# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 of
1050# the Cortex-A720 cpu and is still open.
1051CPU_FLAG_LIST += ERRATA_A720_3699561
1052
Govindraj Rajaaf5ae9a2025-01-21 17:23:26 -06001053# Flag to apply erratum 3699562 workaround during context save/restore of
1054# ICH_VMCR_EL2 reg. This erratum applies to revision r0p0 the Cortex-A720-AE
1055# cpu and is still open.
1056CPU_FLAG_LIST += ERRATA_A720_AE_3699562
1057
Govindraj Rajad7323002025-01-21 17:44:17 -06001058# Flag to apply erratum 3699564 workaround during context save/restore of
1059# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of
1060# the Cortex-A725 cpu and is fixed in r0p2
1061CPU_FLAG_LIST += ERRATA_A725_3699564
1062
Boyan Karatoteve4447632022-11-17 12:01:29 +00001063# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
1064# Applying the workaround results in higher DSU power consumption on idle.
1065CPU_FLAG_LIST += ERRATA_DSU_798953
1066
1067# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
Govindraj Raja050c4a32025-01-21 17:12:33 -06001068# the ACP interface and revision < r0p0. Applying the workaround results in
Boyan Karatoteve4447632022-11-17 12:01:29 +00001069# higher DSU power consumption on idle.
1070CPU_FLAG_LIST += ERRATA_DSU_936184
1071
1072# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1073# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1074# results in higher DSU power consumption on idle.
1075CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001076
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001077ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001078 ifeq (${WORKAROUND_CVE_2018_3639},0)
1079 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1080 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001081endif
1082
Boyan Karatoteve4447632022-11-17 12:01:29 +00001083# process all flags
1084$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
1085$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1086$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001087
Douglas Raillarda94cc372017-06-19 15:38:02 +01001088# Errata build flags
1089ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001090TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001091endif
1092
1093ifneq (${ERRATA_A53_835769},0)
1094TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001095TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001096endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001097
1098ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1099 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1100ERRATA_SPECULATIVE_AT := 1
1101else
1102ERRATA_SPECULATIVE_AT := 0
1103endif