blob: 8465b4308a107c16604f9a156c8b5bbc8ab293ca [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Arvind Ram Prakashcc04eac2024-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 Karatoteve31060c2022-11-17 12:01:29 +00008include ${MAKE_HELPERS_DIRECTORY}$/build_macros.mk
9
Sona Mathew03d2ef82024-05-20 13:48:19 -050010# Flag to disable Hardware page aggregation(HPA).
11# This flag is enabled by default.
12WORKAROUND_CVE_2024_5660 ?=1
13CPU_FLAG_LIST += WORKAROUND_CVE_2024_5660
14
Soby Mathew5541bb32014-09-22 14:13:34 +010015# Cortex A57 specific optimisation to skip L1 cache flush when
16# cluster is powered down.
Boyan Karatoteve31060c2022-11-17 12:01:29 +000017CPU_FLAG_LIST += SKIP_A57_L1_FLUSH_PWR_DWN
Soby Mathew5541bb32014-09-22 14:13:34 +010018
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000019# Flag to disable the cache non-temporal hint.
20# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060021A53_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve31060c2022-11-17 12:01:29 +000022CPU_FLAG_LIST += A53_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000023
24# Flag to disable the cache non-temporal hint.
25# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060026A57_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve31060c2022-11-17 12:01:29 +000027CPU_FLAG_LIST += A57_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000028
Varun Wadekarcd0ea182018-06-12 16:49:12 -070029# Flag to enable higher performance non-cacheable load forwarding.
30# It is disabled by default.
Boyan Karatoteve31060c2022-11-17 12:01:29 +000031CPU_FLAG_LIST += A57_ENABLE_NONCACHEABLE_LOAD_FWD
Varun Wadekarcd0ea182018-06-12 16:49:12 -070032
johpow0183435632022-01-04 16:15:18 -060033WORKAROUND_CVE_2017_5715 ?=1
Boyan Karatoteve31060c2022-11-17 12:01:29 +000034CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715
johpow0183435632022-01-04 16:15:18 -060035WORKAROUND_CVE_2018_3639 ?=1
Boyan Karatoteve31060c2022-11-17 12:01:29 +000036CPU_FLAG_LIST += WORKAROUND_CVE_2018_3639
37CPU_FLAG_LIST += DYNAMIC_WORKAROUND_CVE_2018_3639
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060038WORKAROUND_CVE_2022_23960 ?=1
Boyan Karatoteve31060c2022-11-17 12:01:29 +000039CPU_FLAG_LIST += WORKAROUND_CVE_2022_23960
Arvind Ram Prakashcc04eac2024-09-06 11:35:56 -050040WORKAROUND_CVE_2024_7881 ?=1
41CPU_FLAG_LIST += WORKAROUND_CVE_2024_7881
Dimitris Papastamosf62ad322017-11-30 14:53:53 +000042
Javier Almansa Sobrino25bbbd22020-10-23 13:22:07 +010043# Flags to indicate internal or external Last level cache
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000044# By default internal
Boyan Karatoteve31060c2022-11-17 12:01:29 +000045CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000046
Boyan Karatoteve31060c2022-11-17 12:01:29 +000047# CPU Errata Build flags.
48# These should be enabled by the platform if the erratum workaround needs to be
49# applied.
Varun Wadekarcd0ea182018-06-12 16:49:12 -070050
Boyan Karatoteve31060c2022-11-17 12:01:29 +000051# Flag to apply erratum 794073 workaround when disabling mmu.
52CPU_FLAG_LIST += ERRATA_A9_794073
Soby Mathew5541bb32014-09-22 14:13:34 +010053
Boyan Karatoteve31060c2022-11-17 12:01:29 +000054# Flag to apply erratum 816470 workaround during power down. This erratum
55# applies only to revision >= r3p0 of the Cortex A15 cpu.
56CPU_FLAG_LIST += ERRATA_A15_816470
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000057
Boyan Karatoteve31060c2022-11-17 12:01:29 +000058# Flag to apply erratum 827671 workaround during reset. This erratum applies
59# only to revision >= r3p0 of the Cortex A15 cpu.
60CPU_FLAG_LIST += ERRATA_A15_827671
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000061
Boyan Karatoteve31060c2022-11-17 12:01:29 +000062# Flag to apply erratum 852421 workaround during reset. This erratum applies
63# only to revision <= r1p2 of the Cortex A17 cpu.
64CPU_FLAG_LIST += ERRATA_A17_852421
Soby Mathew5541bb32014-09-22 14:13:34 +010065
Boyan Karatoteve31060c2022-11-17 12:01:29 +000066# Flag to apply erratum 852423 workaround during reset. This erratum applies
67# only to revision <= r1p2 of the Cortex A17 cpu.
68CPU_FLAG_LIST += ERRATA_A17_852423
Dimitris Papastamosb8a25bb2018-04-05 14:38:26 +010069
Boyan Karatoteve31060c2022-11-17 12:01:29 +000070# Flag to apply erratum 855472 workaround during reset. This erratum applies
71# only to revision r0p0 of the Cortex A35 cpu.
72CPU_FLAG_LIST += ERRATA_A35_855472
Dimitris Papastamosfe007b22018-05-16 11:36:14 +010073
Boyan Karatoteve31060c2022-11-17 12:01:29 +000074# Flag to apply erratum 819472 workaround during reset. This erratum applies
75# only to revision <= r0p1 of the Cortex A53 cpu.
76CPU_FLAG_LIST += ERRATA_A53_819472
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060077
Boyan Karatoteve31060c2022-11-17 12:01:29 +000078# Flag to apply erratum 824069 workaround during reset. This erratum applies
79# only to revision <= r0p2 of the Cortex A53 cpu.
80CPU_FLAG_LIST += ERRATA_A53_824069
81
82# Flag to apply erratum 826319 workaround during reset. This erratum applies
83# only to revision <= r0p2 of the Cortex A53 cpu.
84CPU_FLAG_LIST += ERRATA_A53_826319
85
86# Flag to apply erratum 827319 workaround during reset. This erratum applies
87# only to revision <= r0p2 of the Cortex A53 cpu.
88CPU_FLAG_LIST += ERRATA_A53_827319
89
90# Flag to apply erratum 835769 workaround at compile and link time. This
91# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
92# workaround can lead the linker to create "*.stub" sections.
93CPU_FLAG_LIST += ERRATA_A53_835769
94
95# Flag to apply erratum 836870 workaround during reset. This erratum applies
96# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this
97# erratum workaround is enabled by default in hardware.
98CPU_FLAG_LIST += ERRATA_A53_836870
99
100# Flag to apply erratum 843419 workaround at link time.
101# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this
102# workaround could lead the linker to emit "*.stub" sections which are 4kB
103# aligned.
104CPU_FLAG_LIST += ERRATA_A53_843419
105
106# Flag to apply errata 855873 during reset. This errata applies to all
107# revisions of the Cortex A53 CPU, but this firmware workaround only works
108# for revisions r0p3 and higher. Earlier revisions are taken care
109# of by the rich OS.
110CPU_FLAG_LIST += ERRATA_A53_855873
111
112# Flag to apply erratum 1530924 workaround during reset. This erratum applies
113# to all revisions of Cortex A53 cpu.
114CPU_FLAG_LIST += ERRATA_A53_1530924
115
116# Flag to apply erratum 768277 workaround during reset. This erratum applies
117# only to revision r0p0 of the Cortex A55 cpu.
118CPU_FLAG_LIST += ERRATA_A55_768277
119
120# Flag to apply erratum 778703 workaround during reset. This erratum applies
121# only to revision r0p0 of the Cortex A55 cpu.
122CPU_FLAG_LIST += ERRATA_A55_778703
123
124# Flag to apply erratum 798797 workaround during reset. This erratum applies
125# only to revision r0p0 of the Cortex A55 cpu.
126CPU_FLAG_LIST += ERRATA_A55_798797
127
128# Flag to apply erratum 846532 workaround during reset. This erratum applies
129# only to revision <= r0p1 of the Cortex A55 cpu.
130CPU_FLAG_LIST += ERRATA_A55_846532
131
132# Flag to apply erratum 903758 workaround during reset. This erratum applies
133# only to revision <= r0p1 of the Cortex A55 cpu.
134CPU_FLAG_LIST += ERRATA_A55_903758
135
136# Flag to apply erratum 1221012 workaround during reset. This erratum applies
137# only to revision <= r1p0 of the Cortex A55 cpu.
138CPU_FLAG_LIST += ERRATA_A55_1221012
139
140# Flag to apply erratum 1530923 workaround during reset. This erratum applies
141# to all revisions of Cortex A55 cpu.
142CPU_FLAG_LIST += ERRATA_A55_1530923
143
144# Flag to apply erratum 806969 workaround during reset. This erratum applies
145# only to revision r0p0 of the Cortex A57 cpu.
146CPU_FLAG_LIST += ERRATA_A57_806969
147
148# Flag to apply erratum 813419 workaround during reset. This erratum applies
149# only to revision r0p0 of the Cortex A57 cpu.
150CPU_FLAG_LIST += ERRATA_A57_813419
151
152# Flag to apply erratum 813420 workaround during reset. This erratum applies
153# only to revision r0p0 of the Cortex A57 cpu.
154CPU_FLAG_LIST += ERRATA_A57_813420
155
156# Flag to apply erratum 814670 workaround during reset. This erratum applies
157# only to revision r0p0 of the Cortex A57 cpu.
158CPU_FLAG_LIST += ERRATA_A57_814670
159
160# Flag to apply erratum 817169 workaround during power down. This erratum
161# applies only to revision <= r0p1 of the Cortex A57 cpu.
162CPU_FLAG_LIST += ERRATA_A57_817169
163
164# Flag to apply erratum 826974 workaround during reset. This erratum applies
165# only to revision <= r1p1 of the Cortex A57 cpu.
166CPU_FLAG_LIST += ERRATA_A57_826974
167
168# Flag to apply erratum 826977 workaround during reset. This erratum applies
169# only to revision <= r1p1 of the Cortex A57 cpu.
170CPU_FLAG_LIST += ERRATA_A57_826977
171
172# Flag to apply erratum 828024 workaround during reset. This erratum applies
173# only to revision <= r1p1 of the Cortex A57 cpu.
174CPU_FLAG_LIST += ERRATA_A57_828024
175
176# Flag to apply erratum 829520 workaround during reset. This erratum applies
177# only to revision <= r1p2 of the Cortex A57 cpu.
178CPU_FLAG_LIST += ERRATA_A57_829520
179
180# Flag to apply erratum 833471 workaround during reset. This erratum applies
181# only to revision <= r1p2 of the Cortex A57 cpu.
182CPU_FLAG_LIST += ERRATA_A57_833471
183
184# Flag to apply erratum 855972 workaround during reset. This erratum applies
185# only to revision <= r1p3 of the Cortex A57 cpu.
186CPU_FLAG_LIST += ERRATA_A57_859972
187
188# Flag to apply erratum 1319537 workaround during reset. This erratum applies
189# to all revisions of Cortex A57 cpu.
190CPU_FLAG_LIST += ERRATA_A57_1319537
191
192# Flag to apply erratum 855971 workaround during reset. This erratum applies
193# only to revision <= r0p3 of the Cortex A72 cpu.
194CPU_FLAG_LIST += ERRATA_A72_859971
195
196# Flag to apply erratum 1319367 workaround during reset. This erratum applies
197# to all revisions of Cortex A72 cpu.
198CPU_FLAG_LIST += ERRATA_A72_1319367
199
200# Flag to apply erratum 852427 workaround during reset. This erratum applies
201# only to revision r0p0 of the Cortex A73 cpu.
202CPU_FLAG_LIST += ERRATA_A73_852427
203
204# Flag to apply erratum 855423 workaround during reset. This erratum applies
205# only to revision <= r0p1 of the Cortex A73 cpu.
206CPU_FLAG_LIST += ERRATA_A73_855423
207
208# Flag to apply erratum 764081 workaround during reset. This erratum applies
209# only to revision <= r0p0 of the Cortex A75 cpu.
210CPU_FLAG_LIST += ERRATA_A75_764081
211
212# Flag to apply erratum 790748 workaround during reset. This erratum applies
213# only to revision <= r0p0 of the Cortex A75 cpu.
214CPU_FLAG_LIST += ERRATA_A75_790748
215
216# Flag to apply erratum 1073348 workaround during reset. This erratum applies
217# only to revision <= r1p0 of the Cortex A76 cpu.
218CPU_FLAG_LIST += ERRATA_A76_1073348
219
220# Flag to apply erratum 1130799 workaround during reset. This erratum applies
221# only to revision <= r2p0 of the Cortex A76 cpu.
222CPU_FLAG_LIST += ERRATA_A76_1130799
223
224# Flag to apply erratum 1220197 workaround during reset. This erratum applies
225# only to revision <= r2p0 of the Cortex A76 cpu.
226CPU_FLAG_LIST += ERRATA_A76_1220197
227
228# Flag to apply erratum 1257314 workaround during reset. This erratum applies
229# only to revision <= r3p0 of the Cortex A76 cpu.
230CPU_FLAG_LIST += ERRATA_A76_1257314
231
232# Flag to apply erratum 1262606 workaround during reset. This erratum applies
233# only to revision <= r3p0 of the Cortex A76 cpu.
234CPU_FLAG_LIST += ERRATA_A76_1262606
235
236# Flag to apply erratum 1262888 workaround during reset. This erratum applies
237# only to revision <= r3p0 of the Cortex A76 cpu.
238CPU_FLAG_LIST += ERRATA_A76_1262888
239
240# Flag to apply erratum 1275112 workaround during reset. This erratum applies
241# only to revision <= r3p0 of the Cortex A76 cpu.
242CPU_FLAG_LIST += ERRATA_A76_1275112
243
244# Flag to apply erratum 1286807 workaround during reset. This erratum applies
245# only to revision <= r3p0 of the Cortex A76 cpu.
246CPU_FLAG_LIST += ERRATA_A76_1286807
247
248# Flag to apply erratum 1791580 workaround during reset. This erratum applies
249# only to revision <= r4p0 of the Cortex A76 cpu.
250CPU_FLAG_LIST += ERRATA_A76_1791580
251
252# Flag to apply erratum 1165522 workaround during reset. This erratum applies
253# to all revisions of Cortex A76 cpu.
254CPU_FLAG_LIST += ERRATA_A76_1165522
255
256# Flag to apply erratum 1868343 workaround during reset. This erratum applies
257# only to revision <= r4p0 of the Cortex A76 cpu.
258CPU_FLAG_LIST += ERRATA_A76_1868343
259
260# Flag to apply erratum 1946160 workaround during reset. This erratum applies
261# only to revisions r3p0 - r4p1 of the Cortex A76 cpu.
262CPU_FLAG_LIST += ERRATA_A76_1946160
263
264# Flag to apply erratum 2743102 workaround during powerdown. This erratum
265# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open.
266CPU_FLAG_LIST += ERRATA_A76_2743102
267
268# Flag to apply erratum 1508412 workaround during reset. This erratum applies
269# only to revision <= r1p0 of the Cortex A77 cpu.
270CPU_FLAG_LIST += ERRATA_A77_1508412
271
272# Flag to apply erratum 1925769 workaround during reset. This erratum applies
273# only to revision <= r1p1 of the Cortex A77 cpu.
274CPU_FLAG_LIST += ERRATA_A77_1925769
275
276# Flag to apply erratum 1946167 workaround during reset. This erratum applies
277# only to revision <= r1p1 of the Cortex A77 cpu.
278CPU_FLAG_LIST += ERRATA_A77_1946167
279
280# Flag to apply erratum 1791578 workaround during reset. This erratum applies
281# to revisions r0p0, r1p0, and r1p1, it is still open.
282CPU_FLAG_LIST += ERRATA_A77_1791578
283
284# Flag to apply erratum 2356587 workaround during reset. This erratum applies
285# to revisions r0p0, r1p0, and r1p1, it is still open.
286CPU_FLAG_LIST += ERRATA_A77_2356587
287
288# Flag to apply erratum 1800714 workaround during reset. This erratum applies
289# to revisions <= r1p1 of the Cortex A77 cpu.
290CPU_FLAG_LIST += ERRATA_A77_1800714
291
292# Flag to apply erratum 2743100 workaround during power down. This erratum
293# applies to revisions r0p0, r1p0, and r1p1, it is still open.
294CPU_FLAG_LIST += ERRATA_A77_2743100
295
296# Flag to apply erratum 1688305 workaround during reset. This erratum applies
297# to revisions r0p0 - r1p0 of the A78 cpu.
298CPU_FLAG_LIST += ERRATA_A78_1688305
299
300# Flag to apply erratum 1941498 workaround during reset. This erratum applies
301# to revisions r0p0, r1p0, and r1p1 of the A78 cpu.
302CPU_FLAG_LIST += ERRATA_A78_1941498
303
304# Flag to apply erratum 1951500 workaround during reset. This erratum applies
305# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as
306# well but there is no workaround for that revision.
307CPU_FLAG_LIST += ERRATA_A78_1951500
308
309# Flag to apply erratum 1821534 workaround during reset. This erratum applies
310# to revisions r0p0 and r1p0 of the A78 cpu.
311CPU_FLAG_LIST += ERRATA_A78_1821534
312
313# Flag to apply erratum 1952683 workaround during reset. This erratum applies
314# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0.
315CPU_FLAG_LIST += ERRATA_A78_1952683
316
317# Flag to apply erratum 2132060 workaround during reset. This erratum applies
318# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
319CPU_FLAG_LIST += ERRATA_A78_2132060
320
321# Flag to apply erratum 2242635 workaround during reset. This erratum applies
322# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is
323# present in r0p0 as well but there is no workaround for that revision.
324CPU_FLAG_LIST += ERRATA_A78_2242635
325
326# Flag to apply erratum 2376745 workaround during reset. This erratum applies
327# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
328CPU_FLAG_LIST += ERRATA_A78_2376745
329
330# Flag to apply erratum 2395406 workaround during reset. This erratum applies
331# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open.
332CPU_FLAG_LIST += ERRATA_A78_2395406
333
Sona Mathewf718c872023-03-14 16:50:36 -0500334# Flag to apply erratum 2712571 workaround for non-arm interconnect ip. This
335# erratum applies to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu.
336# It is fixed in r1p2.
337CPU_FLAG_LIST += ERRATA_A78_2712571
338
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000339# Flag to apply erratum 2742426 workaround during reset. This erratum
340# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
341# open.
342CPU_FLAG_LIST += ERRATA_A78_2742426
343
344# Flag to apply erratum 2772019 workaround during powerdown. This erratum
345# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still
346# open.
347CPU_FLAG_LIST += ERRATA_A78_2772019
348
349# Flag to apply erratum 2779479 workaround during reset. This erratum applies
350# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open.
351CPU_FLAG_LIST += ERRATA_A78_2779479
352
353# Flag to apply erratum 1941500 workaround during reset. This erratum applies
354# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
355CPU_FLAG_LIST += ERRATA_A78_AE_1941500
356
357# Flag to apply erratum 1951502 workaround during reset. This erratum applies
358# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
359CPU_FLAG_LIST += ERRATA_A78_AE_1951502
360
361# Flag to apply erratum 2376748 workaround during reset. This erratum applies
Sona Mathew589ee7e2023-10-10 16:48:57 -0500362# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000363CPU_FLAG_LIST += ERRATA_A78_AE_2376748
364
365# Flag to apply erratum 2395408 workaround during reset. This erratum applies
366# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open.
367CPU_FLAG_LIST += ERRATA_A78_AE_2395408
368
Bipin Ravi14bb7562023-03-14 10:04:23 -0500369# Flag to apply erratum 1827430 workaround during reset. This erratum applies
370# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
371CPU_FLAG_LIST += ERRATA_A78C_1827430
372
Bipin Ravi330095f2023-03-14 11:03:24 -0500373# Flag to apply erratum 1827440 workaround during reset. This erratum applies
374# to revision r0p0 of the A78C cpu. It is fixed in r0p1.
375CPU_FLAG_LIST += ERRATA_A78C_1827440
376
Sona Mathewf718c872023-03-14 16:50:36 -0500377# Flag to apply erratum 2712574 workaround for non-arm interconnect ip. This
378# erratum applies to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu.
379# It is still open.
380CPU_FLAG_LIST += ERRATA_A78_AE_2712574
381
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000382# Flag to apply erratum 2132064 workaround during reset. This erratum applies
383# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
384CPU_FLAG_LIST += ERRATA_A78C_2132064
385
386# Flag to apply erratum 2242638 workaround during reset. This erratum applies
387# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
388CPU_FLAG_LIST += ERRATA_A78C_2242638
389
390# Flag to apply erratum 2376749 workaround during reset. This erratum applies
391# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
392CPU_FLAG_LIST += ERRATA_A78C_2376749
393
394# Flag to apply erratum 2395411 workaround during reset. This erratum applies
395# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
396CPU_FLAG_LIST += ERRATA_A78C_2395411
397
Bipin Ravi560f1402023-12-20 15:40:44 -0600398# Flag to apply erratum 2683027 workaround during reset. This erratum applies
399# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
400CPU_FLAG_LIST += ERRATA_A78C_2683027
401
Sona Mathewf718c872023-03-14 16:50:36 -0500402# Flag to apply erratum 2712575 workaround for non-arm interconnect ip. This
403# erratum applies to revisions r0p1 and r0p2 of the A78C cpu.
404# It is still open.
405CPU_FLAG_LIST += ERRATA_A78C_2712575
406
Sona Mathew9cdc77a2023-11-14 14:00:48 -0600407# Flag to apply erratum 2743232 workaround during reset. This erratum applies
408# to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
409CPU_FLAG_LIST += ERRATA_A78C_2743232
410
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000411# Flag to apply erratum 2772121 workaround during powerdown. This erratum
412# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open.
413CPU_FLAG_LIST += ERRATA_A78C_2772121
414
415# Flag to apply erratum 2779484 workaround during reset. This erratum
416# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open.
417CPU_FLAG_LIST += ERRATA_A78C_2779484
418
419# Flag to apply erratum 1821534 workaround during reset. This erratum applies
420# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
421CPU_FLAG_LIST += ERRATA_X1_1821534
422
423# Flag to apply erratum 1688305 workaround during reset. This erratum applies
424# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
425CPU_FLAG_LIST += ERRATA_X1_1688305
426
427# Flag to apply erratum 1827429 workaround during reset. This erratum applies
428# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1.
429CPU_FLAG_LIST += ERRATA_X1_1827429
430
431# Flag to apply T32 CLREX workaround during reset. This erratum applies
432# only to r0p0 and r1p0 of the Neoverse N1 cpu.
433CPU_FLAG_LIST += ERRATA_N1_1043202
434
435# Flag to apply erratum 1073348 workaround during reset. This erratum applies
436# only to revision r0p0 and r1p0 of the Neoverse N1 cpu.
437CPU_FLAG_LIST += ERRATA_N1_1073348
438
439# Flag to apply erratum 1130799 workaround during reset. This erratum applies
440# only to revision <= r2p0 of the Neoverse N1 cpu.
441CPU_FLAG_LIST += ERRATA_N1_1130799
442
443# Flag to apply erratum 1165347 workaround during reset. This erratum applies
444# only to revision <= r2p0 of the Neoverse N1 cpu.
445CPU_FLAG_LIST += ERRATA_N1_1165347
446
447# Flag to apply erratum 1207823 workaround during reset. This erratum applies
448# only to revision <= r2p0 of the Neoverse N1 cpu.
449CPU_FLAG_LIST += ERRATA_N1_1207823
450
451# Flag to apply erratum 1220197 workaround during reset. This erratum applies
452# only to revision <= r2p0 of the Neoverse N1 cpu.
453CPU_FLAG_LIST += ERRATA_N1_1220197
454
455# Flag to apply erratum 1257314 workaround during reset. This erratum applies
456# only to revision <= r3p0 of the Neoverse N1 cpu.
457CPU_FLAG_LIST += ERRATA_N1_1257314
458
459# Flag to apply erratum 1262606 workaround during reset. This erratum applies
460# only to revision <= r3p0 of the Neoverse N1 cpu.
461CPU_FLAG_LIST += ERRATA_N1_1262606
462
463# Flag to apply erratum 1262888 workaround during reset. This erratum applies
464# only to revision <= r3p0 of the Neoverse N1 cpu.
465CPU_FLAG_LIST += ERRATA_N1_1262888
466
467# Flag to apply erratum 1275112 workaround during reset. This erratum applies
468# only to revision <= r3p0 of the Neoverse N1 cpu.
469CPU_FLAG_LIST += ERRATA_N1_1275112
470
471# Flag to apply erratum 1315703 workaround during reset. This erratum applies
472# to revisions before r3p1 of the Neoverse N1 cpu.
473CPU_FLAG_LIST += ERRATA_N1_1315703
474
475# Flag to apply erratum 1542419 workaround during reset. This erratum applies
476# to revisions r3p0 - r4p0 of the Neoverse N1 cpu.
477CPU_FLAG_LIST += ERRATA_N1_1542419
478
479# Flag to apply erratum 1868343 workaround during reset. This erratum applies
480# to revision <= r4p0 of the Neoverse N1 cpu.
481CPU_FLAG_LIST += ERRATA_N1_1868343
482
483# Flag to apply erratum 1946160 workaround during reset. This erratum applies
484# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue
485# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround.
486CPU_FLAG_LIST += ERRATA_N1_1946160
487
488# Flag to apply erratum 2743102 workaround during powerdown. This erratum
489# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open.
490CPU_FLAG_LIST += ERRATA_N1_2743102
491
492# Flag to apply erratum 1618635 workaround during reset. This erratum applies
493# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0.
494CPU_FLAG_LIST += ERRATA_V1_1618635
495
496# Flag to apply erratum 1774420 workaround during reset. This erratum applies
497# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
498CPU_FLAG_LIST += ERRATA_V1_1774420
499
500# Flag to apply erratum 1791573 workaround during reset. This erratum applies
501# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
502CPU_FLAG_LIST += ERRATA_V1_1791573
503
504# Flag to apply erratum 1852267 workaround during reset. This erratum applies
505# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1.
506CPU_FLAG_LIST += ERRATA_V1_1852267
507
508# Flag to apply erratum 1925756 workaround during reset. This needs to be
509# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open.
510CPU_FLAG_LIST += ERRATA_V1_1925756
511
512# Flag to apply erratum 1940577 workaround during reset. This erratum applies
513# to revisions r1p0 and r1p1 of the Neoverse V1 cpu.
514CPU_FLAG_LIST += ERRATA_V1_1940577
515
516# Flag to apply erratum 1966096 workaround during reset. This erratum applies
517# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue
518# exists in r0p0 as well but there is no workaround for that revision.
519CPU_FLAG_LIST += ERRATA_V1_1966096
520
521# Flag to apply erratum 2139242 workaround during reset. This erratum applies
522# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
523CPU_FLAG_LIST += ERRATA_V1_2139242
524
525# Flag to apply erratum 2108267 workaround during reset. This erratum applies
526# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open.
527CPU_FLAG_LIST += ERRATA_V1_2108267
528
529# Flag to apply erratum 2216392 workaround during reset. This erratum applies
530# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This
531# issue exists in r0p0 as well but there is no workaround for that revision.
532CPU_FLAG_LIST += ERRATA_V1_2216392
533
534# Flag to apply erratum 2294912 workaround during reset. This erratum applies
Sona Mathew02bf8ca2023-10-16 15:12:30 -0500535# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000536CPU_FLAG_LIST += ERRATA_V1_2294912
537
Sona Mathew67fa0852023-11-07 13:46:15 -0600538# Flag to apply erratum 2348377 workaround during reset. This erratum applies
539# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is fixed in r1p2.
540CPU_FLAG_LIST += ERRATA_V1_2348377
541
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000542# Flag to apply erratum 2372203 workaround during reset. This erratum applies
543# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open.
544CPU_FLAG_LIST += ERRATA_V1_2372203
545
Sona Mathewf718c872023-03-14 16:50:36 -0500546# Flag to apply erratum 2701953 workaround to non-arm interconnect ip. This
547# erratum applies to revisions r0p0, r1p0, r1p1 of the Neoverse V1 cpu,
548# it is fixed in r1p2.
549CPU_FLAG_LIST += ERRATA_V1_2701953
550
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000551# Flag to apply erratum 2743093 workaround during powerdown. This erratum
552# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
553# still open.
554CPU_FLAG_LIST += ERRATA_V1_2743093
555
556# Flag to apply erratum 2743233 workaround during powerdown. This erratum
557# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
558# still open.
559CPU_FLAG_LIST += ERRATA_V1_2743233
560
561# Flag to apply erratum 2743233 workaround during powerdown. This erratum
562# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
563# still open.
564CPU_FLAG_LIST += ERRATA_V1_2743233
565
566# Flag to apply erratum 2779461 workaround during powerdown. This erratum
567# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is
568# still open.
569CPU_FLAG_LIST += ERRATA_V1_2779461
570
Govindraj Rajab4dd8f62025-02-07 14:31:39 -0600571# Flag to apply erratum 2970647 workaround during reset. This erratum applies
572# to revisions r0p0 of the Neoverse V3 cpu and is fixed in r0p1.
573CPU_FLAG_LIST += ERRATA_V3_2970647
574
Govindraj Raja35caff92025-01-21 19:20:29 -0600575# Flag to apply erratum 3701767 workaround during context save/restore of
576# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 and r0p2 of
577# the Neoverse V3 cpu and is still open.
578CPU_FLAG_LIST += ERRATA_V3_3701767
579
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000580# Flag to apply erratum 1987031 workaround during reset. This erratum applies
581# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
582CPU_FLAG_LIST += ERRATA_A710_1987031
583
584# Flag to apply erratum 2081180 workaround during reset. This erratum applies
585# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
586CPU_FLAG_LIST += ERRATA_A710_2081180
587
588# Flag to apply erratum 2083908 workaround during reset. This erratum applies
589# to revision r2p0 of the Cortex-A710 cpu and is still open.
590CPU_FLAG_LIST += ERRATA_A710_2083908
591
592# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew89e35792023-10-10 13:51:45 -0500593# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
594# open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000595CPU_FLAG_LIST += ERRATA_A710_2058056
596
597# Flag to apply erratum 2055002 workaround during reset. This erratum applies
598# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
599CPU_FLAG_LIST += ERRATA_A710_2055002
600
601# Flag to apply erratum 2017096 workaround during reset. This erratum applies
602# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
603CPU_FLAG_LIST += ERRATA_A710_2017096
604
605# Flag to apply erratum 2267065 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_2267065
608
609# Flag to apply erratum 2136059 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_2136059
612
613# Flag to apply erratum 2147715 workaround during reset. This erratum applies
614# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
615CPU_FLAG_LIST += ERRATA_A710_2147715
616
617# Flag to apply erratum 2216384 workaround during reset. This erratum applies
618# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
619CPU_FLAG_LIST += ERRATA_A710_2216384
620
621# Flag to apply erratum 2282622 workaround during reset. This erratum applies
622# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
623# open.
624CPU_FLAG_LIST += ERRATA_A710_2282622
625
626# Flag to apply erratum 2291219 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_2291219
629
630# Flag to apply erratum 2008768 workaround during reset. This erratum applies
631# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
632CPU_FLAG_LIST += ERRATA_A710_2008768
633
634# Flag to apply erratum 2371105 workaround during reset. This erratum applies
635# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
636CPU_FLAG_LIST += ERRATA_A710_2371105
637
Sona Mathewf718c872023-03-14 16:50:36 -0500638# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
639# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
640# and is still open.
641CPU_FLAG_LIST += ERRATA_A710_2701952
642
Bipin Ravid7c66992023-10-17 07:55:55 -0500643# Flag to apply erratum 2742423 workaround during reset. This erratum applies
644# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
645# open.
646CPU_FLAG_LIST += ERRATA_A710_2742423
647
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000648# Flag to apply erratum 2768515 workaround during power down. This erratum
649# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
650# still open.
651CPU_FLAG_LIST += ERRATA_A710_2768515
652
Sona Mathew0dec81e2023-12-08 20:52:17 -0600653# Flag to apply erratum 2778471 workaround during reset. This erratum applies
654# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
655# open.
656CPU_FLAG_LIST += ERRATA_A710_2778471
657
Govindraj Rajac32e3a32025-01-21 12:32:14 -0600658# Flag to apply erratum 3701772 workaround during context save/restore of
659# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0, r2p1
660# of the Cortex-A710 cpu and is still open.
661CPU_FLAG_LIST += ERRATA_A710_3701772
662
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000663# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500664# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000665CPU_FLAG_LIST += ERRATA_N2_2002655
666
Bipin Ravibe171bb2023-08-29 13:59:09 -0500667# Flag to apply erratum 2009478 workaround during powerdown. This erratum
668# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
669CPU_FLAG_LIST += ERRATA_N2_2009478
670
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000671# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500672# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000673CPU_FLAG_LIST += ERRATA_N2_2067956
674
675# Flag to apply erratum 2025414 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500676# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000677CPU_FLAG_LIST += ERRATA_N2_2025414
678
679# Flag to apply erratum 2189731 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500680# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000681CPU_FLAG_LIST += ERRATA_N2_2189731
682
683# Flag to apply erratum 2138956 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500684# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000685CPU_FLAG_LIST += ERRATA_N2_2138956
686
687# Flag to apply erratum 2138953 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500688# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000689CPU_FLAG_LIST += ERRATA_N2_2138953
690
691# Flag to apply erratum 2242415 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500692# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000693CPU_FLAG_LIST += ERRATA_N2_2242415
694
695# Flag to apply erratum 2138958 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500696# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000697CPU_FLAG_LIST += ERRATA_N2_2138958
698
699# Flag to apply erratum 2242400 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500700# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000701CPU_FLAG_LIST += ERRATA_N2_2242400
702
703# Flag to apply erratum 2280757 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500704# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000705CPU_FLAG_LIST += ERRATA_N2_2280757
706
Bipin Ravi9f7275a2023-10-17 06:21:15 -0500707# Flag to apply erratum 2326639 workaroud during powerdown. This erratum
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000708# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
709CPU_FLAG_LIST += ERRATA_N2_2326639
710
Bipin Ravi9f7275a2023-10-17 06:21:15 -0500711# Flag to apply erratum 2340933 workaroud during reset. This erratum
712# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
713CPU_FLAG_LIST += ERRATA_N2_2340933
714
Bipin Ravi26bb39d2023-10-17 05:56:01 -0500715# Flag to apply erratum 2346952 workaround during reset. This erratum applies
716# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
717CPU_FLAG_LIST += ERRATA_N2_2346952
718
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000719# Flag to apply erratum 2376738 workaround during reset. This erratum applies
Arvind Ram Prakash9d6d1332023-06-29 16:17:23 -0500720# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000721CPU_FLAG_LIST += ERRATA_N2_2376738
722
723# Flag to apply erratum 2388450 workaround during reset. This erratum applies
724# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
725CPU_FLAG_LIST += ERRATA_N2_2388450
726
Sona Mathewf718c872023-03-14 16:50:36 -0500727# Flag to apply erratum 2728475 workaround for non-arm interconnect ip. This
728# erratum applies to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in
729# r0p3.
730CPU_FLAG_LIST += ERRATA_N2_2728475
731
Arvind Ram Prakash4e4d88b2023-07-05 17:24:23 -0500732# Flag to apply erratum 2743014 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_2743014
735
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000736# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
737# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
738CPU_FLAG_LIST += ERRATA_N2_2743089
739
Arvind Ram Prakash16f2a342023-07-17 14:46:14 -0500740# Flag to apply erratum 2779511 workaround during reset. This erratum applies
741# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
742CPU_FLAG_LIST += ERRATA_N2_2779511
743
Govindraj Raja2414a852025-01-21 18:56:25 -0600744# Flag to apply erratum 3701773 workaround during context save/restore of
745# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
746# of the Neoverse N2 cpu and is still open.
747CPU_FLAG_LIST += ERRATA_N2_3701773
748
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000749# Flag to apply erratum 2002765 workaround during reset. This erratum applies
750# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
751CPU_FLAG_LIST += ERRATA_X2_2002765
752
753# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew24cf1112023-10-16 13:33:18 -0500754# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000755CPU_FLAG_LIST += ERRATA_X2_2058056
756
757# Flag to apply erratum 2083908 workaround during reset. This erratum applies
758# to revision r2p0 of the Cortex-X2 cpu and is still open.
759CPU_FLAG_LIST += ERRATA_X2_2083908
760
761# Flag to apply erratum 2017096 workaround during reset. This erratum applies
762# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
763# r2p1.
764CPU_FLAG_LIST += ERRATA_X2_2017096
765
766# Flag to apply erratum 2081180 workaround during reset. This erratum applies
767# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
768# r2p1.
769CPU_FLAG_LIST += ERRATA_X2_2081180
770
771# Flag to apply erratum 2216384 workaround during reset. This erratum applies
772# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
773# r2p1.
774CPU_FLAG_LIST += ERRATA_X2_2216384
775
776# Flag to apply erratum 2147715 workaround during reset. This erratum applies
777# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
778CPU_FLAG_LIST += ERRATA_X2_2147715
779
780# Flag to apply erratum 2282622 workaround during reset. This erratum applies
781# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
782# open.
783CPU_FLAG_LIST += ERRATA_X2_2282622
784
785# Flag to apply erratum 2371105 workaround during reset. This erratum applies
786# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
787CPU_FLAG_LIST += ERRATA_X2_2371105
788
Sona Mathewf718c872023-03-14 16:50:36 -0500789# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
790# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
791# and is still open.
792CPU_FLAG_LIST += ERRATA_X2_2701952
793
Bipin Ravi6fff64f2023-10-17 09:11:19 -0500794# Flag to apply erratum 2742423 workaround during reset. This erratum applies
795# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
796CPU_FLAG_LIST += ERRATA_X2_2742423
797
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000798# Flag to apply erratum 2768515 workaround during power down. This erratum
799# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
800# still open.
801CPU_FLAG_LIST += ERRATA_X2_2768515
802
Sona Mathew45bf33e2023-12-09 13:09:30 -0600803# Flag to apply erratum 2778471 workaround during reset. This erratum applies
804# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
805CPU_FLAG_LIST += ERRATA_X2_2778471
806
Govindraj Raja2296df62025-01-21 18:02:51 -0600807# Flag to apply erratum 3701772 workaround during context save/restore of
808# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0 and r2p1
809# of the Cortex-X2 cpu and is still open.
810CPU_FLAG_LIST += ERRATA_X2_3701772
811
Sona Mathew1c706712023-10-03 17:09:09 -0500812# Flag to apply erratum 2070301 workaround on reset. This erratum applies
813# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
814# still open.
815CPU_FLAG_LIST += ERRATA_X3_2070301
816
Bipin Ravieadc24b2023-12-20 14:53:37 -0600817# Flag to apply erratum 2266875 workaround during reset. This erratum applies
818# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
819CPU_FLAG_LIST += ERRATA_X3_2266875
820
Bipin Ravi70bd2642023-12-20 14:32:02 -0600821# Flag to apply erratum 2302506 workaround during reset. This erratum applies
822# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
823CPU_FLAG_LIST += ERRATA_X3_2302506
824
Boyan Karatoteve31060c2022-11-17 12:01:29 +0000825# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
826# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
827CPU_FLAG_LIST += ERRATA_X3_2313909
828
829# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
830# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is still open.
831CPU_FLAG_LIST += ERRATA_X3_2615812
832
Bipin Ravie80174e2024-01-25 15:38:46 -0600833# Flag to apply erratum 2641945 workaround on reset. This erratum applies
834# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
835CPU_FLAG_LIST += ERRATA_X3_2641945
836
Sona Mathew538c6372024-02-21 15:07:30 -0600837# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
838# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
839CPU_FLAG_LIST += ERRATA_X3_2701951
840
Sona Mathewd55ab352023-09-05 14:10:03 -0500841# Flag to apply erratum 2742421 workaround on reset. This erratum applies
842# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
843CPU_FLAG_LIST += ERRATA_X3_2742421
844
Harrison Mutaifc08e1b2023-12-12 11:17:19 +0000845# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
846# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
847CPU_FLAG_LIST += ERRATA_X3_2743088
848
Govindraj Rajaed4bd3c2025-01-21 18:12:35 -0600849# Flag to apply erratum 3701769 workaround during context save/restore of
850# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p1 and r1p2
851# of the Cortex-X3 cpu and is still open.
852CPU_FLAG_LIST += ERRATA_X3_3701769
853
Sona Mathewf1a90ce2023-11-06 13:48:22 -0600854# Flag to apply erratum 2779509 workaround on reset. This erratum applies
855# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
856CPU_FLAG_LIST += ERRATA_X3_2779509
857
Sona Mathew656c4312024-03-01 13:36:21 -0600858# Flag to apply erratum 2701112 workaround for platforms that do not use an
859# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
860# cpu and is fixed in r0p1.
861CPU_FLAG_LIST += ERRATA_X4_2701112
862
Arvind Ram Prakasha0a574d2024-08-05 16:04:37 -0500863# Flag to apply erratum 2726228 workaround during warmboot. This erratum
864# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
865CPU_FLAG_LIST += ERRATA_X4_2726228
866
Bipin Ravi9b5d75b2024-04-10 15:33:21 -0500867# Flag to apply erratum 2740089 workaround during powerdown. This erratum
868# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
869CPU_FLAG_LIST += ERRATA_X4_2740089
870
Sona Mathewd0a74e32024-04-05 16:27:07 -0500871# Flag to apply erratum 2763018 workaround on reset. This erratum applies
872# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
873CPU_FLAG_LIST += ERRATA_X4_2763018
874
Sona Mathew75124502024-07-16 14:34:42 -0500875# Flag to apply erratum 2816013 workaround on reset. This erratum applies
876# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
877CPU_FLAG_LIST += ERRATA_X4_2816013
878
Arvind Ram Prakashac24f382024-08-26 17:04:27 -0500879# Flag to apply erratum 2897503 workaround on reset. This erratum applies
880# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
881CPU_FLAG_LIST += ERRATA_X4_2897503
882
Arvind Ram Prakash3edd92a2024-11-27 15:02:32 -0600883# Flag to apply erratum 2923985 workaround on reset. This erratum applies
884# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
885CPU_FLAG_LIST += ERRATA_X4_2923985
886
Govindraj Raja30d68862025-02-07 14:21:14 -0600887# Flag to apply erratum 2957258 workaround to avoid incorrect virtualization of
888# MPIDR_EL1/VMPIDR_EL2 and MIDR_EL1/VPIDR_EL2 when reading in EL2/EL3. This
889# erratum applies to revisions r0p0, r0p1 of the Cortex-X4 cpu. It is fixed
890# in r0p2.
891CPU_FLAG_LIST += ERRATA_X4_2957258
892
Ryan Everett62520722024-05-21 11:56:37 +0100893# Flag to apply erratum 3076789 workaround on reset. This erratum applies
894# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
895CPU_FLAG_LIST += ERRATA_X4_3076789
896
Govindraj Raja395f67e2025-01-21 18:24:57 -0600897# Flag to apply erratum 3701758 workaround during context save/restore of
898# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
899# of the Cortex-X4 cpu and is still open.
900CPU_FLAG_LIST += ERRATA_X4_3701758
901
Boyan Karatoteve31060c2022-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 Mathewaf8088b2023-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 Karatoteve31060c2022-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 Mathew03237dd2023-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 Prakashd04495b2023-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 Prakasha0a574d2024-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 Ravibce28142023-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 Ravi3a4bdce2023-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 Ravi366dc1f2023-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 Mathewf718c872023-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 Ravi61d98222023-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 Ravi28b3d982023-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 Raviff996c22023-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 Fischerec3fafa2023-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 Ravi877e9342024-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 Mutaibd32e622024-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 Mathew81270d92024-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 Ravi84e8de62024-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 Ravi6a8a8672024-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 Ravia3cd4422024-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 Ravi02633262024-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 Raja3b8a3ad2025-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 Prakash9db99a32024-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 Mathewdedcbb72024-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 Ravi205980a2024-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 Ravi46968062024-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 Rajac7d5de92025-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
Boyan Karatoteve31060c2022-11-17 12:01:29 +00001053# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
1054# Applying the workaround results in higher DSU power consumption on idle.
1055CPU_FLAG_LIST += ERRATA_DSU_798953
1056
1057# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
Govindraj Rajac7d5de92025-01-21 17:12:33 -06001058# the ACP interface and revision < r0p0. Applying the workaround results in
Boyan Karatoteve31060c2022-11-17 12:01:29 +00001059# higher DSU power consumption on idle.
1060CPU_FLAG_LIST += ERRATA_DSU_936184
1061
1062# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1063# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1064# results in higher DSU power consumption on idle.
1065CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001066
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001067ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001068 ifeq (${WORKAROUND_CVE_2018_3639},0)
1069 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1070 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001071endif
1072
Boyan Karatoteve31060c2022-11-17 12:01:29 +00001073# process all flags
1074$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
1075$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1076$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001077
Douglas Raillarda94cc372017-06-19 15:38:02 +01001078# Errata build flags
1079ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001080TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001081endif
1082
1083ifneq (${ERRATA_A53_835769},0)
1084TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001085TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001086endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001087
1088ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1089 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1090ERRATA_SPECULATIVE_AT := 1
1091else
1092ERRATA_SPECULATIVE_AT := 0
1093endif