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