blob: 9c70b441d9f30d147c34a306d6bf80ad995a2bff [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
Boyan Karatoteve4447632022-11-17 12:01:29 +0000730# Flag to apply erratum 2002765 workaround during reset. This erratum applies
731# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open.
732CPU_FLAG_LIST += ERRATA_X2_2002765
733
734# Flag to apply erratum 2058056 workaround during reset. This erratum applies
Sona Mathew8ae66d62023-10-16 13:33:18 -0500735# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000736CPU_FLAG_LIST += ERRATA_X2_2058056
737
738# Flag to apply erratum 2083908 workaround during reset. This erratum applies
739# to revision r2p0 of the Cortex-X2 cpu and is still open.
740CPU_FLAG_LIST += ERRATA_X2_2083908
741
742# Flag to apply erratum 2017096 workaround during reset. This erratum applies
743# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in
744# r2p1.
745CPU_FLAG_LIST += ERRATA_X2_2017096
746
747# Flag to apply erratum 2081180 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_2081180
751
752# Flag to apply erratum 2216384 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_2216384
756
757# Flag to apply erratum 2147715 workaround during reset. This erratum applies
758# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1.
759CPU_FLAG_LIST += ERRATA_X2_2147715
760
761# Flag to apply erratum 2282622 workaround during reset. This erratum applies
762# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still
763# open.
764CPU_FLAG_LIST += ERRATA_X2_2282622
765
766# Flag to apply erratum 2371105 workaround during reset. This erratum applies
767# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1.
768CPU_FLAG_LIST += ERRATA_X2_2371105
769
Sona Mathewab062f02023-03-14 16:50:36 -0500770# Flag to apply erratum 2701952 workaround for non-arm interconnect ip. This
771# erratum applies to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-x2 cpu
772# and is still open.
773CPU_FLAG_LIST += ERRATA_X2_2701952
774
Bipin Ravife06e112023-10-17 09:11:19 -0500775# Flag to apply erratum 2742423 workaround during reset. This erratum applies
776# to revisions r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still open.
777CPU_FLAG_LIST += ERRATA_X2_2742423
778
Boyan Karatoteve4447632022-11-17 12:01:29 +0000779# Flag to apply erratum 2768515 workaround during power down. This erratum
780# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is
781# still open.
782CPU_FLAG_LIST += ERRATA_X2_2768515
783
Sona Mathewb312fa02023-12-09 13:09:30 -0600784# Flag to apply erratum 2778471 workaround during reset. This erratum applies
785# to revisions r0p0, r1p0, r2p0, r2p1 of the Cortex-X2 cpu and it is still open.
786CPU_FLAG_LIST += ERRATA_X2_2778471
787
Govindraj Raja3e9433d2025-01-21 18:02:51 -0600788# Flag to apply erratum 3701772 workaround during context save/restore of
789# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r2p0 and r2p1
790# of the Cortex-X2 cpu and is still open.
791CPU_FLAG_LIST += ERRATA_X2_3701772
792
Sona Mathew24543162023-10-03 17:09:09 -0500793# Flag to apply erratum 2070301 workaround on reset. This erratum applies
794# to revisions r0p0, r1p0, r1p1 and r1p2 of the Cortex-X3 cpu and is
795# still open.
796CPU_FLAG_LIST += ERRATA_X3_2070301
797
Bipin Ravi7c227dc2023-12-20 14:53:37 -0600798# Flag to apply erratum 2266875 workaround during reset. This erratum applies
799# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
800CPU_FLAG_LIST += ERRATA_X3_2266875
801
Bipin Ravi744f07a2023-12-20 14:32:02 -0600802# Flag to apply erratum 2302506 workaround during reset. This erratum applies
803# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
804CPU_FLAG_LIST += ERRATA_X3_2302506
805
Boyan Karatoteve4447632022-11-17 12:01:29 +0000806# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies
807# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
808CPU_FLAG_LIST += ERRATA_X3_2313909
809
Bipin Ravi5f8f7452024-02-27 15:13:17 -0600810# Flag to apply erratum 2372204 workaround during reset. This erratum applies
811# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
812CPU_FLAG_LIST += ERRATA_X3_2372204
813
Boyan Karatoteve4447632022-11-17 12:01:29 +0000814# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies
Sona Mathew635c83e2024-03-15 11:07:33 -0500815# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
Boyan Karatoteve4447632022-11-17 12:01:29 +0000816CPU_FLAG_LIST += ERRATA_X3_2615812
817
Bipin Ravi84fcd042024-01-25 15:38:46 -0600818# Flag to apply erratum 2641945 workaround on reset. This erratum applies
819# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1.
820CPU_FLAG_LIST += ERRATA_X3_2641945
821
Sona Mathewa234f542024-02-21 15:07:30 -0600822# Flag to apply erratum 2701951 workaround for non-arm interconnect ip.
823# This erratum applies to revisions r0p0, r1p0, and r1p1. Its is fixed in r1p2.
824CPU_FLAG_LIST += ERRATA_X3_2701951
825
Sona Mathew5b0e4432023-09-05 14:10:03 -0500826# Flag to apply erratum 2742421 workaround on reset. This erratum applies
827# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
828CPU_FLAG_LIST += ERRATA_X3_2742421
829
Harrison Mutai88a8cd02023-12-12 11:17:19 +0000830# Flag to apply erratum 2743088 workaround on powerdown. This erratum applies
831# to revisions r0p0, r1p0 and r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
832CPU_FLAG_LIST += ERRATA_X3_2743088
833
Govindraj Raja1852f602025-01-21 18:12:35 -0600834# Flag to apply erratum 3701769 workaround during context save/restore of
835# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p1 and r1p2
836# of the Cortex-X3 cpu and is still open.
837CPU_FLAG_LIST += ERRATA_X3_3701769
838
Sona Mathew402b9a92023-11-06 13:48:22 -0600839# Flag to apply erratum 2779509 workaround on reset. This erratum applies
840# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is fixed in r1p2.
841CPU_FLAG_LIST += ERRATA_X3_2779509
842
Sona Mathewd466c5d2024-03-01 13:36:21 -0600843# Flag to apply erratum 2701112 workaround for platforms that do not use an
844# Arm interconnect IP. This erratum applies to revisions r0p0 of the Cortex-X4
845# cpu and is fixed in r0p1.
846CPU_FLAG_LIST += ERRATA_X4_2701112
847
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500848# Flag to apply erratum 2726228 workaround during warmboot. This erratum
849# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
850CPU_FLAG_LIST += ERRATA_X4_2726228
851
Bipin Ravi3609b0a2024-04-10 15:33:21 -0500852# Flag to apply erratum 2740089 workaround during powerdown. This erratum
853# applies to all revisions <= r0p1 of the Cortex-X4 cpu, it is fixed in r0p2.
854CPU_FLAG_LIST += ERRATA_X4_2740089
855
Sona Mathew200931d2024-04-05 16:27:07 -0500856# Flag to apply erratum 2763018 workaround on reset. This erratum applies
857# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
858CPU_FLAG_LIST += ERRATA_X4_2763018
859
Sona Mathew582b9502024-07-16 14:34:42 -0500860# Flag to apply erratum 2816013 workaround on reset. This erratum applies
861# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
862CPU_FLAG_LIST += ERRATA_X4_2816013
863
Arvind Ram Prakash23b59a32024-08-26 17:04:27 -0500864# Flag to apply erratum 2897503 workaround on reset. This erratum applies
865# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
866CPU_FLAG_LIST += ERRATA_X4_2897503
867
Arvind Ram Prakash196984e2024-11-27 15:02:32 -0600868# Flag to apply erratum 2923985 workaround on reset. This erratum applies
869# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
870CPU_FLAG_LIST += ERRATA_X4_2923985
871
Ryan Everett34a4f242024-05-21 11:56:37 +0100872# Flag to apply erratum 3076789 workaround on reset. This erratum applies
873# to revisions r0p0 and r0p1 of the Cortex-X4 cpu. It is fixed in r0p2.
874CPU_FLAG_LIST += ERRATA_X4_3076789
875
Boyan Karatoteve4447632022-11-17 12:01:29 +0000876# Flag to apply erratum 1922240 workaround during reset. This erratum applies
877# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1.
878CPU_FLAG_LIST += ERRATA_A510_1922240
879
880# Flag to apply erratum 2288014 workaround during reset. This erratum applies
881# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is
882# fixed in r1p1.
883CPU_FLAG_LIST += ERRATA_A510_2288014
884
885# Flag to apply erratum 2042739 workaround during reset. This erratum applies
886# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3.
887CPU_FLAG_LIST += ERRATA_A510_2042739
888
889# Flag to apply erratum 2041909 workaround during reset. This erratum applies
890# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
891# present in r0p0 and r0p1 but there is no workaround for those revisions.
892CPU_FLAG_LIST += ERRATA_A510_2041909
893
Sona Mathew6e864752023-10-12 12:04:53 -0500894# Flag to aply erratum 2080326 workaround during reset. This erratum applies
895# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is
896# also present in r0p0 and r0p1 but there is no workaround for those revisions.
897CPU_FLAG_LIST += ERRATA_A510_2080326
898
Boyan Karatoteve4447632022-11-17 12:01:29 +0000899# Flag to apply erratum 2250311 workaround during reset. This erratum applies
900# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
901CPU_FLAG_LIST += ERRATA_A510_2250311
902
903# Flag to apply erratum 2218950 workaround during reset. This erratum applies
904# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
905CPU_FLAG_LIST += ERRATA_A510_2218950
906
907# Flag to apply erratum 2172148 workaround during reset. This erratum applies
908# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1.
909CPU_FLAG_LIST += ERRATA_A510_2172148
910
911# Flag to apply erratum 2347730 workaround during reset. This erratum applies
912# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU,
913# and is fixed in r1p2.
914CPU_FLAG_LIST += ERRATA_A510_2347730
915
916# Flag to apply erratum 2371937 workaround during reset. This erratum applies
917# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
918CPU_FLAG_LIST += ERRATA_A510_2371937
919
920# Flag to apply erratum 2666669 workaround during reset. This erratum applies
921# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2.
922CPU_FLAG_LIST += ERRATA_A510_2666669
923
924# Flag to apply erratum 2684597 workaround during powerdown. This erratum
925# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the
926# Cortex-A510 cpu and is fixed in r1p3.
927CPU_FLAG_LIST += ERRATA_A510_2684597
928
Sona Mathew4a9ed7a2023-12-09 20:44:56 -0600929# Flag to apply erratum 2630792 workaround during reset. This erratum applies
930# to revisions r0p0, r0p1 of the Cortex-A520 cpu and is still open.
931CPU_FLAG_LIST += ERRATA_A520_2630792
932
Arvind Ram Prakash8d45e302023-12-08 20:19:58 -0600933# Flag to apply erratum 2858100 workaround during reset. This erratum
934# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is still open.
935CPU_FLAG_LIST += ERRATA_A520_2858100
936
Arvind Ram Prakash47010ae2024-08-05 16:04:37 -0500937# Flag to apply erratum 2938996 workaround during reset. This erratum
938# applies to revision r0p0 and r0p1 of the Cortex-A520 cpu and is fixed in r0p2.
939CPU_FLAG_LIST += ERRATA_A520_2938996
940
Bipin Ravi8852fb52023-09-18 16:34:13 -0500941# Flag to apply erratum 2331132 workaround during reset. This erratum applies
942# to revisions r0p0, r0p1 and r0p2. It is still open.
943CPU_FLAG_LIST += ERRATA_V2_2331132
944
Bipin Ravif98185e2023-10-17 19:42:15 -0500945# Flag to apply erratum 2618597 workaround during reset. This erratum applies
946# to revisions r0p0 and r0p1. It is fixed in r0p2.
947CPU_FLAG_LIST += ERRATA_V2_2618597
948
Bipin Ravid36d1672023-10-17 18:35:55 -0500949# Flag to apply erratum 2662553 workaround during reset. This erratum applies
950# to revisions r0p0 and r0p1. It is fixed in r0p2.
951CPU_FLAG_LIST += ERRATA_V2_2662553
952
Sona Mathewab062f02023-03-14 16:50:36 -0500953# Flag to apply erratum 2719103 workaround for non-arm interconnect ip. This
954# erratum applies to revisions r0p0, rop1. Fixed in r0p2.
955CPU_FLAG_LIST += ERRATA_V2_2719103
956
Bipin Ravib0114022023-09-18 17:27:29 -0500957# Flag to apply erratum 2719105 workaround during reset. This erratum applies
958# to revisions r0p0 and r0p1. It is fixed in r0p2.
959CPU_FLAG_LIST += ERRATA_V2_2719105
960
Bipin Ravi58dd1532023-09-18 19:54:41 -0500961# Flag to apply erratum 2743011 workaround during reset. This erratum applies
962# to revisions r0p0 and r0p1. It is fixed in r0p2.
963CPU_FLAG_LIST += ERRATA_V2_2743011
964
Bipin Raviff342642023-09-18 19:28:32 -0500965# Flag to apply erratum 2779510 workaround during reset. This erratum applies
966# to revisions r0p0 and r0p1. It is fixed in r0p2.
967CPU_FLAG_LIST += ERRATA_V2_2779510
968
Moritz Fischer40c81ed2023-07-06 00:01:23 +0000969# Flag to apply erratum 2801372 workaround for all configurations.
970# This erratum applies to revisions r0p0, r0p1. Fixed in r0p2.
971CPU_FLAG_LIST += ERRATA_V2_2801372
972
Bipin Ravi940ebbe2024-02-27 17:49:12 -0600973# Flag to apply erratum 2331818 workaround during reset. This erratum applies
974# to revisions r0p0 and r1p0. It is fixed in r1p1.
975CPU_FLAG_LIST += ERRATA_A715_2331818
976
Harrison Mutai3e3ff292024-01-02 16:55:44 +0000977# Flag to apply erratum 2344187 workaround during reset. This erratum applies
978# to revisions r0p0, and r1p0. It is fixed in r1p1.
979CPU_FLAG_LIST += ERRATA_A715_2344187
980
Sona Mathewb59307e2024-02-20 16:59:45 -0600981# Flag to apply erratum 2413290 workaround during reset. This erratum applies
982# only to revision r1p0. It is fixed in r1p1.
983CPU_FLAG_LIST += ERRATA_A715_2413290
984
Bipin Ravi04c60d52024-02-27 17:34:05 -0600985# Flag to apply erratum 2420947 workaround during reset. This erratum applies
986# only to revision r1p0. It is fixed in r1p1.
987CPU_FLAG_LIST += ERRATA_A715_2420947
988
Bipin Ravi301698e2024-02-27 17:14:22 -0600989# Flag to apply erratum 2429384 workaround during reset. This erratum applies
990# to revision r1p0. There is no workaround for r0p0. It is fixed in r1p1.
991CPU_FLAG_LIST += ERRATA_A715_2429384
992
Bipin Ravi26249512024-01-25 16:18:20 -0600993# Flag to apply erratum 2561034 workaround during reset. This erratum applies
994# only to revision r1p0. It is fixed in r1p1.
995CPU_FLAG_LIST += ERRATA_A715_2561034
996
Bipin Ravi1edbf2a2024-04-10 15:06:11 -0500997# Flag to apply erratum 2728106 workaround during reset. This erratum applies
998# only to revision r0p0, r1p0 and r1p1. It is fixed in r1p2.
999CPU_FLAG_LIST += ERRATA_A715_2728106
1000
Govindraj Raja857cfc22025-01-21 17:00:11 -06001001# Flag to apply erratum 3699560 workaround during context save/restore of
1002# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r1p0, r1p2, r1p3
1003# of the Cortex-A715 cpu and is still open.
1004CPU_FLAG_LIST += ERRATA_A715_3699560
1005
Arvind Ram Prakasha93c69b2024-07-19 15:59:17 -05001006# Flag to apply erratum 2792132 workaround during reset. This erratum applies
1007# to revisions r0p0 and r0p1. It is fixed in r0p2.
1008CPU_FLAG_LIST += ERRATA_A720_2792132
1009
Sona Mathew9d393432024-07-19 18:09:20 -05001010# Flag to apply erratum 2844092 workaround during reset. This erratum applies
1011# to revisions r0p0 and r0p1. It is fixed in r0p2.
1012CPU_FLAG_LIST += ERRATA_A720_2844092
1013
Bipin Ravibaf14742024-03-14 16:52:21 -05001014# Flag to apply erratum 2926083 workaround during reset. This erratum applies
1015# to revisions r0p0 and r0p1. It is fixed in r0p2.
1016CPU_FLAG_LIST += ERRATA_A720_2926083
1017
Bipin Ravi03636f22024-03-12 10:29:16 -05001018# Flag to apply erratum 2940794 workaround during reset. This erratum applies
1019# to revisions r0p0 and r0p1. It is fixed in r0p2.
1020CPU_FLAG_LIST += ERRATA_A720_2940794
1021
Govindraj Raja36b53f92025-01-21 17:12:33 -06001022# Flag to apply erratum 3699561 workaround during context save/restore of
1023# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1, r0p2 of
1024# the Cortex-A720 cpu and is still open.
1025CPU_FLAG_LIST += ERRATA_A720_3699561
1026
Govindraj Raja17b8a8a2025-02-04 16:20:35 +01001027# Flag to apply erratum 3699564 workaround during context save/restore of
1028# ICH_VMCR_EL2 reg. This erratum applies to revisions r0p0, r0p1 of
1029# the Cortex-A725 cpu and is fixed in r0p2
1030CPU_FLAG_LIST += ERRATA_A725_3699564
1031
Boyan Karatoteve4447632022-11-17 12:01:29 +00001032# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0.
1033# Applying the workaround results in higher DSU power consumption on idle.
1034CPU_FLAG_LIST += ERRATA_DSU_798953
1035
1036# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing
Govindraj Raja36b53f92025-01-21 17:12:33 -06001037# the ACP interface and revision < r0p0. Applying the workaround results in
Boyan Karatoteve4447632022-11-17 12:01:29 +00001038# higher DSU power consumption on idle.
1039CPU_FLAG_LIST += ERRATA_DSU_936184
1040
1041# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions
1042# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround
1043# results in higher DSU power consumption on idle.
1044CPU_FLAG_LIST += ERRATA_DSU_2313941
Manish Pandeyf2d6b4e2020-01-24 11:54:44 +00001045
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001046ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0)
johpow0183435632022-01-04 16:15:18 -06001047 ifeq (${WORKAROUND_CVE_2018_3639},0)
1048 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1")
1049 endif
Dimitris Papastamosfe007b22018-05-16 11:36:14 +01001050endif
1051
Boyan Karatoteve4447632022-11-17 12:01:29 +00001052# process all flags
1053$(eval $(call default_zeros, $(CPU_FLAG_LIST)))
1054$(eval $(call add_defines, $(CPU_FLAG_LIST)))
1055$(eval $(call assert_booleans, $(CPU_FLAG_LIST)))
Bipin Ravi7e3273e2021-12-22 14:35:21 -06001056
Douglas Raillarda94cc372017-06-19 15:38:02 +01001057# Errata build flags
1058ifneq (${ERRATA_A53_843419},0)
Douglas Raillardc2b88062017-06-22 14:44:48 +01001059TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419
Douglas Raillarda94cc372017-06-19 15:38:02 +01001060endif
1061
1062ifneq (${ERRATA_A53_835769},0)
1063TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769
Douglas Raillardc2b88062017-06-22 14:44:48 +01001064TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769
Douglas Raillarda94cc372017-06-19 15:38:02 +01001065endif
Manish V Badarkhee1c49332020-08-03 18:43:14 +01001066
1067ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \
1068 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),)
1069ERRATA_SPECULATIVE_AT := 1
1070else
1071ERRATA_SPECULATIVE_AT := 0
1072endif