1# 2# Copyright (c) 2014-2023, Arm Limited and Contributors. All rights reserved. 3# Copyright (c) 2020-2022, NVIDIA Corporation. All rights reserved. 4# 5# SPDX-License-Identifier: BSD-3-Clause 6# 7 8include ${MAKE_HELPERS_DIRECTORY}$/build_macros.mk 9 10# Cortex A57 specific optimisation to skip L1 cache flush when 11# cluster is powered down. 12CPU_FLAG_LIST += SKIP_A57_L1_FLUSH_PWR_DWN 13 14# Flag to disable the cache non-temporal hint. 15# It is enabled by default. 16A53_DISABLE_NON_TEMPORAL_HINT ?=1 17CPU_FLAG_LIST += A53_DISABLE_NON_TEMPORAL_HINT 18 19# Flag to disable the cache non-temporal hint. 20# It is enabled by default. 21A57_DISABLE_NON_TEMPORAL_HINT ?=1 22CPU_FLAG_LIST += A57_DISABLE_NON_TEMPORAL_HINT 23 24# Flag to enable higher performance non-cacheable load forwarding. 25# It is disabled by default. 26CPU_FLAG_LIST += A57_ENABLE_NONCACHEABLE_LOAD_FWD 27 28WORKAROUND_CVE_2017_5715 ?=1 29CPU_FLAG_LIST += WORKAROUND_CVE_2017_5715 30WORKAROUND_CVE_2018_3639 ?=1 31CPU_FLAG_LIST += WORKAROUND_CVE_2018_3639 32CPU_FLAG_LIST += DYNAMIC_WORKAROUND_CVE_2018_3639 33WORKAROUND_CVE_2022_23960 ?=1 34CPU_FLAG_LIST += WORKAROUND_CVE_2022_23960 35 36# Flags to indicate internal or external Last level cache 37# By default internal 38CPU_FLAG_LIST += NEOVERSE_Nx_EXTERNAL_LLC 39 40# CPU Errata Build flags. 41# These should be enabled by the platform if the erratum workaround needs to be 42# applied. 43 44# Flag to apply erratum 794073 workaround when disabling mmu. 45CPU_FLAG_LIST += ERRATA_A9_794073 46 47# Flag to apply erratum 816470 workaround during power down. This erratum 48# applies only to revision >= r3p0 of the Cortex A15 cpu. 49CPU_FLAG_LIST += ERRATA_A15_816470 50 51# Flag to apply erratum 827671 workaround during reset. This erratum applies 52# only to revision >= r3p0 of the Cortex A15 cpu. 53CPU_FLAG_LIST += ERRATA_A15_827671 54 55# Flag to apply erratum 852421 workaround during reset. This erratum applies 56# only to revision <= r1p2 of the Cortex A17 cpu. 57CPU_FLAG_LIST += ERRATA_A17_852421 58 59# Flag to apply erratum 852423 workaround during reset. This erratum applies 60# only to revision <= r1p2 of the Cortex A17 cpu. 61CPU_FLAG_LIST += ERRATA_A17_852423 62 63# Flag to apply erratum 855472 workaround during reset. This erratum applies 64# only to revision r0p0 of the Cortex A35 cpu. 65CPU_FLAG_LIST += ERRATA_A35_855472 66 67# Flag to apply erratum 819472 workaround during reset. This erratum applies 68# only to revision <= r0p1 of the Cortex A53 cpu. 69CPU_FLAG_LIST += ERRATA_A53_819472 70 71# Flag to apply erratum 824069 workaround during reset. This erratum applies 72# only to revision <= r0p2 of the Cortex A53 cpu. 73CPU_FLAG_LIST += ERRATA_A53_824069 74 75# Flag to apply erratum 826319 workaround during reset. This erratum applies 76# only to revision <= r0p2 of the Cortex A53 cpu. 77CPU_FLAG_LIST += ERRATA_A53_826319 78 79# Flag to apply erratum 827319 workaround during reset. This erratum applies 80# only to revision <= r0p2 of the Cortex A53 cpu. 81CPU_FLAG_LIST += ERRATA_A53_827319 82 83# Flag to apply erratum 835769 workaround at compile and link time. This 84# erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this 85# workaround can lead the linker to create "*.stub" sections. 86CPU_FLAG_LIST += ERRATA_A53_835769 87 88# Flag to apply erratum 836870 workaround during reset. This erratum applies 89# only to revision <= r0p3 of the Cortex A53 cpu. From r0p4 and onwards, this 90# erratum workaround is enabled by default in hardware. 91CPU_FLAG_LIST += ERRATA_A53_836870 92 93# Flag to apply erratum 843419 workaround at link time. 94# This erratum applies to revision <= r0p4 of the Cortex A53 cpu. Enabling this 95# workaround could lead the linker to emit "*.stub" sections which are 4kB 96# aligned. 97CPU_FLAG_LIST += ERRATA_A53_843419 98 99# Flag to apply errata 855873 during reset. This errata applies to all 100# revisions of the Cortex A53 CPU, but this firmware workaround only works 101# for revisions r0p3 and higher. Earlier revisions are taken care 102# of by the rich OS. 103CPU_FLAG_LIST += ERRATA_A53_855873 104 105# Flag to apply erratum 1530924 workaround during reset. This erratum applies 106# to all revisions of Cortex A53 cpu. 107CPU_FLAG_LIST += ERRATA_A53_1530924 108 109# Flag to apply erratum 768277 workaround during reset. This erratum applies 110# only to revision r0p0 of the Cortex A55 cpu. 111CPU_FLAG_LIST += ERRATA_A55_768277 112 113# Flag to apply erratum 778703 workaround during reset. This erratum applies 114# only to revision r0p0 of the Cortex A55 cpu. 115CPU_FLAG_LIST += ERRATA_A55_778703 116 117# Flag to apply erratum 798797 workaround during reset. This erratum applies 118# only to revision r0p0 of the Cortex A55 cpu. 119CPU_FLAG_LIST += ERRATA_A55_798797 120 121# Flag to apply erratum 846532 workaround during reset. This erratum applies 122# only to revision <= r0p1 of the Cortex A55 cpu. 123CPU_FLAG_LIST += ERRATA_A55_846532 124 125# Flag to apply erratum 903758 workaround during reset. This erratum applies 126# only to revision <= r0p1 of the Cortex A55 cpu. 127CPU_FLAG_LIST += ERRATA_A55_903758 128 129# Flag to apply erratum 1221012 workaround during reset. This erratum applies 130# only to revision <= r1p0 of the Cortex A55 cpu. 131CPU_FLAG_LIST += ERRATA_A55_1221012 132 133# Flag to apply erratum 1530923 workaround during reset. This erratum applies 134# to all revisions of Cortex A55 cpu. 135CPU_FLAG_LIST += ERRATA_A55_1530923 136 137# Flag to apply erratum 806969 workaround during reset. This erratum applies 138# only to revision r0p0 of the Cortex A57 cpu. 139CPU_FLAG_LIST += ERRATA_A57_806969 140 141# Flag to apply erratum 813419 workaround during reset. This erratum applies 142# only to revision r0p0 of the Cortex A57 cpu. 143CPU_FLAG_LIST += ERRATA_A57_813419 144 145# Flag to apply erratum 813420 workaround during reset. This erratum applies 146# only to revision r0p0 of the Cortex A57 cpu. 147CPU_FLAG_LIST += ERRATA_A57_813420 148 149# Flag to apply erratum 814670 workaround during reset. This erratum applies 150# only to revision r0p0 of the Cortex A57 cpu. 151CPU_FLAG_LIST += ERRATA_A57_814670 152 153# Flag to apply erratum 817169 workaround during power down. This erratum 154# applies only to revision <= r0p1 of the Cortex A57 cpu. 155CPU_FLAG_LIST += ERRATA_A57_817169 156 157# Flag to apply erratum 826974 workaround during reset. This erratum applies 158# only to revision <= r1p1 of the Cortex A57 cpu. 159CPU_FLAG_LIST += ERRATA_A57_826974 160 161# Flag to apply erratum 826977 workaround during reset. This erratum applies 162# only to revision <= r1p1 of the Cortex A57 cpu. 163CPU_FLAG_LIST += ERRATA_A57_826977 164 165# Flag to apply erratum 828024 workaround during reset. This erratum applies 166# only to revision <= r1p1 of the Cortex A57 cpu. 167CPU_FLAG_LIST += ERRATA_A57_828024 168 169# Flag to apply erratum 829520 workaround during reset. This erratum applies 170# only to revision <= r1p2 of the Cortex A57 cpu. 171CPU_FLAG_LIST += ERRATA_A57_829520 172 173# Flag to apply erratum 833471 workaround during reset. This erratum applies 174# only to revision <= r1p2 of the Cortex A57 cpu. 175CPU_FLAG_LIST += ERRATA_A57_833471 176 177# Flag to apply erratum 855972 workaround during reset. This erratum applies 178# only to revision <= r1p3 of the Cortex A57 cpu. 179CPU_FLAG_LIST += ERRATA_A57_859972 180 181# Flag to apply erratum 1319537 workaround during reset. This erratum applies 182# to all revisions of Cortex A57 cpu. 183CPU_FLAG_LIST += ERRATA_A57_1319537 184 185# Flag to apply erratum 855971 workaround during reset. This erratum applies 186# only to revision <= r0p3 of the Cortex A72 cpu. 187CPU_FLAG_LIST += ERRATA_A72_859971 188 189# Flag to apply erratum 1319367 workaround during reset. This erratum applies 190# to all revisions of Cortex A72 cpu. 191CPU_FLAG_LIST += ERRATA_A72_1319367 192 193# Flag to apply erratum 852427 workaround during reset. This erratum applies 194# only to revision r0p0 of the Cortex A73 cpu. 195CPU_FLAG_LIST += ERRATA_A73_852427 196 197# Flag to apply erratum 855423 workaround during reset. This erratum applies 198# only to revision <= r0p1 of the Cortex A73 cpu. 199CPU_FLAG_LIST += ERRATA_A73_855423 200 201# Flag to apply erratum 764081 workaround during reset. This erratum applies 202# only to revision <= r0p0 of the Cortex A75 cpu. 203CPU_FLAG_LIST += ERRATA_A75_764081 204 205# Flag to apply erratum 790748 workaround during reset. This erratum applies 206# only to revision <= r0p0 of the Cortex A75 cpu. 207CPU_FLAG_LIST += ERRATA_A75_790748 208 209# Flag to apply erratum 1073348 workaround during reset. This erratum applies 210# only to revision <= r1p0 of the Cortex A76 cpu. 211CPU_FLAG_LIST += ERRATA_A76_1073348 212 213# Flag to apply erratum 1130799 workaround during reset. This erratum applies 214# only to revision <= r2p0 of the Cortex A76 cpu. 215CPU_FLAG_LIST += ERRATA_A76_1130799 216 217# Flag to apply erratum 1220197 workaround during reset. This erratum applies 218# only to revision <= r2p0 of the Cortex A76 cpu. 219CPU_FLAG_LIST += ERRATA_A76_1220197 220 221# Flag to apply erratum 1257314 workaround during reset. This erratum applies 222# only to revision <= r3p0 of the Cortex A76 cpu. 223CPU_FLAG_LIST += ERRATA_A76_1257314 224 225# Flag to apply erratum 1262606 workaround during reset. This erratum applies 226# only to revision <= r3p0 of the Cortex A76 cpu. 227CPU_FLAG_LIST += ERRATA_A76_1262606 228 229# Flag to apply erratum 1262888 workaround during reset. This erratum applies 230# only to revision <= r3p0 of the Cortex A76 cpu. 231CPU_FLAG_LIST += ERRATA_A76_1262888 232 233# Flag to apply erratum 1275112 workaround during reset. This erratum applies 234# only to revision <= r3p0 of the Cortex A76 cpu. 235CPU_FLAG_LIST += ERRATA_A76_1275112 236 237# Flag to apply erratum 1286807 workaround during reset. This erratum applies 238# only to revision <= r3p0 of the Cortex A76 cpu. 239CPU_FLAG_LIST += ERRATA_A76_1286807 240 241# Flag to apply erratum 1791580 workaround during reset. This erratum applies 242# only to revision <= r4p0 of the Cortex A76 cpu. 243CPU_FLAG_LIST += ERRATA_A76_1791580 244 245# Flag to apply erratum 1165522 workaround during reset. This erratum applies 246# to all revisions of Cortex A76 cpu. 247CPU_FLAG_LIST += ERRATA_A76_1165522 248 249# Flag to apply erratum 1868343 workaround during reset. This erratum applies 250# only to revision <= r4p0 of the Cortex A76 cpu. 251CPU_FLAG_LIST += ERRATA_A76_1868343 252 253# Flag to apply erratum 1946160 workaround during reset. This erratum applies 254# only to revisions r3p0 - r4p1 of the Cortex A76 cpu. 255CPU_FLAG_LIST += ERRATA_A76_1946160 256 257# Flag to apply erratum 2743102 workaround during powerdown. This erratum 258# applies to all revisions <= r4p1 of the Cortex A76 cpu and is still open. 259CPU_FLAG_LIST += ERRATA_A76_2743102 260 261# Flag to apply erratum 1508412 workaround during reset. This erratum applies 262# only to revision <= r1p0 of the Cortex A77 cpu. 263CPU_FLAG_LIST += ERRATA_A77_1508412 264 265# Flag to apply erratum 1925769 workaround during reset. This erratum applies 266# only to revision <= r1p1 of the Cortex A77 cpu. 267CPU_FLAG_LIST += ERRATA_A77_1925769 268 269# Flag to apply erratum 1946167 workaround during reset. This erratum applies 270# only to revision <= r1p1 of the Cortex A77 cpu. 271CPU_FLAG_LIST += ERRATA_A77_1946167 272 273# Flag to apply erratum 1791578 workaround during reset. This erratum applies 274# to revisions r0p0, r1p0, and r1p1, it is still open. 275CPU_FLAG_LIST += ERRATA_A77_1791578 276 277# Flag to apply erratum 2356587 workaround during reset. This erratum applies 278# to revisions r0p0, r1p0, and r1p1, it is still open. 279CPU_FLAG_LIST += ERRATA_A77_2356587 280 281# Flag to apply erratum 1800714 workaround during reset. This erratum applies 282# to revisions <= r1p1 of the Cortex A77 cpu. 283CPU_FLAG_LIST += ERRATA_A77_1800714 284 285# Flag to apply erratum 2743100 workaround during power down. This erratum 286# applies to revisions r0p0, r1p0, and r1p1, it is still open. 287CPU_FLAG_LIST += ERRATA_A77_2743100 288 289# Flag to apply erratum 1688305 workaround during reset. This erratum applies 290# to revisions r0p0 - r1p0 of the A78 cpu. 291CPU_FLAG_LIST += ERRATA_A78_1688305 292 293# Flag to apply erratum 1941498 workaround during reset. This erratum applies 294# to revisions r0p0, r1p0, and r1p1 of the A78 cpu. 295CPU_FLAG_LIST += ERRATA_A78_1941498 296 297# Flag to apply erratum 1951500 workaround during reset. This erratum applies 298# to revisions r1p0 and r1p1 of the A78 cpu. The issue is present in r0p0 as 299# well but there is no workaround for that revision. 300CPU_FLAG_LIST += ERRATA_A78_1951500 301 302# Flag to apply erratum 1821534 workaround during reset. This erratum applies 303# to revisions r0p0 and r1p0 of the A78 cpu. 304CPU_FLAG_LIST += ERRATA_A78_1821534 305 306# Flag to apply erratum 1952683 workaround during reset. This erratum applies 307# to revision r0p0 of the A78 cpu and was fixed in the revision r1p0. 308CPU_FLAG_LIST += ERRATA_A78_1952683 309 310# Flag to apply erratum 2132060 workaround during reset. This erratum applies 311# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open. 312CPU_FLAG_LIST += ERRATA_A78_2132060 313 314# Flag to apply erratum 2242635 workaround during reset. This erratum applies 315# to revisions r1p0, r1p1, and r1p2 of the A78 cpu and is open. The issue is 316# present in r0p0 as well but there is no workaround for that revision. 317CPU_FLAG_LIST += ERRATA_A78_2242635 318 319# Flag to apply erratum 2376745 workaround during reset. This erratum applies 320# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open. 321CPU_FLAG_LIST += ERRATA_A78_2376745 322 323# Flag to apply erratum 2395406 workaround during reset. This erratum applies 324# to revisions r0p0, r1p0, r1p1, and r1p2 of the A78 cpu. It is still open. 325CPU_FLAG_LIST += ERRATA_A78_2395406 326 327# Flag to apply erratum 2742426 workaround during reset. This erratum 328# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still 329# open. 330CPU_FLAG_LIST += ERRATA_A78_2742426 331 332# Flag to apply erratum 2772019 workaround during powerdown. This erratum 333# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still 334# open. 335CPU_FLAG_LIST += ERRATA_A78_2772019 336 337# Flag to apply erratum 2779479 workaround during reset. This erratum applies 338# to revision r0p0, r1p0, r1p1 and r1p2 of the A78 cpu. It is still open. 339CPU_FLAG_LIST += ERRATA_A78_2779479 340 341# Flag to apply erratum 1941500 workaround during reset. This erratum applies 342# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open. 343CPU_FLAG_LIST += ERRATA_A78_AE_1941500 344 345# Flag to apply erratum 1951502 workaround during reset. This erratum applies 346# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open. 347CPU_FLAG_LIST += ERRATA_A78_AE_1951502 348 349# Flag to apply erratum 2376748 workaround during reset. This erratum applies 350# to revisions r0p0 and r0p1 of the A78 AE cpu. It is still open. 351CPU_FLAG_LIST += ERRATA_A78_AE_2376748 352 353# Flag to apply erratum 2395408 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_2395408 356 357# Flag to apply erratum 1827430 workaround during reset. This erratum applies 358# to revision r0p0 of the A78C cpu. It is fixed in r0p1. 359CPU_FLAG_LIST += ERRATA_A78C_1827430 360 361# Flag to apply erratum 1827440 workaround during reset. This erratum applies 362# to revision r0p0 of the A78C cpu. It is fixed in r0p1. 363CPU_FLAG_LIST += ERRATA_A78C_1827440 364 365# Flag to apply erratum 2132064 workaround during reset. This erratum applies 366# to revisions r0p1 and r0p2 of the A78C cpu. It is still open. 367CPU_FLAG_LIST += ERRATA_A78C_2132064 368 369# Flag to apply erratum 2242638 workaround during reset. This erratum applies 370# to revisions r0p1 and r0p2 of the A78C cpu. It is still open. 371CPU_FLAG_LIST += ERRATA_A78C_2242638 372 373# Flag to apply erratum 2376749 workaround during reset. This erratum applies 374# to revisions r0p1 and r0p2 of the A78C cpu. It is still open. 375CPU_FLAG_LIST += ERRATA_A78C_2376749 376 377# Flag to apply erratum 2395411 workaround during reset. This erratum applies 378# to revisions r0p1 and r0p2 of the A78C cpu. It is still open. 379CPU_FLAG_LIST += ERRATA_A78C_2395411 380 381# Flag to apply erratum 2772121 workaround during powerdown. This erratum 382# applies to revisions r0p0, r0p1 and r0p2 of the A78C cpu. It is still open. 383CPU_FLAG_LIST += ERRATA_A78C_2772121 384 385# Flag to apply erratum 2779484 workaround during reset. This erratum 386# applies to revisions r0p1 and r0p2 of the A78C cpu. It is still open. 387CPU_FLAG_LIST += ERRATA_A78C_2779484 388 389# Flag to apply erratum 1821534 workaround during reset. This erratum applies 390# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1. 391CPU_FLAG_LIST += ERRATA_X1_1821534 392 393# Flag to apply erratum 1688305 workaround during reset. This erratum applies 394# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1. 395CPU_FLAG_LIST += ERRATA_X1_1688305 396 397# Flag to apply erratum 1827429 workaround during reset. This erratum applies 398# to revisions r0p0 - r1p0 of the X1 cpu and fixed in r1p1. 399CPU_FLAG_LIST += ERRATA_X1_1827429 400 401# Flag to apply T32 CLREX workaround during reset. This erratum applies 402# only to r0p0 and r1p0 of the Neoverse N1 cpu. 403CPU_FLAG_LIST += ERRATA_N1_1043202 404 405# Flag to apply erratum 1073348 workaround during reset. This erratum applies 406# only to revision r0p0 and r1p0 of the Neoverse N1 cpu. 407CPU_FLAG_LIST += ERRATA_N1_1073348 408 409# Flag to apply erratum 1130799 workaround during reset. This erratum applies 410# only to revision <= r2p0 of the Neoverse N1 cpu. 411CPU_FLAG_LIST += ERRATA_N1_1130799 412 413# Flag to apply erratum 1165347 workaround during reset. This erratum applies 414# only to revision <= r2p0 of the Neoverse N1 cpu. 415CPU_FLAG_LIST += ERRATA_N1_1165347 416 417# Flag to apply erratum 1207823 workaround during reset. This erratum applies 418# only to revision <= r2p0 of the Neoverse N1 cpu. 419CPU_FLAG_LIST += ERRATA_N1_1207823 420 421# Flag to apply erratum 1220197 workaround during reset. This erratum applies 422# only to revision <= r2p0 of the Neoverse N1 cpu. 423CPU_FLAG_LIST += ERRATA_N1_1220197 424 425# Flag to apply erratum 1257314 workaround during reset. This erratum applies 426# only to revision <= r3p0 of the Neoverse N1 cpu. 427CPU_FLAG_LIST += ERRATA_N1_1257314 428 429# Flag to apply erratum 1262606 workaround during reset. This erratum applies 430# only to revision <= r3p0 of the Neoverse N1 cpu. 431CPU_FLAG_LIST += ERRATA_N1_1262606 432 433# Flag to apply erratum 1262888 workaround during reset. This erratum applies 434# only to revision <= r3p0 of the Neoverse N1 cpu. 435CPU_FLAG_LIST += ERRATA_N1_1262888 436 437# Flag to apply erratum 1275112 workaround during reset. This erratum applies 438# only to revision <= r3p0 of the Neoverse N1 cpu. 439CPU_FLAG_LIST += ERRATA_N1_1275112 440 441# Flag to apply erratum 1315703 workaround during reset. This erratum applies 442# to revisions before r3p1 of the Neoverse N1 cpu. 443CPU_FLAG_LIST += ERRATA_N1_1315703 444 445# Flag to apply erratum 1542419 workaround during reset. This erratum applies 446# to revisions r3p0 - r4p0 of the Neoverse N1 cpu. 447CPU_FLAG_LIST += ERRATA_N1_1542419 448 449# Flag to apply erratum 1868343 workaround during reset. This erratum applies 450# to revision <= r4p0 of the Neoverse N1 cpu. 451CPU_FLAG_LIST += ERRATA_N1_1868343 452 453# Flag to apply erratum 1946160 workaround during reset. This erratum applies 454# to revisions r3p0, r3p1, r4p0, and r4p1 of the Neoverse N1 cpu. The issue 455# exists in revisions r0p0, r1p0, and r2p0 as well but there is no workaround. 456CPU_FLAG_LIST += ERRATA_N1_1946160 457 458# Flag to apply erratum 2743102 workaround during powerdown. This erratum 459# applies to all revisions <= r4p1 of the Neoverse N1 cpu and is still open. 460CPU_FLAG_LIST += ERRATA_N1_2743102 461 462# Flag to apply erratum 1618635 workaround during reset. This erratum applies 463# to revision r0p0 of the Neoverse V1 cpu and was fixed in the revision r1p0. 464CPU_FLAG_LIST += ERRATA_V1_1618635 465 466# Flag to apply erratum 1774420 workaround during reset. This erratum applies 467# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1. 468CPU_FLAG_LIST += ERRATA_V1_1774420 469 470# Flag to apply erratum 1791573 workaround during reset. This erratum applies 471# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1. 472CPU_FLAG_LIST += ERRATA_V1_1791573 473 474# Flag to apply erratum 1852267 workaround during reset. This erratum applies 475# to revisions r0p0 and r1p0 of the Neoverse V1 core, and was fixed in r1p1. 476CPU_FLAG_LIST += ERRATA_V1_1852267 477 478# Flag to apply erratum 1925756 workaround during reset. This needs to be 479# enabled for r0p0, r1p0, and r1p1 of the Neoverse V1 core, it is still open. 480CPU_FLAG_LIST += ERRATA_V1_1925756 481 482# Flag to apply erratum 1940577 workaround during reset. This erratum applies 483# to revisions r1p0 and r1p1 of the Neoverse V1 cpu. 484CPU_FLAG_LIST += ERRATA_V1_1940577 485 486# Flag to apply erratum 1966096 workaround during reset. This erratum applies 487# to revisions r1p0 and r1p1 of the Neoverse V1 CPU and is open. This issue 488# exists in r0p0 as well but there is no workaround for that revision. 489CPU_FLAG_LIST += ERRATA_V1_1966096 490 491# Flag to apply erratum 2139242 workaround during reset. This erratum applies 492# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open. 493CPU_FLAG_LIST += ERRATA_V1_2139242 494 495# Flag to apply erratum 2108267 workaround during reset. This erratum applies 496# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open. 497CPU_FLAG_LIST += ERRATA_V1_2108267 498 499# Flag to apply erratum 2216392 workaround during reset. This erratum applies 500# to revisions r1p0 and r1p1 of the Neoverse V1 cpu and is still open. This 501# issue exists in r0p0 as well but there is no workaround for that revision. 502CPU_FLAG_LIST += ERRATA_V1_2216392 503 504# Flag to apply erratum 2294912 workaround during reset. This erratum applies 505# to revisions r0p0, r1p0, and r1p1 of the Neoverse V1 cpu and is still open. 506CPU_FLAG_LIST += ERRATA_V1_2294912 507 508# Flag to apply erratum 2372203 workaround during reset. This erratum applies 509# to revisions r0p0, r1p0 and r1p1 of the Neoverse V1 cpu and is still open. 510CPU_FLAG_LIST += ERRATA_V1_2372203 511 512# Flag to apply erratum 2743093 workaround during powerdown. This erratum 513# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is 514# still open. 515CPU_FLAG_LIST += ERRATA_V1_2743093 516 517# Flag to apply erratum 2743233 workaround during powerdown. This erratum 518# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is 519# still open. 520CPU_FLAG_LIST += ERRATA_V1_2743233 521 522# Flag to apply erratum 2779461 workaround during powerdown. This erratum 523# applies to revisions r0p0, r1p0, r1p1 and r1p2 of the Neoverse V1 cpu and is 524# still open. 525CPU_FLAG_LIST += ERRATA_V1_2779461 526 527# Flag to apply erratum 1987031 workaround during reset. This erratum applies 528# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open. 529CPU_FLAG_LIST += ERRATA_A710_1987031 530 531# Flag to apply erratum 2081180 workaround during reset. This erratum applies 532# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open. 533CPU_FLAG_LIST += ERRATA_A710_2081180 534 535# Flag to apply erratum 2083908 workaround during reset. This erratum applies 536# to revision r2p0 of the Cortex-A710 cpu and is still open. 537CPU_FLAG_LIST += ERRATA_A710_2083908 538 539# Flag to apply erratum 2058056 workaround during reset. This erratum applies 540# to revisions r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open. 541CPU_FLAG_LIST += ERRATA_A710_2058056 542 543# Flag to apply erratum 2055002 workaround during reset. This erratum applies 544# to revision r1p0, r2p0 of the Cortex-A710 cpu and is still open. 545CPU_FLAG_LIST += ERRATA_A710_2055002 546 547# Flag to apply erratum 2017096 workaround during reset. This erratum applies 548# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is still open. 549CPU_FLAG_LIST += ERRATA_A710_2017096 550 551# Flag to apply erratum 2267065 workaround during reset. This erratum applies 552# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1. 553CPU_FLAG_LIST += ERRATA_A710_2267065 554 555# Flag to apply erratum 2136059 workaround during reset. This erratum applies 556# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1. 557CPU_FLAG_LIST += ERRATA_A710_2136059 558 559# Flag to apply erratum 2147715 workaround during reset. This erratum applies 560# to revision r2p0 of the Cortex-A710 CPU and is fixed in revision r2p1. 561CPU_FLAG_LIST += ERRATA_A710_2147715 562 563# Flag to apply erratum 2216384 workaround during reset. This erratum applies 564# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1. 565CPU_FLAG_LIST += ERRATA_A710_2216384 566 567# Flag to apply erratum 2282622 workaround during reset. This erratum applies 568# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is still 569# open. 570CPU_FLAG_LIST += ERRATA_A710_2282622 571 572# Flag to apply erratum 2291219 workaround during reset. This erratum applies 573# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1. 574CPU_FLAG_LIST += ERRATA_A710_2291219 575 576# Flag to apply erratum 2008768 workaround during reset. This erratum applies 577# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1. 578CPU_FLAG_LIST += ERRATA_A710_2008768 579 580# Flag to apply erratum 2371105 workaround during reset. This erratum applies 581# to revision r0p0, r1p0 and r2p0 of the Cortex-A710 cpu and is fixed in r2p1. 582CPU_FLAG_LIST += ERRATA_A710_2371105 583 584# Flag to apply erratum 2768515 workaround during power down. This erratum 585# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-A710 cpu and is 586# still open. 587CPU_FLAG_LIST += ERRATA_A710_2768515 588 589# Flag to apply erratum 2002655 workaround during reset. This erratum applies 590# to revisions r0p0 of the Neoverse-N2 cpu, it is still open. 591CPU_FLAG_LIST += ERRATA_N2_2002655 592 593# Flag to apply erratum 2067956 workaround during reset. This erratum applies 594# to revision r0p0 of the Neoverse N2 cpu and is still open. 595CPU_FLAG_LIST += ERRATA_N2_2067956 596 597# Flag to apply erratum 2025414 workaround during reset. This erratum applies 598# to revision r0p0 of the Neoverse N2 cpu and is still open. 599CPU_FLAG_LIST += ERRATA_N2_2025414 600 601# Flag to apply erratum 2189731 workaround during reset. This erratum applies 602# to revision r0p0 of the Neoverse N2 cpu and is still open. 603CPU_FLAG_LIST += ERRATA_N2_2189731 604 605# Flag to apply erratum 2138956 workaround during reset. This erratum applies 606# to revision r0p0 of the Neoverse N2 cpu and is still open. 607CPU_FLAG_LIST += ERRATA_N2_2138956 608 609# Flag to apply erratum 2138953 workaround during reset. This erratum applies 610# to revision r0p0 of the Neoverse N2 cpu and is still open. 611CPU_FLAG_LIST += ERRATA_N2_2138953 612 613# Flag to apply erratum 2242415 workaround during reset. This erratum applies 614# to revision r0p0 of the Neoverse N2 cpu and is still open. 615CPU_FLAG_LIST += ERRATA_N2_2242415 616 617# Flag to apply erratum 2138958 workaround during reset. This erratum applies 618# to revision r0p0 of the Neoverse N2 cpu and is still open. 619CPU_FLAG_LIST += ERRATA_N2_2138958 620 621# Flag to apply erratum 2242400 workaround during reset. This erratum applies 622# to revision r0p0 of the Neoverse N2 cpu and is still open. 623CPU_FLAG_LIST += ERRATA_N2_2242400 624 625# Flag to apply erratum 2280757 workaround during reset. This erratum applies 626# to revision r0p0 of the Neoverse N2 cpu and is still open. 627CPU_FLAG_LIST += ERRATA_N2_2280757 628 629# Flag to apply erraturm 2326639 workaroud during powerdown. This erratum 630# applies to revision r0p0 of the Neoverse N2 cpu and is fixed in r0p1. 631CPU_FLAG_LIST += ERRATA_N2_2326639 632 633# Flag to apply erratum 2376738 workaround during reset. This erratum applies 634# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1. 635CPU_FLAG_LIST += ERRATA_N2_2376738 636 637# Flag to apply erratum 2388450 workaround during reset. This erratum applies 638# to revision r0p0 of the Neoverse N2 cpu, it is fixed in r0p1. 639CPU_FLAG_LIST += ERRATA_N2_2388450 640 641# Flag to apply erratum 2743089 workaround during during powerdown. This erratum 642# applies to all revisions <= r0p2 of the Neoverse N2 cpu, it is fixed in r0p3. 643CPU_FLAG_LIST += ERRATA_N2_2743089 644 645# Flag to apply erratum 2002765 workaround during reset. This erratum applies 646# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open. 647CPU_FLAG_LIST += ERRATA_X2_2002765 648 649# Flag to apply erratum 2058056 workaround during reset. This erratum applies 650# to revisions r0p0, r1p0, and r2p0 of the Cortex-X2 cpu and is still open. 651CPU_FLAG_LIST += ERRATA_X2_2058056 652 653# Flag to apply erratum 2083908 workaround during reset. This erratum applies 654# to revision r2p0 of the Cortex-X2 cpu and is still open. 655CPU_FLAG_LIST += ERRATA_X2_2083908 656 657# Flag to apply erratum 2017096 workaround during reset. This erratum applies 658# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in 659# r2p1. 660CPU_FLAG_LIST += ERRATA_X2_2017096 661 662# Flag to apply erratum 2081180 workaround during reset. This erratum applies 663# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in 664# r2p1. 665CPU_FLAG_LIST += ERRATA_X2_2081180 666 667# Flag to apply erratum 2216384 workaround during reset. This erratum applies 668# only to revisions r0p0, r1p0 and r2p0 of the Cortex-X2 cpu, it is fixed in 669# r2p1. 670CPU_FLAG_LIST += ERRATA_X2_2216384 671 672# Flag to apply erratum 2147715 workaround during reset. This erratum applies 673# only to revision r2p0 of the Cortex-X2 cpu, it is fixed in r2p1. 674CPU_FLAG_LIST += ERRATA_X2_2147715 675 676# Flag to apply erratum 2282622 workaround during reset. This erratum applies 677# to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is still 678# open. 679CPU_FLAG_LIST += ERRATA_X2_2282622 680 681# Flag to apply erratum 2371105 workaround during reset. This erratum applies 682# to revision r0p0, r1p0 and r2p0 of the Cortex-X2 cpu and is fixed in r2p1. 683CPU_FLAG_LIST += ERRATA_X2_2371105 684 685# Flag to apply erratum 2768515 workaround during power down. This erratum 686# applies to revision r0p0, r1p0, r2p0 and r2p1 of the Cortex-X2 cpu and is 687# still open. 688CPU_FLAG_LIST += ERRATA_X2_2768515 689 690# Flag to apply erratum 2313909 workaround on powerdown. This erratum applies 691# to revisions r0p0 and r1p0 of the Cortex-X3 cpu, it is fixed in r1p1. 692CPU_FLAG_LIST += ERRATA_X3_2313909 693 694# Flag to apply erratum 2615812 workaround on powerdown. This erratum applies 695# to revisions r0p0, r1p0, r1p1 of the Cortex-X3 cpu, it is still open. 696CPU_FLAG_LIST += ERRATA_X3_2615812 697 698# Flag to apply erratum 1922240 workaround during reset. This erratum applies 699# to revision r0p0 of the Cortex-A510 cpu and is fixed in r0p1. 700CPU_FLAG_LIST += ERRATA_A510_1922240 701 702# Flag to apply erratum 2288014 workaround during reset. This erratum applies 703# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0 of the Cortex-A510 cpu and is 704# fixed in r1p1. 705CPU_FLAG_LIST += ERRATA_A510_2288014 706 707# Flag to apply erratum 2042739 workaround during reset. This erratum applies 708# to revisions r0p0, r0p1 and r0p2 of the Cortex-A510 cpu and is fixed in r0p3. 709CPU_FLAG_LIST += ERRATA_A510_2042739 710 711# Flag to apply erratum 2041909 workaround during reset. This erratum applies 712# to revision r0p2 of the Cortex-A510 cpu and is fixed in r0p3. The issue is 713# present in r0p0 and r0p1 but there is no workaround for those revisions. 714CPU_FLAG_LIST += ERRATA_A510_2041909 715 716# Flag to apply erratum 2250311 workaround during reset. This erratum applies 717# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1. 718CPU_FLAG_LIST += ERRATA_A510_2250311 719 720# Flag to apply erratum 2218950 workaround during reset. This erratum applies 721# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1. 722CPU_FLAG_LIST += ERRATA_A510_2218950 723 724# Flag to apply erratum 2172148 workaround during reset. This erratum applies 725# to revisions r0p0, r0p1, r0p2, r0p3 and r1p0, and is fixed in r1p1. 726CPU_FLAG_LIST += ERRATA_A510_2172148 727 728# Flag to apply erratum 2347730 workaround during reset. This erratum applies 729# to revisions r0p0, r0p1, r0p2, r0p3, r1p0 and r1p1 of the Cortex-A510 CPU, 730# and is fixed in r1p2. 731CPU_FLAG_LIST += ERRATA_A510_2347730 732 733# Flag to apply erratum 2371937 workaround during reset. This erratum applies 734# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2. 735CPU_FLAG_LIST += ERRATA_A510_2371937 736 737# Flag to apply erratum 2666669 workaround during reset. This erratum applies 738# to revisions r0p0, r0p1, r0p2, r0p3, r1p0, and r1p1. It is fixed in r1p2. 739CPU_FLAG_LIST += ERRATA_A510_2666669 740 741# Flag to apply erratum 2684597 workaround during powerdown. This erratum 742# applies to revision r0p0, r0p1, r0p2, r0p3, r1p0, r1p1 and r1p2 of the 743# Cortex-A510 cpu and is fixed in r1p3. 744CPU_FLAG_LIST += ERRATA_A510_2684597 745 746# Flag to apply DSU erratum 798953. This erratum applies to DSUs revision r0p0. 747# Applying the workaround results in higher DSU power consumption on idle. 748CPU_FLAG_LIST += ERRATA_DSU_798953 749 750# Flag to apply DSU erratum 936184. This erratum applies to DSUs containing 751# the ACP interface and revision < r2p0. Applying the workaround results in 752# higher DSU power consumption on idle. 753CPU_FLAG_LIST += ERRATA_DSU_936184 754 755# Flag to apply DSU erratum 2313941. This erratum applies to DSUs revisions 756# r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. Applying the workaround 757# results in higher DSU power consumption on idle. 758CPU_FLAG_LIST += ERRATA_DSU_2313941 759 760ifneq (${DYNAMIC_WORKAROUND_CVE_2018_3639},0) 761 ifeq (${WORKAROUND_CVE_2018_3639},0) 762 $(error "Error: WORKAROUND_CVE_2018_3639 must be 1 if DYNAMIC_WORKAROUND_CVE_2018_3639 is 1") 763 endif 764endif 765 766# process all flags 767$(eval $(call default_zeros, $(CPU_FLAG_LIST))) 768$(eval $(call add_defines, $(CPU_FLAG_LIST))) 769$(eval $(call assert_booleans, $(CPU_FLAG_LIST))) 770 771# Errata build flags 772ifneq (${ERRATA_A53_843419},0) 773TF_LDFLAGS_aarch64 += --fix-cortex-a53-843419 774endif 775 776ifneq (${ERRATA_A53_835769},0) 777TF_CFLAGS_aarch64 += -mfix-cortex-a53-835769 778TF_LDFLAGS_aarch64 += --fix-cortex-a53-835769 779endif 780 781ifneq ($(filter 1,${ERRATA_A53_1530924} ${ERRATA_A55_1530923} \ 782 ${ERRATA_A57_1319537} ${ERRATA_A72_1319367} ${ERRATA_A76_1165522}),) 783ERRATA_SPECULATIVE_AT := 1 784else 785ERRATA_SPECULATIVE_AT := 0 786endif 787