blob: 7bccdaef41420d1676be66408e76f64fe980f462 [file] [log] [blame]
Soby Mathewd9bdaf22014-08-14 16:19:29 +01001#
Arvind Ram Prakashb2be8b02024-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
Sona Mathewe42abf22024-05-20 13:48:19 -050010# Flag to disable Hardware page aggregation(HPA).
11# This flag is enabled by default.
12WORKAROUND_CVE_2024_5660 ?=1
13CPU_FLAG_LIST += WORKAROUND_CVE_2024_5660
14
Soby Mathew5541bb32014-09-22 14:13:34 +010015# Cortex A57 specific optimisation to skip L1 cache flush when
16# cluster is powered down.
Boyan Karatoteve4447632022-11-17 12:01:29 +000017CPU_FLAG_LIST += SKIP_A57_L1_FLUSH_PWR_DWN
Soby Mathew5541bb32014-09-22 14:13:34 +010018
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000019# Flag to disable the cache non-temporal hint.
20# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060021A53_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000022CPU_FLAG_LIST += A53_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000023
24# Flag to disable the cache non-temporal hint.
25# It is enabled by default.
johpow0183435632022-01-04 16:15:18 -060026A57_DISABLE_NON_TEMPORAL_HINT ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000027CPU_FLAG_LIST += A57_DISABLE_NON_TEMPORAL_HINT
Sandrine Bailleux54035fc2016-01-13 14:57:38 +000028
Varun Wadekarcd0ea182018-06-12 16:49:12 -070029# Flag to enable higher performance non-cacheable load forwarding.
30# It is disabled by default.
Boyan Karatoteve4447632022-11-17 12:01:29 +000031CPU_FLAG_LIST += A57_ENABLE_NONCACHEABLE_LOAD_FWD
Varun Wadekarcd0ea182018-06-12 16:49:12 -070032
johpow0183435632022-01-04 16:15:18 -060033WORKAROUND_CVE_2017_5715 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000034CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715
johpow0183435632022-01-04 16:15:18 -060035WORKAROUND_CVE_2018_3639 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000036CPU_FLAG_LIST += WORKAROUND_CVE_2018_3639
37CPU_FLAG_LIST += DYNAMIC_WORKAROUND_CVE_2018_3639
Bipin Ravi1fe4a9d2022-01-18 01:59:06 -060038WORKAROUND_CVE_2022_23960 ?=1
Boyan Karatoteve4447632022-11-17 12:01:29 +000039CPU_FLAG_LIST += WORKAROUND_CVE_2022_23960
Arvind Ram Prakashb2be8b02024-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 Karatoteve4447632022-11-17 12:01:29 +000045CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +000046
Boyan Karatoteve4447632022-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 Karatoteve4447632022-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 Karatoteve4447632022-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 Karatoteve4447632022-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 Karatoteve4447632022-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 Karatoteve4447632022-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 Karatoteve4447632022-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 Karatoteve4447632022-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 Karatoteve4447632022-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 Mathewab062f02023-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 Karatoteve4447632022-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 Mathewc8146192023-10-10 16:48:57 -0500362# to revisions r0p0, r0p1 and r0p2 of the A78 AE cpu. It is still open.
Boyan Karatoteve4447632022-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 Ravi672eb212023-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 Ravib01a59e2023-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 Mathewab062f02023-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 Karatoteve4447632022-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 Ravi0e5e9942023-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 Mathewab062f02023-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 Mathew6becda52023-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 Karatoteve4447632022-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 Mathewab2b56d2023-10-16 15:12:30 -0500535# to revisions r0p0, r1p0, and r1p1 and r1p2 of the Neoverse V1 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000536CPU_FLAG_LIST += ERRATA_V1_2294912
537
Sona Mathew25cf2842023-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 Karatoteve4447632022-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 Mathewab062f02023-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 Karatoteve4447632022-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 2779461 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_2779461
565
566# Flag to apply erratum 1987031 workaround during reset. This erratum applies
567# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
568CPU_FLAG_LIST += ERRATA_A710_1987031
569
570# Flag to apply erratum 2081180 workaround during reset. This erratum applies
571# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
572CPU_FLAG_LIST += ERRATA_A710_2081180
573
574# Flag to apply erratum 2083908 workaround during reset. This erratum applies
575# to revision r2p0 of the Cortex-A710 cpu and is still open.
576CPU_FLAG_LIST += ERRATA_A710_2083908
577
578# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew2bf79392023-10-10 13:51:45 -0500579# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
580# open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000581CPU_FLAG_LIST += ERRATA_A710_2058056
582
583# Flag to apply erratum 2055002 workaround during reset. This erratum applies
584# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open.
585CPU_FLAG_LIST += ERRATA_A710_2055002
586
587# Flag to apply erratum 2017096 workaround during reset. This erratum applies
588# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open.
589CPU_FLAG_LIST += ERRATA_A710_2017096
590
591# Flag to apply erratum 2267065 workaround during reset. This erratum applies
592# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
593CPU_FLAG_LIST += ERRATA_A710_2267065
594
595# Flag to apply erratum 2136059 workaround during reset. This erratum applies
596# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
597CPU_FLAG_LIST += ERRATA_A710_2136059
598
599# Flag to apply erratum 2147715 workaround during reset. This erratum applies
600# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1.
601CPU_FLAG_LIST += ERRATA_A710_2147715
602
603# Flag to apply erratum 2216384 workaround during reset. This erratum applies
604# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
605CPU_FLAG_LIST += ERRATA_A710_2216384
606
607# Flag to apply erratum 2282622 workaround during reset. This erratum applies
608# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
609# open.
610CPU_FLAG_LIST += ERRATA_A710_2282622
611
612# Flag to apply erratum 2291219 workaround during reset. This erratum applies
613# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
614CPU_FLAG_LIST += ERRATA_A710_2291219
615
616# Flag to apply erratum 2008768 workaround during reset. This erratum applies
617# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
618CPU_FLAG_LIST += ERRATA_A710_2008768
619
620# Flag to apply erratum 2371105 workaround during reset. This erratum applies
621# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1.
622CPU_FLAG_LIST += ERRATA_A710_2371105
623
Sona Mathewab062f02023-03-14 16:50:36 -0500624# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
625# erratum applies to revision r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu
626# and is still open.
627CPU_FLAG_LIST += ERRATA_A710_2701952
628
Bipin Ravid7bc2cb2023-10-17 07:55:55 -0500629# Flag to apply erratum 2742423 workaround during reset. This erratum applies
630# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still
631# open.
632CPU_FLAG_LIST += ERRATA_A710_2742423
633
Boyan Karatoteve4447632022-11-17 12:01:29 +0000634# Flag to apply erratum 2768515 workaround during power down. This erratum
635# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is
636# still open.
637CPU_FLAG_LIST += ERRATA_A710_2768515
638
Sona Mathewe27b8ec2023-12-08 20:52:17 -0600639# Flag to apply erratum 2778471 workaround during reset. This erratum applies
640# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-A710 cpu and is still
641# open.
642CPU_FLAG_LIST += ERRATA_A710_2778471
643
Govindraj Raja8f709372025-01-21 12:32:14 -0600644# Flag to apply erratum 3701772 workaround during context save/restore of
645# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0, r2p1
646# of the Cortex-A710 cpu and is still open.
647CPU_FLAG_LIST += ERRATA_A710_3701772
648
Boyan Karatoteve4447632022-11-17 12:01:29 +0000649# Flag to apply erratum 2002655 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500650# to revisions r0p0 of the Neoverse-N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000651CPU_FLAG_LIST += ERRATA_N2_2002655
652
Bipin Ravi74bfe312023-08-29 13:59:09 -0500653# Flag to apply erratum 2009478 workaround during powerdown. This erratum
654# applies to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
655CPU_FLAG_LIST += ERRATA_N2_2009478
656
Boyan Karatoteve4447632022-11-17 12:01:29 +0000657# Flag to apply erratum 2067956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500658# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000659CPU_FLAG_LIST += ERRATA_N2_2067956
660
661# Flag to apply erratum 2025414 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500662# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000663CPU_FLAG_LIST += ERRATA_N2_2025414
664
665# Flag to apply erratum 2189731 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500666# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000667CPU_FLAG_LIST += ERRATA_N2_2189731
668
669# Flag to apply erratum 2138956 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500670# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000671CPU_FLAG_LIST += ERRATA_N2_2138956
672
673# Flag to apply erratum 2138953 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500674# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000675CPU_FLAG_LIST += ERRATA_N2_2138953
676
677# Flag to apply erratum 2242415 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500678# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000679CPU_FLAG_LIST += ERRATA_N2_2242415
680
681# Flag to apply erratum 2138958 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500682# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000683CPU_FLAG_LIST += ERRATA_N2_2138958
684
685# Flag to apply erratum 2242400 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500686# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000687CPU_FLAG_LIST += ERRATA_N2_2242400
688
689# Flag to apply erratum 2280757 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500690# to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000691CPU_FLAG_LIST += ERRATA_N2_2280757
692
Bipin Ravi68085ad2023-10-17 06:21:15 -0500693# Flag to apply erratum 2326639 workaroud during powerdown. This erratum
Boyan Karatoteve4447632022-11-17 12:01:29 +0000694# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
695CPU_FLAG_LIST += ERRATA_N2_2326639
696
Bipin Ravi68085ad2023-10-17 06:21:15 -0500697# Flag to apply erratum 2340933 workaroud during reset. This erratum
698# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1.
699CPU_FLAG_LIST += ERRATA_N2_2340933
700
Bipin Ravi6cb8be12023-10-17 05:56:01 -0500701# Flag to apply erratum 2346952 workaround during reset. This erratum applies
702# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
703CPU_FLAG_LIST += ERRATA_N2_2346952
704
Boyan Karatoteve4447632022-11-17 12:01:29 +0000705# Flag to apply erratum 2376738 workaround during reset. This erratum applies
Arvind Ram Prakashd6d34b32023-06-29 16:17:23 -0500706# to revision r0p0, r0p1, r0p2, r0p3 of the Neoverse N2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000707CPU_FLAG_LIST += ERRATA_N2_2376738
708
709# Flag to apply erratum 2388450 workaround during reset. This erratum applies
710# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1.
711CPU_FLAG_LIST += ERRATA_N2_2388450
712
Sona Mathewab062f02023-03-14 16:50:36 -0500713# Flag to apply erratum 2728475 workaround for non-arm interconnect ip. This
714# erratum applies to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in
715# r0p3.
716CPU_FLAG_LIST += ERRATA_N2_2728475
717
Arvind Ram Prakasheb440352023-07-05 17:24:23 -0500718# Flag to apply erratum 2743014 workaround during reset. This erratum applies
719# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
720CPU_FLAG_LIST += ERRATA_N2_2743014
721
Boyan Karatoteve4447632022-11-17 12:01:29 +0000722# Flag to apply erratum 2743089 workaround during during powerdown. This erratum
723# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
724CPU_FLAG_LIST += ERRATA_N2_2743089
725
Arvind Ram Prakash12d28062023-07-17 14:46:14 -0500726# Flag to apply erratum 2779511 workaround during reset. This erratum applies
727# to r0p0, r0p1, r0p2 of the Neoverse N2 cpu, it is fixed in r0p3.
728CPU_FLAG_LIST += ERRATA_N2_2779511
729
Govindraj Raja1d175782025-01-21 18:56:25 -0600730# Flag to apply erratum 3701773 workaround during context save/restore of
731# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
732# of the Neoverse N2 cpu and is still open.
733CPU_FLAG_LIST += ERRATA_N2_3701773
734
Boyan Karatoteve4447632022-11-17 12:01:29 +0000735# Flag to apply erratum 2002765 workaround during reset. This erratum applies
736# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
737CPU_FLAG_LIST += ERRATA_X2_2002765
738
739# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew8ae66d62023-10-16 13:33:18 -0500740# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000741CPU_FLAG_LIST += ERRATA_X2_2058056
742
743# Flag to apply erratum 2083908 workaround during reset. This erratum applies
744# to revision r2p0 of the Cortex-X2 cpu and is still open.
745CPU_FLAG_LIST += ERRATA_X2_2083908
746
747# Flag to apply erratum 2017096 workaround during reset. This erratum applies
748# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
749# r2p1.
750CPU_FLAG_LIST += ERRATA_X2_2017096
751
752# Flag to apply erratum 2081180 workaround during reset. This erratum applies
753# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
754# r2p1.
755CPU_FLAG_LIST += ERRATA_X2_2081180
756
757# Flag to apply erratum 2216384 workaround during reset. This erratum applies
758# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
759# r2p1.
760CPU_FLAG_LIST += ERRATA_X2_2216384
761
762# Flag to apply erratum 2147715 workaround during reset. This erratum applies
763# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
764CPU_FLAG_LIST += ERRATA_X2_2147715
765
766# Flag to apply erratum 2282622 workaround during reset. This erratum applies
767# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
768# open.
769CPU_FLAG_LIST += ERRATA_X2_2282622
770
771# Flag to apply erratum 2371105 workaround during reset. This erratum applies
772# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
773CPU_FLAG_LIST += ERRATA_X2_2371105
774
Sona Mathewab062f02023-03-14 16:50:36 -0500775# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
776# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
777# and is still open.
778CPU_FLAG_LIST += ERRATA_X2_2701952
779
Bipin Ravife06e112023-10-17 09:11:19 -0500780# Flag to apply erratum 2742423 workaround during reset. This erratum applies
781# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
782CPU_FLAG_LIST += ERRATA_X2_2742423
783
Boyan Karatoteve4447632022-11-17 12:01:29 +0000784# Flag to apply erratum 2768515 workaround during power down. This erratum
785# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
786# still open.
787CPU_FLAG_LIST += ERRATA_X2_2768515
788
Sona Mathewb312fa02023-12-09 13:09:30 -0600789# Flag to apply erratum 2778471 workaround during reset. This erratum applies
790# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
791CPU_FLAG_LIST += ERRATA_X2_2778471
792
Govindraj Raja3e9433d2025-01-21 18:02:51 -0600793# Flag to apply erratum 3701772 workaround during context save/restore of
794# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0 and r2p1
795# of the Cortex-X2 cpu and is still open.
796CPU_FLAG_LIST += ERRATA_X2_3701772
797
Sona Mathew24543162023-10-03 17:09:09 -0500798# Flag to apply erratum 2070301 workaround on reset. This erratum applies
799# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
800# still open.
801CPU_FLAG_LIST += ERRATA_X3_2070301
802
Bipin Ravi7c227dc2023-12-20 14:53:37 -0600803# Flag to apply erratum 2266875 workaround during reset. This erratum applies
804# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
805CPU_FLAG_LIST += ERRATA_X3_2266875
806
Bipin Ravi744f07a2023-12-20 14:32:02 -0600807# Flag to apply erratum 2302506 workaround during reset. This erratum applies
808# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
809CPU_FLAG_LIST += ERRATA_X3_2302506
810
Boyan Karatoteve4447632022-11-17 12:01:29 +0000811# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
812# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
813CPU_FLAG_LIST += ERRATA_X3_2313909
814
Bipin Ravi5f8f7452024-02-27 15:13:17 -0600815# Flag to apply erratum 2372204 workaround during reset. This erratum applies
816# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
817CPU_FLAG_LIST += ERRATA_X3_2372204
818
Boyan Karatoteve4447632022-11-17 12:01:29 +0000819# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
Sona Mathew635c83e2024-03-15 11:07:33 -0500820# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000821CPU_FLAG_LIST += ERRATA_X3_2615812
822
Bipin Ravi84fcd042024-01-25 15:38:46 -0600823# Flag to apply erratum 2641945 workaround on reset. This erratum applies
824# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
825CPU_FLAG_LIST += ERRATA_X3_2641945
826
Sona Mathewa234f542024-02-21 15:07:30 -0600827# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
828# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
829CPU_FLAG_LIST += ERRATA_X3_2701951
830
Sona Mathew5b0e4432023-09-05 14:10:03 -0500831# Flag to apply erratum 2742421 workaround on reset. This erratum applies
832# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
833CPU_FLAG_LIST += ERRATA_X3_2742421
834
Harrison Mutai88a8cd02023-12-12 11:17:19 +0000835# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
836# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
837CPU_FLAG_LIST += ERRATA_X3_2743088
838
Govindraj Raja1852f602025-01-21 18:12:35 -0600839# Flag to apply erratum 3701769 workaround during context save/restore of
840# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p1 and r1p2
841# of the Cortex-X3 cpu and is still open.
842CPU_FLAG_LIST += ERRATA_X3_3701769
843
Sona Mathew402b9a92023-11-06 13:48:22 -0600844# Flag to apply erratum 2779509 workaround on reset. This erratum applies
845# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
846CPU_FLAG_LIST += ERRATA_X3_2779509
847
Sona Mathewd466c5d2024-03-01 13:36:21 -0600848# Flag to apply erratum 2701112 workaround for platforms that do not use an
849# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
850# cpu and is fixed in r0p1.
851CPU_FLAG_LIST += ERRATA_X4_2701112
852
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500853# Flag to apply erratum 2726228 workaround during warmboot. This erratum
854# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
855CPU_FLAG_LIST += ERRATA_X4_2726228
856
Bipin Ravi3609b0a2024-04-10 15:33:21 -0500857# Flag to apply erratum 2740089 workaround during powerdown. This erratum
858# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
859CPU_FLAG_LIST += ERRATA_X4_2740089
860
Sona Mathew200931d2024-04-05 16:27:07 -0500861# Flag to apply erratum 2763018 workaround on reset. This erratum applies
862# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
863CPU_FLAG_LIST += ERRATA_X4_2763018
864
Sona Mathew582b9502024-07-16 14:34:42 -0500865# Flag to apply erratum 2816013 workaround on reset. This erratum applies
866# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
867CPU_FLAG_LIST += ERRATA_X4_2816013
868
Arvind Ram Prakash23b59a32024-08-26 17:04:27 -0500869# Flag to apply erratum 2897503 workaround on reset. This erratum applies
870# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
871CPU_FLAG_LIST += ERRATA_X4_2897503
872
Arvind Ram Prakash196984e2024-11-27 15:02:32 -0600873# Flag to apply erratum 2923985 workaround on reset. This erratum applies
874# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
875CPU_FLAG_LIST += ERRATA_X4_2923985
876
Ryan Everett34a4f242024-05-21 11:56:37 +0100877# Flag to apply erratum 3076789 workaround on reset. This erratum applies
878# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
879CPU_FLAG_LIST += ERRATA_X4_3076789
880
Govindraj Rajadb3048d2025-01-21 18:24:57 -0600881# Flag to apply erratum 3701758 workaround during context save/restore of
882# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 and r0p3
883# of the Cortex-X4 cpu and is still open.
884CPU_FLAG_LIST += ERRATA_X4_3701758
885
Govindraj Rajac8a6cc02025-01-21 18:38:56 -0600886# Flag to apply erratum 3701747 workaround during context save/restore of
887# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of the
888# Cortex-X925 cpu and is still open.
889CPU_FLAG_LIST += ERRATA_X925_3701747
890
Boyan Karatoteve4447632022-11-17 12:01:29 +0000891# Flag to apply erratum 1922240 workaround during reset. This erratum applies
892# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
893CPU_FLAG_LIST += ERRATA_A510_1922240
894
895# Flag to apply erratum 2288014 workaround during reset. This erratum applies
896# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
897# fixed in r1p1.
898CPU_FLAG_LIST += ERRATA_A510_2288014
899
900# Flag to apply erratum 2042739 workaround during reset. This erratum applies
901# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
902CPU_FLAG_LIST += ERRATA_A510_2042739
903
904# Flag to apply erratum 2041909 workaround during reset. This erratum applies
905# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
906# present in r0p0 and r0p1 but there is no workaround for those revisions.
907CPU_FLAG_LIST += ERRATA_A510_2041909
908
Sona Mathew6e864752023-10-12 12:04:53 -0500909# Flag to aply erratum 2080326 workaround during reset. This erratum applies
910# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
911# also present in r0p0 and r0p1 but there is no workaround for those revisions.
912CPU_FLAG_LIST += ERRATA_A510_2080326
913
Boyan Karatoteve4447632022-11-17 12:01:29 +0000914# Flag to apply erratum 2250311 workaround during reset. This erratum applies
915# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
916CPU_FLAG_LIST += ERRATA_A510_2250311
917
918# Flag to apply erratum 2218950 workaround during reset. This erratum applies
919# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
920CPU_FLAG_LIST += ERRATA_A510_2218950
921
922# Flag to apply erratum 2172148 workaround during reset. This erratum applies
923# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
924CPU_FLAG_LIST += ERRATA_A510_2172148
925
926# Flag to apply erratum 2347730 workaround during reset. This erratum applies
927# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
928# and is fixed in r1p2.
929CPU_FLAG_LIST += ERRATA_A510_2347730
930
931# Flag to apply erratum 2371937 workaround during reset. This erratum applies
932# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
933CPU_FLAG_LIST += ERRATA_A510_2371937
934
935# Flag to apply erratum 2666669 workaround during reset. This erratum applies
936# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
937CPU_FLAG_LIST += ERRATA_A510_2666669
938
939# Flag to apply erratum 2684597 workaround during powerdown. This erratum
940# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
941# Cortex-A510 cpu and is fixed in r1p3.
942CPU_FLAG_LIST += ERRATA_A510_2684597
943
Sona Mathew4a9ed7a2023-12-09 20:44:56 -0600944# Flag to apply erratum 2630792 workaround during reset. This erratum applies
945# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
946CPU_FLAG_LIST += ERRATA_A520_2630792
947
Arvind Ram Prakash8d45e302023-12-08 20:19:58 -0600948# Flag to apply erratum 2858100 workaround during reset. This erratum
949# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
950CPU_FLAG_LIST += ERRATA_A520_2858100
951
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500952# Flag to apply erratum 2938996 workaround during reset. This erratum
953# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is fixed in r0p2.
954CPU_FLAG_LIST += ERRATA_A520_2938996
955
Bipin Ravi8852fb52023-09-18 16:34:13 -0500956# Flag to apply erratum 2331132 workaround during reset. This erratum applies
957# to revisions r0p0, r0p1 and r0p2. It is still open.
958CPU_FLAG_LIST += ERRATA_V2_2331132
959
Bipin Ravif98185e2023-10-17 19:42:15 -0500960# Flag to apply erratum 2618597 workaround during reset. This erratum applies
961# to revisions r0p0 and r0p1. It is fixed in r0p2.
962CPU_FLAG_LIST += ERRATA_V2_2618597
963
Bipin Ravid36d1672023-10-17 18:35:55 -0500964# Flag to apply erratum 2662553 workaround during reset. This erratum applies
965# to revisions r0p0 and r0p1. It is fixed in r0p2.
966CPU_FLAG_LIST += ERRATA_V2_2662553
967
Sona Mathewab062f02023-03-14 16:50:36 -0500968# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
969# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
970CPU_FLAG_LIST += ERRATA_V2_2719103
971
Bipin Ravib0114022023-09-18 17:27:29 -0500972# Flag to apply erratum 2719105 workaround during reset. This erratum applies
973# to revisions r0p0 and r0p1. It is fixed in r0p2.
974CPU_FLAG_LIST += ERRATA_V2_2719105
975
Bipin Ravi58dd1532023-09-18 19:54:41 -0500976# Flag to apply erratum 2743011 workaround during reset. This erratum applies
977# to revisions r0p0 and r0p1. It is fixed in r0p2.
978CPU_FLAG_LIST += ERRATA_V2_2743011
979
Bipin Raviff342642023-09-18 19:28:32 -0500980# Flag to apply erratum 2779510 workaround during reset. This erratum applies
981# to revisions r0p0 and r0p1. It is fixed in r0p2.
982CPU_FLAG_LIST += ERRATA_V2_2779510
983
Moritz Fischer40c81ed2023-07-06 00:01:23 +0000984# Flag to apply erratum 2801372 workaround for all configurations.
985# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
986CPU_FLAG_LIST += ERRATA_V2_2801372
987
Bipin Ravi940ebbe2024-02-27 17:49:12 -0600988# Flag to apply erratum 2331818 workaround during reset. This erratum applies
989# to revisions r0p0 and r1p0. It is fixed in r1p1.
990CPU_FLAG_LIST += ERRATA_A715_2331818
991
Harrison Mutai3e3ff292024-01-02 16:55:44 +0000992# Flag to apply erratum 2344187 workaround during reset. This erratum applies
993# to revisions r0p0, and r1p0. It is fixed in r1p1.
994CPU_FLAG_LIST += ERRATA_A715_2344187
995
Sona Mathewb59307e2024-02-20 16:59:45 -0600996# Flag to apply erratum 2413290 workaround during reset. This erratum applies
997# only to revision r1p0. It is fixed in r1p1.
998CPU_FLAG_LIST += ERRATA_A715_2413290
999
Bipin Ravi04c60d52024-02-27 17:34:05 -06001000# Flag to apply erratum 2420947 workaround during reset. This erratum applies
1001# only to revision r1p0. It is fixed in r1p1.
1002CPU_FLAG_LIST += ERRATA_A715_2420947
1003
Bipin Ravi301698e2024-02-27 17:14:22 -06001004# Flag to apply erratum 2429384 workaround during reset. This erratum applies
1005# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
1006CPU_FLAG_LIST += ERRATA_A715_2429384
1007
Bipin Ravi26249512024-01-25 16:18:20 -06001008# Flag to apply erratum 2561034 workaround during reset. This erratum applies
1009# only to revision r1p0. It is fixed in r1p1.
1010CPU_FLAG_LIST += ERRATA_A715_2561034
1011
Bipin Ravi1edbf2a2024-04-10 15:06:11 -05001012# Flag to apply erratum 2728106 workaround during reset. This erratum applies
1013# only to revision r0p0, r1p0 and r1p1. It is fixed in r1p2.
1014CPU_FLAG_LIST += ERRATA_A715_2728106
1015
Govindraj Raja857cfc22025-01-21 17:00:11 -06001016# Flag to apply erratum 3699560 workaround during context save/restore of
1017# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p2, r1p3
1018# of the Cortex-A715 cpu and is still open.
1019CPU_FLAG_LIST += ERRATA_A715_3699560
1020
Arvind Ram Prakasha93c69b2024-07-19 15:59:17 -05001021# Flag to apply erratum 2792132 workaround during reset. This erratum applies
1022# to revisions r0p0 and r0p1. It is fixed in r0p2.
1023CPU_FLAG_LIST += ERRATA_A720_2792132
1024
Sona Mathew9d393432024-07-19 18:09:20 -05001025# Flag to apply erratum 2844092 workaround during reset. This erratum applies
1026# to revisions r0p0 and r0p1. It is fixed in r0p2.
1027CPU_FLAG_LIST += ERRATA_A720_2844092
1028
Bipin Ravibaf14742024-03-14 16:52:21 -05001029# Flag to apply erratum 2926083 workaround during reset. This erratum applies
1030# to revisions r0p0 and r0p1. It is fixed in r0p2.
1031CPU_FLAG_LIST += ERRATA_A720_2926083
1032
Bipin Ravi03636f22024-03-12 10:29:16 -05001033# Flag to apply erratum 2940794 workaround during reset. This erratum applies
1034# to revisions r0p0 and r0p1. It is fixed in r0p2.
1035CPU_FLAG_LIST += ERRATA_A720_2940794
1036
Govindraj Raja36b53f92025-01-21 17:12:33 -06001037# Flag to apply erratum 3699561 workaround during context save/restore of
1038# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 of
1039# the Cortex-A720 cpu and is still open.
1040CPU_FLAG_LIST += ERRATA_A720_3699561
1041
Govindraj Raja17b8a8a2025-02-04 16:20:35 +01001042# Flag to apply erratum 3699564 workaround during context save/restore of
1043# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of
1044# the Cortex-A725 cpu and is fixed in r0p2
1045CPU_FLAG_LIST += ERRATA_A725_3699564
1046
Boyan Karatoteve4447632022-11-17 12:01:29 +00001047# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
1048# Applying the workaround results in higher DSU power consumption on idle.
1049CPU_FLAG_LIST += ERRATA_DSU_798953
1050
1051# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
Govindraj Raja36b53f92025-01-21 17:12:33 -06001052# the ACP interface and revision < r0p0. Applying the workaround results in
Boyan Karatoteve4447632022-11-17 12:01:29 +00001053# higher DSU power consumption on idle.
1054CPU_FLAG_LIST += ERRATA_DSU_936184
1055
1056# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1057# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1058# results in higher DSU power consumption on idle.
1059CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001060
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001061ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001062 ifeq (${WORKAROUND_CVE_2018_3639},0)
1063 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1064 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001065endif
1066
Boyan Karatoteve4447632022-11-17 12:01:29 +00001067# process all flags
1068$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
1069$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1070$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001071
Douglas Raillarda94cc372017-06-19 15:38:02 +01001072# Errata build flags
1073ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001074TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001075endif
1076
1077ifneq (${ERRATA_A53_835769},0)
1078TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001079TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001080endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001081
1082ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1083 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1084ERRATA_SPECULATIVE_AT := 1
1085else
1086ERRATA_SPECULATIVE_AT := 0
1087endif