cpu-specific-build-macros.rst 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059
  1. Arm CPU Specific Build Macros
  2. =============================
  3. This document describes the various build options present in the CPU specific
  4. operations framework to enable errata workarounds and to enable optimizations
  5. for a specific CPU on a platform.
  6. Security Vulnerability Workarounds
  7. ----------------------------------
  8. TF-A exports a series of build flags which control which security
  9. vulnerability workarounds should be applied at runtime.
  10. - ``WORKAROUND_CVE_2017_5715``: Enables the security workaround for
  11. `CVE-2017-5715`_. This flag can be set to 0 by the platform if none
  12. of the PEs in the system need the workaround. Setting this flag to 0 provides
  13. no performance benefit for non-affected platforms, it just helps to comply
  14. with the recommendation in the spec regarding workaround discovery.
  15. Defaults to 1.
  16. - ``WORKAROUND_CVE_2018_3639``: Enables the security workaround for
  17. `CVE-2018-3639`_. Defaults to 1. The TF-A project recommends to keep
  18. the default value of 1 even on platforms that are unaffected by
  19. CVE-2018-3639, in order to comply with the recommendation in the spec
  20. regarding workaround discovery.
  21. - ``DYNAMIC_WORKAROUND_CVE_2018_3639``: Enables dynamic mitigation for
  22. `CVE-2018-3639`_. This build option should be set to 1 if the target
  23. platform contains at least 1 CPU that requires dynamic mitigation.
  24. Defaults to 0.
  25. - ``WORKAROUND_CVE_2022_23960``: Enables mitigation for `CVE-2022-23960`_.
  26. This build option should be set to 1 if the target platform contains at
  27. least 1 CPU that requires this mitigation. Defaults to 1.
  28. .. _arm_cpu_macros_errata_workarounds:
  29. CPU Errata Workarounds
  30. ----------------------
  31. TF-A exports a series of build flags which control the errata workarounds that
  32. are applied to each CPU by the reset handler. The errata details can be found
  33. in the CPU specific errata documents published by Arm:
  34. - `Cortex-A53 MPCore Software Developers Errata Notice`_
  35. - `Cortex-A57 MPCore Software Developers Errata Notice`_
  36. - `Cortex-A72 MPCore Software Developers Errata Notice`_
  37. The errata workarounds are implemented for a particular revision or a set of
  38. processor revisions. This is checked by the reset handler at runtime. Each
  39. errata workaround is identified by its ``ID`` as specified in the processor's
  40. errata notice document. The format of the define used to enable/disable the
  41. errata workaround is ``ERRATA_<Processor name>_<ID>``, where the ``Processor name``
  42. is for example ``A57`` for the ``Cortex_A57`` CPU.
  43. Refer to :ref:`firmware_design_cpu_errata_implementation` for information on how to
  44. write errata workaround functions.
  45. All workarounds are disabled by default. The platform is responsible for
  46. enabling these workarounds according to its requirement by defining the
  47. errata workaround build flags in the platform specific makefile. In case
  48. these workarounds are enabled for the wrong CPU revision then the errata
  49. workaround is not applied. In the DEBUG build, this is indicated by
  50. printing a warning to the crash console.
  51. In the current implementation, a platform which has more than 1 variant
  52. with different revisions of a processor has no runtime mechanism available
  53. for it to specify which errata workarounds should be enabled or not.
  54. The value of the build flags is 0 by default, that is, disabled. A value of 1
  55. will enable it.
  56. For Cortex-A9, the following errata build flags are defined :
  57. - ``ERRATA_A9_794073``: This applies errata 794073 workaround to Cortex-A9
  58. CPU. This needs to be enabled for all revisions of the CPU.
  59. For Cortex-A15, the following errata build flags are defined :
  60. - ``ERRATA_A15_816470``: This applies errata 816470 workaround to Cortex-A15
  61. CPU. This needs to be enabled only for revision >= r3p0 of the CPU.
  62. - ``ERRATA_A15_827671``: This applies errata 827671 workaround to Cortex-A15
  63. CPU. This needs to be enabled only for revision >= r3p0 of the CPU.
  64. For Cortex-A17, the following errata build flags are defined :
  65. - ``ERRATA_A17_852421``: This applies errata 852421 workaround to Cortex-A17
  66. CPU. This needs to be enabled only for revision <= r1p2 of the CPU.
  67. - ``ERRATA_A17_852423``: This applies errata 852423 workaround to Cortex-A17
  68. CPU. This needs to be enabled only for revision <= r1p2 of the CPU.
  69. For Cortex-A35, the following errata build flags are defined :
  70. - ``ERRATA_A35_855472``: This applies errata 855472 workaround to Cortex-A35
  71. CPUs. This needs to be enabled only for revision r0p0 of Cortex-A35.
  72. For Cortex-A53, the following errata build flags are defined :
  73. - ``ERRATA_A53_819472``: This applies errata 819472 workaround to all
  74. CPUs. This needs to be enabled only for revision <= r0p1 of Cortex-A53.
  75. - ``ERRATA_A53_824069``: This applies errata 824069 workaround to all
  76. CPUs. This needs to be enabled only for revision <= r0p2 of Cortex-A53.
  77. - ``ERRATA_A53_826319``: This applies errata 826319 workaround to Cortex-A53
  78. CPU. This needs to be enabled only for revision <= r0p2 of the CPU.
  79. - ``ERRATA_A53_827319``: This applies errata 827319 workaround to all
  80. CPUs. This needs to be enabled only for revision <= r0p2 of Cortex-A53.
  81. - ``ERRATA_A53_835769``: This applies erratum 835769 workaround at compile and
  82. link time to Cortex-A53 CPU. This needs to be enabled for some variants of
  83. revision <= r0p4. This workaround can lead the linker to create ``*.stub``
  84. sections.
  85. - ``ERRATA_A53_836870``: This applies errata 836870 workaround to Cortex-A53
  86. CPU. This needs to be enabled only for revision <= r0p3 of the CPU. From
  87. r0p4 and onwards, this errata is enabled by default in hardware. Identical to
  88. ``A53_DISABLE_NON_TEMPORAL_HINT``.
  89. - ``ERRATA_A53_843419``: This applies erratum 843419 workaround at link time
  90. to Cortex-A53 CPU. This needs to be enabled for some variants of revision
  91. <= r0p4. This workaround can lead the linker to emit ``*.stub`` sections
  92. which are 4kB aligned.
  93. - ``ERRATA_A53_855873``: This applies errata 855873 workaround to Cortex-A53
  94. CPUs. Though the erratum is present in every revision of the CPU,
  95. this workaround is only applied to CPUs from r0p3 onwards, which feature
  96. a chicken bit in CPUACTLR_EL1 to enable a hardware workaround.
  97. Earlier revisions of the CPU have other errata which require the same
  98. workaround in software, so they should be covered anyway.
  99. - ``ERRATA_A53_1530924``: This applies errata 1530924 workaround to all
  100. revisions of Cortex-A53 CPU.
  101. For Cortex-A55, the following errata build flags are defined :
  102. - ``ERRATA_A55_768277``: This applies errata 768277 workaround to Cortex-A55
  103. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  104. - ``ERRATA_A55_778703``: This applies errata 778703 workaround to Cortex-A55
  105. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  106. - ``ERRATA_A55_798797``: This applies errata 798797 workaround to Cortex-A55
  107. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  108. - ``ERRATA_A55_846532``: This applies errata 846532 workaround to Cortex-A55
  109. CPU. This needs to be enabled only for revision <= r0p1 of the CPU.
  110. - ``ERRATA_A55_903758``: This applies errata 903758 workaround to Cortex-A55
  111. CPU. This needs to be enabled only for revision <= r0p1 of the CPU.
  112. - ``ERRATA_A55_1221012``: This applies errata 1221012 workaround to Cortex-A55
  113. CPU. This needs to be enabled only for revision <= r1p0 of the CPU.
  114. - ``ERRATA_A55_1530923``: This applies errata 1530923 workaround to all
  115. revisions of Cortex-A55 CPU.
  116. For Cortex-A57, the following errata build flags are defined :
  117. - ``ERRATA_A57_806969``: This applies errata 806969 workaround to Cortex-A57
  118. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  119. - ``ERRATA_A57_813419``: This applies errata 813419 workaround to Cortex-A57
  120. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  121. - ``ERRATA_A57_813420``: This applies errata 813420 workaround to Cortex-A57
  122. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  123. - ``ERRATA_A57_814670``: This applies errata 814670 workaround to Cortex-A57
  124. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  125. - ``ERRATA_A57_817169``: This applies errata 817169 workaround to Cortex-A57
  126. CPU. This needs to be enabled only for revision <= r0p1 of the CPU.
  127. - ``ERRATA_A57_826974``: This applies errata 826974 workaround to Cortex-A57
  128. CPU. This needs to be enabled only for revision <= r1p1 of the CPU.
  129. - ``ERRATA_A57_826977``: This applies errata 826977 workaround to Cortex-A57
  130. CPU. This needs to be enabled only for revision <= r1p1 of the CPU.
  131. - ``ERRATA_A57_828024``: This applies errata 828024 workaround to Cortex-A57
  132. CPU. This needs to be enabled only for revision <= r1p1 of the CPU.
  133. - ``ERRATA_A57_829520``: This applies errata 829520 workaround to Cortex-A57
  134. CPU. This needs to be enabled only for revision <= r1p2 of the CPU.
  135. - ``ERRATA_A57_833471``: This applies errata 833471 workaround to Cortex-A57
  136. CPU. This needs to be enabled only for revision <= r1p2 of the CPU.
  137. - ``ERRATA_A57_859972``: This applies errata 859972 workaround to Cortex-A57
  138. CPU. This needs to be enabled only for revision <= r1p3 of the CPU.
  139. - ``ERRATA_A57_1319537``: This applies errata 1319537 workaround to all
  140. revisions of Cortex-A57 CPU.
  141. For Cortex-A72, the following errata build flags are defined :
  142. - ``ERRATA_A72_859971``: This applies errata 859971 workaround to Cortex-A72
  143. CPU. This needs to be enabled only for revision <= r0p3 of the CPU.
  144. - ``ERRATA_A72_1319367``: This applies errata 1319367 workaround to all
  145. revisions of Cortex-A72 CPU.
  146. For Cortex-A73, the following errata build flags are defined :
  147. - ``ERRATA_A73_852427``: This applies errata 852427 workaround to Cortex-A73
  148. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  149. - ``ERRATA_A73_855423``: This applies errata 855423 workaround to Cortex-A73
  150. CPU. This needs to be enabled only for revision <= r0p1 of the CPU.
  151. For Cortex-A75, the following errata build flags are defined :
  152. - ``ERRATA_A75_764081``: This applies errata 764081 workaround to Cortex-A75
  153. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  154. - ``ERRATA_A75_790748``: This applies errata 790748 workaround to Cortex-A75
  155. CPU. This needs to be enabled only for revision r0p0 of the CPU.
  156. For Cortex-A76, the following errata build flags are defined :
  157. - ``ERRATA_A76_1073348``: This applies errata 1073348 workaround to Cortex-A76
  158. CPU. This needs to be enabled only for revision <= r1p0 of the CPU.
  159. - ``ERRATA_A76_1130799``: This applies errata 1130799 workaround to Cortex-A76
  160. CPU. This needs to be enabled only for revision <= r2p0 of the CPU.
  161. - ``ERRATA_A76_1220197``: This applies errata 1220197 workaround to Cortex-A76
  162. CPU. This needs to be enabled only for revision <= r2p0 of the CPU.
  163. - ``ERRATA_A76_1257314``: This applies errata 1257314 workaround to Cortex-A76
  164. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  165. - ``ERRATA_A76_1262606``: This applies errata 1262606 workaround to Cortex-A76
  166. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  167. - ``ERRATA_A76_1262888``: This applies errata 1262888 workaround to Cortex-A76
  168. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  169. - ``ERRATA_A76_1275112``: This applies errata 1275112 workaround to Cortex-A76
  170. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  171. - ``ERRATA_A76_1791580``: This applies errata 1791580 workaround to Cortex-A76
  172. CPU. This needs to be enabled only for revision <= r4p0 of the CPU.
  173. - ``ERRATA_A76_1165522``: This applies errata 1165522 workaround to all
  174. revisions of Cortex-A76 CPU. This errata is fixed in r3p0 but due to
  175. limitation of errata framework this errata is applied to all revisions
  176. of Cortex-A76 CPU.
  177. - ``ERRATA_A76_1868343``: This applies errata 1868343 workaround to Cortex-A76
  178. CPU. This needs to be enabled only for revision <= r4p0 of the CPU.
  179. - ``ERRATA_A76_1946160``: This applies errata 1946160 workaround to Cortex-A76
  180. CPU. This needs to be enabled only for revisions r3p0 - r4p1 of the CPU.
  181. - ``ERRATA_A76_2743102``: This applies errata 2743102 workaround to Cortex-A76
  182. CPU. This needs to be enabled for all revisions <= r4p1 of the CPU and is
  183. still open.
  184. For Cortex-A77, the following errata build flags are defined :
  185. - ``ERRATA_A77_1508412``: This applies errata 1508412 workaround to Cortex-A77
  186. CPU. This needs to be enabled only for revision <= r1p0 of the CPU.
  187. - ``ERRATA_A77_1925769``: This applies errata 1925769 workaround to Cortex-A77
  188. CPU. This needs to be enabled only for revision <= r1p1 of the CPU.
  189. - ``ERRATA_A77_1946167``: This applies errata 1946167 workaround to Cortex-A77
  190. CPU. This needs to be enabled only for revision <= r1p1 of the CPU.
  191. - ``ERRATA_A77_1791578``: This applies errata 1791578 workaround to Cortex-A77
  192. CPU. This needs to be enabled for r0p0, r1p0, and r1p1, it is still open.
  193. - ``ERRATA_A77_2356587``: This applies errata 2356587 workaround to Cortex-A77
  194. CPU. This needs to be enabled for r0p0, r1p0, and r1p1, it is still open.
  195. - ``ERRATA_A77_1800714``: This applies errata 1800714 workaround to Cortex-A77
  196. CPU. This needs to be enabled for revisions <= r1p1 of the CPU.
  197. - ``ERRATA_A77_2743100``: This applies errata 2743100 workaround to Cortex-A77
  198. CPU. This needs to be enabled for r0p0, r1p0, and r1p1, it is still open.
  199. For Cortex-A78, the following errata build flags are defined :
  200. - ``ERRATA_A78_1688305``: This applies errata 1688305 workaround to Cortex-A78
  201. CPU. This needs to be enabled only for revision r0p0 - r1p0 of the CPU.
  202. - ``ERRATA_A78_1941498``: This applies errata 1941498 workaround to Cortex-A78
  203. CPU. This needs to be enabled for revisions r0p0, r1p0, and r1p1 of the CPU.
  204. - ``ERRATA_A78_1951500``: This applies errata 1951500 workaround to Cortex-A78
  205. CPU. This needs to be enabled for revisions r1p0 and r1p1, r0p0 has the same
  206. issue but there is no workaround for that revision.
  207. - ``ERRATA_A78_1821534``: This applies errata 1821534 workaround to Cortex-A78
  208. CPU. This needs to be enabled for revisions r0p0 and r1p0.
  209. - ``ERRATA_A78_1952683``: This applies errata 1952683 workaround to Cortex-A78
  210. CPU. This needs to be enabled for revision r0p0, it is fixed in r1p0.
  211. - ``ERRATA_A78_2132060``: This applies errata 2132060 workaround to Cortex-A78
  212. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1, and r1p2. It
  213. is still open.
  214. - ``ERRATA_A78_2242635``: This applies errata 2242635 workaround to Cortex-A78
  215. CPU. This needs to be enabled for revisions r1p0, r1p1, and r1p2. The issue
  216. is present in r0p0 but there is no workaround. It is still open.
  217. - ``ERRATA_A78_2376745``: This applies errata 2376745 workaround to Cortex-A78
  218. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1, and r1p2, and
  219. it is still open.
  220. - ``ERRATA_A78_2395406``: This applies errata 2395406 workaround to Cortex-A78
  221. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1, and r1p2, and
  222. it is still open.
  223. - ``ERRATA_A78_2712571``: This applies erratum 2712571 workaround to Cortex-A78
  224. CPU, this erratum affects system configurations that do not use an ARM
  225. interconnect IP. This needs to be enabled for revisions r0p0, r1p0, r1p1
  226. and r1p2 and it is still open.
  227. - ``ERRATA_A78_2742426``: This applies erratum 2742426 workaround to Cortex-A78
  228. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1 and r1p2 and
  229. it is still open.
  230. - ``ERRATA_A78_2772019``: This applies errata 2772019 workaround to Cortex-A78
  231. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1, and r1p2, and
  232. it is still open.
  233. - ``ERRATA_A78_2779479``: This applies erratum 2779479 workaround to Cortex-A78
  234. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1 and r1p2 and
  235. it is still open.
  236. For Cortex-A78AE, the following errata build flags are defined :
  237. - ``ERRATA_A78_AE_1941500`` : This applies errata 1941500 workaround to
  238. Cortex-A78AE CPU. This needs to be enabled for revisions r0p0 and r0p1.
  239. This erratum is still open.
  240. - ``ERRATA_A78_AE_1951502`` : This applies errata 1951502 workaround to
  241. Cortex-A78AE CPU. This needs to be enabled for revisions r0p0 and r0p1. This
  242. erratum is still open.
  243. - ``ERRATA_A78_AE_2376748`` : This applies errata 2376748 workaround to
  244. Cortex-A78AE CPU. This needs to be enabled for revisions r0p0, r0p1 and r0p2.
  245. This erratum is still open.
  246. - ``ERRATA_A78_AE_2395408`` : This applies errata 2395408 workaround to
  247. Cortex-A78AE CPU. This needs to be enabled for revisions r0p0 and r0p1. This
  248. erratum is still open.
  249. - ``ERRATA_A78_AE_2712574`` : This applies erratum 2712574 workaround to
  250. Cortex-A78AE CPU. This erratum affects system configurations that do not use
  251. an ARM interconnect IP. This needs to be enabled for revisions r0p0, r0p1 and
  252. r0p2. This erratum is still open.
  253. For Cortex-A78C, the following errata build flags are defined :
  254. - ``ERRATA_A78C_1827430`` : This applies errata 1827430 workaround to
  255. Cortex-A78C CPU. This needs to be enabled for revision r0p0. The erratum is
  256. fixed in r0p1.
  257. - ``ERRATA_A78C_1827440`` : This applies errata 1827440 workaround to
  258. Cortex-A78C CPU. This needs to be enabled for revision r0p0. The erratum is
  259. fixed in r0p1.
  260. - ``ERRATA_A78C_2132064`` : This applies errata 2132064 workaround to
  261. Cortex-A78C CPU. This needs to be enabled for revisions r0p1, r0p2 and
  262. it is still open.
  263. - ``ERRATA_A78C_2242638`` : This applies errata 2242638 workaround to
  264. Cortex-A78C CPU. This needs to be enabled for revisions r0p1, r0p2 and
  265. it is still open.
  266. - ``ERRATA_A78C_2376749`` : This applies errata 2376749 workaround to
  267. Cortex-A78C CPU. This needs to be enabled for revisions r0p1 and r0p2. This
  268. erratum is still open.
  269. - ``ERRATA_A78C_2395411`` : This applies errata 2395411 workaround to
  270. Cortex-A78C CPU. This needs to be enabled for revisions r0p1 and r0p2. This
  271. erratum is still open.
  272. - ``ERRATA_A78C_2683027`` : This applies errata 2683027 workaround to
  273. Cortex-A78C CPU. This needs to be enabled for revisions r0p1 and r0p2. This
  274. erratum is still open.
  275. - ``ERRATA_A78C_2712575`` : This applies erratum 2712575 workaround to
  276. Cortex-A78C CPU, this erratum affects system configurations that do not use
  277. an ARM interconnect IP. This needs to be enabled for revisions r0p1 and r0p2
  278. and is still open.
  279. - ``ERRATA_A78C_2743232`` : This applies erratum 2743232 workaround to
  280. Cortex-A78C CPU. This needs to be enabled for revisions r0p1 and r0p2.
  281. This erratum is still open.
  282. - ``ERRATA_A78C_2772121`` : This applies errata 2772121 workaround to
  283. Cortex-A78C CPU. This needs to be enabled for revisions r0p0, r0p1 and r0p2.
  284. This erratum is still open.
  285. - ``ERRATA_A78C_2779484`` : This applies errata 2779484 workaround to
  286. Cortex-A78C CPU. This needs to be enabled for revisions r0p1 and r0p2.
  287. This erratum is still open.
  288. For Cortex-X1 CPU, the following errata build flags are defined:
  289. - ``ERRATA_X1_1821534`` : This applies errata 1821534 workaround to Cortex-X1
  290. CPU. This needs to be enabled only for revision <= r1p0 of the CPU.
  291. - ``ERRATA_X1_1688305`` : This applies errata 1688305 workaround to Cortex-X1
  292. CPU. This needs to be enabled only for revision <= r1p0 of the CPU.
  293. - ``ERRATA_X1_1827429`` : This applies errata 1827429 workaround to Cortex-X1
  294. CPU. This needs to be enabled only for revision <= r1p0 of the CPU.
  295. For Neoverse N1, the following errata build flags are defined :
  296. - ``ERRATA_N1_1073348``: This applies errata 1073348 workaround to Neoverse-N1
  297. CPU. This needs to be enabled only for revision r0p0 and r1p0 of the CPU.
  298. - ``ERRATA_N1_1130799``: This applies errata 1130799 workaround to Neoverse-N1
  299. CPU. This needs to be enabled only for revision <= r2p0 of the CPU.
  300. - ``ERRATA_N1_1165347``: This applies errata 1165347 workaround to Neoverse-N1
  301. CPU. This needs to be enabled only for revision <= r2p0 of the CPU.
  302. - ``ERRATA_N1_1207823``: This applies errata 1207823 workaround to Neoverse-N1
  303. CPU. This needs to be enabled only for revision <= r2p0 of the CPU.
  304. - ``ERRATA_N1_1220197``: This applies errata 1220197 workaround to Neoverse-N1
  305. CPU. This needs to be enabled only for revision <= r2p0 of the CPU.
  306. - ``ERRATA_N1_1257314``: This applies errata 1257314 workaround to Neoverse-N1
  307. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  308. - ``ERRATA_N1_1262606``: This applies errata 1262606 workaround to Neoverse-N1
  309. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  310. - ``ERRATA_N1_1262888``: This applies errata 1262888 workaround to Neoverse-N1
  311. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  312. - ``ERRATA_N1_1275112``: This applies errata 1275112 workaround to Neoverse-N1
  313. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  314. - ``ERRATA_N1_1315703``: This applies errata 1315703 workaround to Neoverse-N1
  315. CPU. This needs to be enabled only for revision <= r3p0 of the CPU.
  316. - ``ERRATA_N1_1542419``: This applies errata 1542419 workaround to Neoverse-N1
  317. CPU. This needs to be enabled only for revisions r3p0 - r4p0 of the CPU.
  318. - ``ERRATA_N1_1868343``: This applies errata 1868343 workaround to Neoverse-N1
  319. CPU. This needs to be enabled only for revision <= r4p0 of the CPU.
  320. - ``ERRATA_N1_1946160``: This applies errata 1946160 workaround to Neoverse-N1
  321. CPU. This needs to be enabled for revisions r3p0, r3p1, r4p0, and r4p1, for
  322. revisions r0p0, r1p0, and r2p0 there is no workaround.
  323. - ``ERRATA_N1_2743102``: This applies errata 2743102 workaround to Neoverse-N1
  324. CPU. This needs to be enabled for all revisions <= r4p1 of the CPU and is
  325. still open.
  326. For Neoverse V1, the following errata build flags are defined :
  327. - ``ERRATA_V1_1618635``: This applies errata 1618635 workaround to Neoverse-V1
  328. CPU. This needs to be enabled for revision r0p0 of the CPU, it is fixed in
  329. r1p0.
  330. - ``ERRATA_V1_1774420``: This applies errata 1774420 workaround to Neoverse-V1
  331. CPU. This needs to be enabled only for revisions r0p0 and r1p0, it is fixed
  332. in r1p1.
  333. - ``ERRATA_V1_1791573``: This applies errata 1791573 workaround to Neoverse-V1
  334. CPU. This needs to be enabled only for revisions r0p0 and r1p0, it is fixed
  335. in r1p1.
  336. - ``ERRATA_V1_1852267``: This applies errata 1852267 workaround to Neoverse-V1
  337. CPU. This needs to be enabled only for revisions r0p0 and r1p0, it is fixed
  338. in r1p1.
  339. - ``ERRATA_V1_1925756``: This applies errata 1925756 workaround to Neoverse-V1
  340. CPU. This needs to be enabled for r0p0, r1p0, and r1p1, it is still open.
  341. - ``ERRATA_V1_1940577``: This applies errata 1940577 workaround to Neoverse-V1
  342. CPU. This needs to be enabled only for revision r1p0 and r1p1 of the
  343. CPU.
  344. - ``ERRATA_V1_1966096``: This applies errata 1966096 workaround to Neoverse-V1
  345. CPU. This needs to be enabled for revisions r1p0 and r1p1 of the CPU, the
  346. issue is present in r0p0 as well but there is no workaround for that
  347. revision. It is still open.
  348. - ``ERRATA_V1_2139242``: This applies errata 2139242 workaround to Neoverse-V1
  349. CPU. This needs to be enabled for revisions r0p0, r1p0, and r1p1 of the
  350. CPU. It is still open.
  351. - ``ERRATA_V1_2108267``: This applies errata 2108267 workaround to Neoverse-V1
  352. CPU. This needs to be enabled for revisions r0p0, r1p0, and r1p1 of the CPU.
  353. It is still open.
  354. - ``ERRATA_V1_2216392``: This applies errata 2216392 workaround to Neoverse-V1
  355. CPU. This needs to be enabled for revisions r1p0 and r1p1 of the CPU, the
  356. issue is present in r0p0 as well but there is no workaround for that
  357. revision. It is still open.
  358. - ``ERRATA_V1_2294912``: This applies errata 2294912 workaround to Neoverse-V1
  359. CPU. This needs to be enabled for revisions r0p0, r1p0, and r1p1 and r1p2 of
  360. the CPU.
  361. - ``ERRATA_V1_2348377``: This applies errata 2348377 workaroud to Neoverse-V1
  362. CPU. This needs to be enabled for revisions r0p0, r1p0 and r1p1 of the CPU.
  363. It has been fixed in r1p2.
  364. - ``ERRATA_V1_2372203``: This applies errata 2372203 workaround to Neoverse-V1
  365. CPU. This needs to be enabled for revisions r0p0, r1p0 and r1p1 of the CPU.
  366. It is still open.
  367. - ``ERRATA_V1_2701953``: This applies erratum 2701953 workaround to Neoverse-V1
  368. CPU, this erratum affects system configurations that do not use an ARM
  369. interconnect IP. This needs to be enabled for revisions r0p0, r1p0 and r1p1.
  370. It has been fixed in r1p2.
  371. - ``ERRATA_V1_2743093``: This applies errata 2743093 workaround to Neoverse-V1
  372. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1 and r1p2 of the
  373. CPU. It is still open.
  374. - ``ERRATA_V1_2743233``: This applies erratum 2743233 workaround to Neoverse-V1
  375. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1, and r1p2 of the
  376. CPU. It is still open.
  377. - ``ERRATA_V1_2779461``: This applies erratum 2779461 workaround to Neoverse-V1
  378. CPU. This needs to be enabled for revisions r0p0, r1p0, r1p1, r1p2 of the
  379. CPU. It is still open.
  380. For Neoverse V2, the following errata build flags are defined :
  381. - ``ERRATA_V2_2331132``: This applies errata 2331132 workaround to Neoverse-V2
  382. CPU. This needs to be enabled for revisions r0p0, r0p1 and r0p2. It is still
  383. open.
  384. - ``ERRATA_V2_2618597``: This applies errata 2618597 workaround to Neoverse-V2
  385. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in
  386. r0p2.
  387. - ``ERRATA_V2_2662553``: This applies errata 2662553 workaround to Neoverse-V2
  388. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in
  389. r0p2.
  390. - ``ERRATA_V2_2719103``: This applies errata 2719103 workaround to Neoverse-V2
  391. CPU, this affects system configurations that do not use and ARM interconnect
  392. IP. This needs to be enabled for revisions r0p0 and r0p1. It has been fixed
  393. in r0p2.
  394. - ``ERRATA_V2_2719105``: This applies errata 2719105 workaround to Neoverse-V2
  395. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in
  396. r0p2.
  397. - ``ERRATA_V2_2743011``: This applies errata 2743011 workaround to Neoverse-V2
  398. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in
  399. r0p2.
  400. - ``ERRATA_V2_2779510``: This applies errata 2779510 workaround to Neoverse-V2
  401. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in
  402. r0p2.
  403. - ``ERRATA_V2_2801372``: This applies errata 2801372 workaround to Neoverse-V2
  404. CPU, this affects all configurations. This needs to be enabled for revisions
  405. r0p0 and r0p1. It has been fixed in r0p2.
  406. For Cortex-A710, the following errata build flags are defined :
  407. - ``ERRATA_A710_1987031``: This applies errata 1987031 workaround to
  408. Cortex-A710 CPU. This needs to be enabled only for revisions r0p0, r1p0 and
  409. r2p0 of the CPU. It is still open.
  410. - ``ERRATA_A710_2081180``: This applies errata 2081180 workaround to
  411. Cortex-A710 CPU. This needs to be enabled only for revisions r0p0, r1p0 and
  412. r2p0 of the CPU. It is still open.
  413. - ``ERRATA_A710_2055002``: This applies errata 2055002 workaround to
  414. Cortex-A710 CPU. This needs to be enabled for revisions r1p0, r2p0 of the CPU
  415. and is still open.
  416. - ``ERRATA_A710_2017096``: This applies errata 2017096 workaround to
  417. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  418. of the CPU and is still open.
  419. - ``ERRATA_A710_2083908``: This applies errata 2083908 workaround to
  420. Cortex-A710 CPU. This needs to be enabled for revision r2p0 of the CPU and
  421. is still open.
  422. - ``ERRATA_A710_2058056``: This applies errata 2058056 workaround to
  423. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  424. and r2p1 of the CPU and is still open.
  425. - ``ERRATA_A710_2267065``: This applies errata 2267065 workaround to
  426. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  427. of the CPU and is fixed in r2p1.
  428. - ``ERRATA_A710_2136059``: This applies errata 2136059 workaround to
  429. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  430. of the CPU and is fixed in r2p1.
  431. - ``ERRATA_A710_2147715``: This applies errata 2147715 workaround to
  432. Cortex-A710 CPU. This needs to be enabled for revision r2p0 of the CPU
  433. and is fixed in r2p1.
  434. - ``ERRATA_A710_2216384``: This applies errata 2216384 workaround to
  435. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  436. of the CPU and is fixed in r2p1.
  437. - ``ERRATA_A710_2282622``: This applies errata 2282622 workaround to
  438. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and
  439. r2p1 of the CPU and is still open.
  440. - ``ERRATA_A710_2291219``: This applies errata 2291219 workaround to
  441. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  442. of the CPU and is fixed in r2p1.
  443. - ``ERRATA_A710_2008768``: This applies errata 2008768 workaround to
  444. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  445. of the CPU and is fixed in r2p1.
  446. - ``ERRATA_A710_2371105``: This applies errata 2371105 workaround to
  447. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0
  448. of the CPU and is fixed in r2p1.
  449. - ``ERRATA_A710_2701952``: This applies erratum 2701952 workaround to Cortex-A710
  450. CPU, and applies to system configurations that do not use and ARM
  451. interconnect IP. This needs to be enabled for r0p0, r1p0, r2p0 and r2p1 and
  452. is still open.
  453. - ``ERRATA_A710_2742423``: This applies errata 2742423 workaround to
  454. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and
  455. r2p1 of the CPU and is still open.
  456. - ``ERRATA_A710_2768515``: This applies errata 2768515 workaround to
  457. Cortex-A710 CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and
  458. r2p1 of the CPU and is still open.
  459. - ``ERRATA_A710_2778471``: This applies errata 2778471 workaround to Cortex-A710
  460. CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and r2p1 of the
  461. CPU and is still open.
  462. For Neoverse N2, the following errata build flags are defined :
  463. - ``ERRATA_N2_2002655``: This applies errata 2002655 workaround to Neoverse-N2
  464. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  465. - ``ERRATA_N2_2009478``: This applies errata 2009478 workaround to Neoverse-N2
  466. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  467. - ``ERRATA_N2_2067956``: This applies errata 2067956 workaround to Neoverse-N2
  468. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  469. - ``ERRATA_N2_2025414``: This applies errata 2025414 workaround to Neoverse-N2
  470. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  471. - ``ERRATA_N2_2189731``: This applies errata 2189731 workaround to Neoverse-N2
  472. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  473. - ``ERRATA_N2_2138956``: This applies errata 2138956 workaround to Neoverse-N2
  474. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  475. - ``ERRATA_N2_2138953``: This applies errata 2138953 workaround to Neoverse-N2
  476. CPU. This needs to be enabled for revisions r0p0, r0p1, r0p2, r0p3 and is still open.
  477. - ``ERRATA_N2_2242415``: This applies errata 2242415 workaround to Neoverse-N2
  478. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  479. - ``ERRATA_N2_2138958``: This applies errata 2138958 workaround to Neoverse-N2
  480. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  481. - ``ERRATA_N2_2242400``: This applies errata 2242400 workaround to Neoverse-N2
  482. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  483. - ``ERRATA_N2_2280757``: This applies errata 2280757 workaround to Neoverse-N2
  484. CPU. This needs to be enabled for revision r0p0 of the CPU and is fixed in r0p1.
  485. - ``ERRATA_N2_2326639``: This applies errata 2326639 workaround to Neoverse-N2
  486. CPU. This needs to be enabled for revision r0p0 of the CPU, it is fixed in
  487. r0p1.
  488. - ``ERRATA_N2_2340933``: This applies errata 2340933 workaround to Neoverse-N2
  489. CPU. This needs to be enabled for revision r0p0 of the CPU, it is fixed in
  490. r0p1.
  491. - ``ERRATA_N2_2346952``: This applies errata 2346952 workaround to Neoverse-N2
  492. CPU. This needs to be enabled for revisions r0p0, r0p1 and r0p2 of the CPU,
  493. it is fixed in r0p3.
  494. - ``ERRATA_N2_2376738``: This applies errata 2376738 workaround to Neoverse-N2
  495. CPU. This needs to be enabled for revision r0p0, r0p1, r0p2, r0p3 and is still open.
  496. - ``ERRATA_N2_2388450``: This applies errata 2388450 workaround to Neoverse-N2
  497. CPU. This needs to be enabled for revision r0p0 of the CPU, it is fixed in
  498. r0p1.
  499. - ``ERRATA_N2_2743014``: This applies errata 2743014 workaround to Neoverse-N2
  500. CPU. This needs to be enabled for revisions r0p0, r0p1 and r0p2. It is fixed
  501. in r0p3.
  502. - ``ERRATA_N2_2743089``: This applies errata 2743089 workaround to Neoverse-N2
  503. CPU. This needs to be enabled for revisions r0p0, r0p1 and r0p2. It is fixed
  504. in r0p3.
  505. - ``ERRATA_N2_2728475``: This applies erratum 2728475 workaround to Neoverse-N2
  506. CPU, this erratum affects system configurations that do not use and ARM
  507. interconnect IP. This needs to be enabled for revisions r0p0, r0p1 and r0p2.
  508. It is fixed in r0p3.
  509. - ``ERRATA_N2_2779511``: This applies errata 2779511 workaround to Neoverse-N2
  510. CPU. This needs to be enabled for revisions r0p0, r0p1 and r0p2. It is fixed
  511. in r0p3.
  512. For Cortex-X2, the following errata build flags are defined :
  513. - ``ERRATA_X2_2002765``: This applies errata 2002765 workaround to Cortex-X2
  514. CPU. This needs to be enabled for revisions r0p0, r1p0, and r2p0 of the CPU,
  515. it is still open.
  516. - ``ERRATA_X2_2058056``: This applies errata 2058056 workaround to Cortex-X2
  517. CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and r2p1 of the CPU,
  518. it is still open.
  519. - ``ERRATA_X2_2083908``: This applies errata 2083908 workaround to Cortex-X2
  520. CPU. This needs to be enabled for revision r2p0 of the CPU, it is still open.
  521. - ``ERRATA_X2_2017096``: This applies errata 2017096 workaround to Cortex-X2
  522. CPU. This needs to be enabled only for revisions r0p0, r1p0 and r2p0 of the
  523. CPU, it is fixed in r2p1.
  524. - ``ERRATA_X2_2081180``: This applies errata 2081180 workaround to Cortex-X2
  525. CPU. This needs to be enabled only for revisions r0p0, r1p0 and r2p0 of the
  526. CPU, it is fixed in r2p1.
  527. - ``ERRATA_X2_2216384``: This applies errata 2216384 workaround to Cortex-X2
  528. CPU. This needs to be enabled only for revisions r0p0, r1p0 and r2p0 of the
  529. CPU, it is fixed in r2p1.
  530. - ``ERRATA_X2_2147715``: This applies errata 2147715 workaround to Cortex-X2
  531. CPU. This needs to be enabled only for revision r2p0 of the CPU, it is fixed
  532. in r2p1.
  533. - ``ERRATA_X2_2282622``: This applies errata 2282622 workaround to Cortex-X2
  534. CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and r2p1 of the
  535. CPU and is still open.
  536. - ``ERRATA_X2_2371105``: This applies errata 2371105 workaround to Cortex-X2
  537. CPU. This needs to be enabled for revisions r0p0, r1p0 and r2p0 of the CPU
  538. and is fixed in r2p1.
  539. - ``ERRATA_X2_2701952``: This applies erratum 2701952 workaround to Cortex-X2
  540. CPU and affects system configurations that do not use an ARM interconnect IP.
  541. This needs to be enabled for revisions r0p0, r1p0, r2p0 and r2p1 and is
  542. still open.
  543. - ``ERRATA_X2_2742423``: This applies errata 2742423 workaround to Cortex-X2
  544. CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and r2p1 of the
  545. CPU and is still open.
  546. - ``ERRATA_X2_2768515``: This applies errata 2768515 workaround to Cortex-X2
  547. CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and r2p1 of the
  548. CPU and is still open.
  549. - ``ERRATA_X2_2778471``: This applies errata 2778471 workaround to Cortex-X2
  550. CPU. This needs to be enabled for revisions r0p0, r1p0, r2p0 and r2p1 of the
  551. CPU and it is still open.
  552. For Cortex-X3, the following errata build flags are defined :
  553. - ``ERRATA_X3_2070301``: This applies errata 2070301 workaround to the Cortex-X3
  554. CPU. This needs to be enabled only for revisions r0p0, r1p0, r1p1 and r1p2 of
  555. the CPU and is still open.
  556. - ``ERRATA_X3_2266875``: This applies errata 2266875 workaround to the Cortex-X3
  557. CPU. This needs to be enabled only for revisions r0p0 and r1p0 of the CPU, it
  558. is fixed in r1p1.
  559. - ``ERRATA_X3_2302506``: This applies errata 2302506 workaround to the Cortex-X3
  560. CPU. This needs to be enabled only for revisions r0p0, r1p0 and r1p1, it is
  561. fixed in r1p2.
  562. - ``ERRATA_X3_2313909``: This applies errata 2313909 workaround to
  563. Cortex-X3 CPU. This needs to be enabled only for revisions r0p0 and r1p0
  564. of the CPU, it is fixed in r1p1.
  565. - ``ERRATA_X3_2372204``: This applies errata 2372204 workaround to
  566. Cortex-X3 CPU. This needs to be enabled only for revisions r0p0 and r1p0
  567. of the CPU, it is fixed in r1p1.
  568. - ``ERRATA_X3_2615812``: This applies errata 2615812 workaround to Cortex-X3
  569. CPU. This needs to be enabled only for revisions r0p0, r1p0 and r1p1 of the
  570. CPU, it is fixed in r1p2.
  571. - ``ERRATA_X3_2641945``: This applies errata 2641945 workaround to Cortex-X3
  572. CPU. This needs to be enabled only for revisions r0p0 and r1p0 of the CPU.
  573. It is fixed in r1p1.
  574. - ``ERRATA_X3_2701951``: This applies erratum 2701951 workaround to Cortex-X3
  575. CPU and affects system configurations that do not use an ARM interconnect
  576. IP. This needs to be applied to revisions r0p0, r1p0 and r1p1. It is fixed
  577. in r1p2.
  578. - ``ERRATA_X3_2742421``: This applies errata 2742421 workaround to
  579. Cortex-X3 CPU. This needs to be enabled only for revisions r0p0, r1p0 and
  580. r1p1. It is fixed in r1p2.
  581. - ``ERRATA_X3_2743088``: This applies errata 2743088 workaround to Cortex-X3
  582. CPU. This needs to be enabled only for revisions r0p0, r1p0 and r1p1. It is
  583. fixed in r1p2.
  584. - ``ERRATA_X3_2779509``: This applies errata 2779509 workaround to Cortex-X3
  585. CPU. This needs to be enabled only for revisions r0p0, r1p0 and r1p1 of the
  586. CPU. It is fixed in r1p2.
  587. For Cortex-X4, the following errata build flags are defined :
  588. - ``ERRATA_X4_2701112``: This applies erratum 2701112 workaround to Cortex-X4
  589. CPU and affects system configurations that do not use an Arm interconnect IP.
  590. This needs to be enabled for revisions r0p0 and is fixed in r0p1.
  591. The workaround for this erratum is not implemented in EL3, but the flag can
  592. be enabled/disabled at the platform level. The flag is used when the errata ABI
  593. feature is enabled and can assist the Kernel in the process of
  594. mitigation of the erratum.
  595. - ``ERRATA_X4_2726228``: This applies erratum 2726228 workaround to Cortex-X4
  596. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in
  597. r0p2.
  598. - ``ERRATA_X4_2740089``: This applies errata 2740089 workaround to Cortex-X4
  599. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed
  600. in r0p2.
  601. - ``ERRATA_X4_2763018``: This applies errata 2763018 workaround to Cortex-X4
  602. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in r0p2.
  603. - ``ERRATA_X4_2816013``: This applies errata 2816013 workaround to Cortex-X4
  604. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in r0p2.
  605. - ``ERRATA_X4_2897503``: This applies errata 2897503 workaround to Cortex-X4
  606. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in r0p2.
  607. - ``ERRATA_X4_3076789``: This applies errata 3076789 workaround to Cortex-X4
  608. CPU. This needs to be enabled for revisions r0p0 and r0p1. It is fixed in r0p2.
  609. For Cortex-A510, the following errata build flags are defined :
  610. - ``ERRATA_A510_1922240``: This applies errata 1922240 workaround to
  611. Cortex-A510 CPU. This needs to be enabled only for revision r0p0, it is
  612. fixed in r0p1.
  613. - ``ERRATA_A510_2288014``: This applies errata 2288014 workaround to
  614. Cortex-A510 CPU. This needs to be enabled only for revisions r0p0, r0p1,
  615. r0p2, r0p3 and r1p0, it is fixed in r1p1.
  616. - ``ERRATA_A510_2042739``: This applies errata 2042739 workaround to
  617. Cortex-A510 CPU. This needs to be enabled only for revisions r0p0, r0p1 and
  618. r0p2, it is fixed in r0p3.
  619. - ``ERRATA_A510_2041909``: This applies errata 2041909 workaround to
  620. Cortex-A510 CPU. This needs to be enabled only for revision r0p2 and is fixed
  621. in r0p3. The issue is also present in r0p0 and r0p1 but there is no
  622. workaround for those revisions.
  623. - ``ERRATA_A510_2080326``: This applies errata 2080326 workaround to
  624. Cortex-A510 CPU. This needs to be enabled only for revision r0p2 and is
  625. fixed in r0p3. This issue is also present in r0p0 and r0p1 but there is no
  626. workaround for those revisions.
  627. - ``ERRATA_A510_2250311``: This applies errata 2250311 workaround to
  628. Cortex-A510 CPU. This needs to be enabled for revisions r0p0, r0p1, r0p2,
  629. r0p3 and r1p0, it is fixed in r1p1. This workaround disables MPMM even if
  630. ENABLE_MPMM=1.
  631. - ``ERRATA_A510_2218950``: This applies errata 2218950 workaround to
  632. Cortex-A510 CPU. This needs to be enabled for revisions r0p0, r0p1, r0p2,
  633. r0p3 and r1p0, it is fixed in r1p1.
  634. - ``ERRATA_A510_2172148``: This applies errata 2172148 workaround to
  635. Cortex-A510 CPU. This needs to be enabled for revisions r0p0, r0p1, r0p2,
  636. r0p3 and r1p0, it is fixed in r1p1.
  637. - ``ERRATA_A510_2347730``: This applies errata 2347730 workaround to
  638. Cortex-A510 CPU. This needs to be enabled for revisions r0p0, r0p1, r0p2,
  639. r0p3, r1p0 and r1p1. It is fixed in r1p2.
  640. - ``ERRATA_A510_2371937``: This applies errata 2371937 workaround to
  641. Cortex-A510 CPU. This needs to applied for revisions r0p0, r0p1, r0p2,
  642. r0p3, r1p0, r1p1, and is fixed in r1p2.
  643. - ``ERRATA_A510_2666669``: This applies errata 2666669 workaround to
  644. Cortex-A510 CPU. This needs to applied for revisions r0p0, r0p1, r0p2,
  645. r0p3, r1p0, r1p1. It is fixed in r1p2.
  646. - ``ERRATA_A510_2684597``: This applies erratum 2684597 workaround to
  647. Cortex-A510 CPU. This needs to be applied to revision r0p0, r0p1, r0p2,
  648. r0p3, r1p0, r1p1 and r1p2. It is fixed in r1p3.
  649. For Cortex-A520, the following errata build flags are defined :
  650. - ``ERRATA_A520_2630792``: This applies errata 2630792 workaround to
  651. Cortex-A520 CPU. This needs to applied for revisions r0p0, r0p1 of the
  652. CPU and is still open.
  653. - ``ERRATA_A520_2858100``: This applies errata 2858100 workaround to
  654. Cortex-A520 CPU. This needs to be enabled for revisions r0p0 and r0p1.
  655. It is still open.
  656. - ``ERRATA_A520_2938996``: This applies errata 2938996 workaround to
  657. Cortex-A520 CPU. This needs to be enabled for revisions r0p0 and r0p1.
  658. It is fixed in r0p2.
  659. For Cortex-A715, the following errata build flags are defined :
  660. - ``ERRATA_A715_2331818``: This applies errata 2331818 workaround to
  661. Cortex-A715 CPU. This needs to be enabled for revisions r0p0 and r1p0.
  662. It is fixed in r1p1.
  663. - ``ERRATA_A715_2344187``: This applies errata 2344187 workaround to
  664. Cortex-A715 CPU. This needs to be enabled for revisions r0p0 and r1p0. It is
  665. fixed in r1p1.
  666. - ``ERRATA_A715_2413290``: This applies errata 2413290 workaround to
  667. Cortex-A715 CPU. This needs to be enabled only for revision r1p0 and
  668. when SPE(Statistical profiling extension)=True. The errata is fixed
  669. in r1p1.
  670. - ``ERRATA_A715_2420947``: This applies errata 2420947 workaround to
  671. Cortex-A715 CPU. This needs to be enabled only for revision r1p0.
  672. It is fixed in r1p1.
  673. - ``ERRATA_A715_2429384``: This applies errata 2429384 workaround to
  674. Cortex-A715 CPU. This needs to be enabled for revision r1p0. There is no
  675. workaround for revision r0p0. It is fixed in r1p1.
  676. - ``ERRATA_A715_2561034``: This applies errata 2561034 workaround to
  677. Cortex-A715 CPU. This needs to be enabled only for revision r1p0.
  678. It is fixed in r1p1.
  679. - ``ERRATA_A715_2728106``: This applies errata 2728106 workaround to
  680. Cortex-A715 CPU. This needs to be enabled for revisions r0p0, r1p0
  681. and r1p1. It is fixed in r1p2.
  682. For Cortex-A720, the following errata build flags are defined :
  683. - ``ERRATA_A720_2792132``: This applies errata 2792132 workaround to
  684. Cortex-A720 CPU. This needs to be enabled for revisions r0p0 and r0p1.
  685. It is fixed in r0p2.
  686. - ``ERRATA_A720_2844092``: This applies errata 2844092 workaround to
  687. Cortex-A720 CPU. This needs to be enabled for revisions r0p0 and r0p1.
  688. It is fixed in r0p2.
  689. - ``ERRATA_A720_2926083``: This applies errata 2926083 workaround to
  690. Cortex-A720 CPU. This needs to be enabled for revisions r0p0 and r0p1.
  691. It is fixed in r0p2.
  692. - ``ERRATA_A720_2940794``: This applies errata 2940794 workaround to
  693. Cortex-A720 CPU. This needs to be enabled for revisions r0p0 and r0p1.
  694. It is fixed in r0p2.
  695. DSU Errata Workarounds
  696. ----------------------
  697. Similar to CPU errata, TF-A also implements workarounds for DSU (DynamIQ
  698. Shared Unit) errata. The DSU errata details can be found in the respective Arm
  699. documentation:
  700. - `Arm DSU Software Developers Errata Notice`_.
  701. Each erratum is identified by an ``ID``, as defined in the DSU errata notice
  702. document. Thus, the build flags which enable/disable the errata workarounds
  703. have the format ``ERRATA_DSU_<ID>``. The implementation and application logic
  704. of DSU errata workarounds are similar to `CPU errata workarounds`_.
  705. For DSU errata, the following build flags are defined:
  706. - ``ERRATA_DSU_798953``: This applies errata 798953 workaround for the
  707. affected DSU configurations. This errata applies only for those DSUs that
  708. revision is r0p0 (on r0p1 it is fixed). However, please note that this
  709. workaround results in increased DSU power consumption on idle.
  710. - ``ERRATA_DSU_936184``: This applies errata 936184 workaround for the
  711. affected DSU configurations. This errata applies only for those DSUs that
  712. contain the ACP interface **and** the DSU revision is older than r2p0 (on
  713. r2p0 it is fixed). However, please note that this workaround results in
  714. increased DSU power consumption on idle.
  715. - ``ERRATA_DSU_2313941``: This applies errata 2313941 workaround for the
  716. affected DSU configurations. This errata applies for those DSUs with
  717. revisions r0p0, r1p0, r2p0, r2p1, r3p0, r3p1 and is still open. However,
  718. please note that this workaround results in increased DSU power consumption
  719. on idle.
  720. CPU Specific optimizations
  721. --------------------------
  722. This section describes some of the optimizations allowed by the CPU micro
  723. architecture that can be enabled by the platform as desired.
  724. - ``SKIP_A57_L1_FLUSH_PWR_DWN``: This flag enables an optimization in the
  725. Cortex-A57 cluster power down sequence by not flushing the Level 1 data
  726. cache. The L1 data cache and the L2 unified cache are inclusive. A flush
  727. of the L2 by set/way flushes any dirty lines from the L1 as well. This
  728. is a known safe deviation from the Cortex-A57 TRM defined power down
  729. sequence. Each Cortex-A57 based platform must make its own decision on
  730. whether to use the optimization.
  731. - ``A53_DISABLE_NON_TEMPORAL_HINT``: This flag disables the cache non-temporal
  732. hint. The LDNP/STNP instructions as implemented on Cortex-A53 do not behave
  733. in a way most programmers expect, and will most probably result in a
  734. significant speed degradation to any code that employs them. The Armv8-A
  735. architecture (see Arm DDI 0487A.h, section D3.4.3) allows cores to ignore
  736. the non-temporal hint and treat LDNP/STNP as LDP/STP instead. Enabling this
  737. flag enforces this behaviour. This needs to be enabled only for revisions
  738. <= r0p3 of the CPU and is enabled by default.
  739. - ``A57_DISABLE_NON_TEMPORAL_HINT``: This flag has the same behaviour as
  740. ``A53_DISABLE_NON_TEMPORAL_HINT`` but for Cortex-A57. This needs to be
  741. enabled only for revisions <= r1p2 of the CPU and is enabled by default,
  742. as recommended in section "4.7 Non-Temporal Loads/Stores" of the
  743. `Cortex-A57 Software Optimization Guide`_.
  744. - ''A57_ENABLE_NON_CACHEABLE_LOAD_FWD'': This flag enables non-cacheable
  745. streaming enhancement feature for Cortex-A57 CPUs. Platforms can set
  746. this bit only if their memory system meets the requirement that cache
  747. line fill requests from the Cortex-A57 processor are atomic. Each
  748. Cortex-A57 based platform must make its own decision on whether to use
  749. the optimization. This flag is disabled by default.
  750. - ``NEOVERSE_Nx_EXTERNAL_LLC``: This flag indicates that an external last
  751. level cache(LLC) is present in the system, and that the DataSource field
  752. on the master CHI interface indicates when data is returned from the LLC.
  753. This is used to control how the LL_CACHE* PMU events count.
  754. Default value is 0 (Disabled).
  755. GIC Errata Workarounds
  756. ----------------------
  757. - ``GIC600_ERRATA_WA_2384374``: This flag applies part 2 of errata 2384374
  758. workaround for the affected GIC600 and GIC600-AE implementations. It applies
  759. to implementations of GIC600 and GIC600-AE with revisions less than or equal
  760. to r1p6 and r0p2 respectively. If the platform sets GICV3_SUPPORT_GIC600,
  761. then this flag is enabled; otherwise, it is 0 (Disabled).
  762. --------------
  763. *Copyright (c) 2014-2024, Arm Limited and Contributors. All rights reserved.*
  764. .. _CVE-2017-5715: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5715
  765. .. _CVE-2018-3639: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-3639
  766. .. _CVE-2022-23960: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23960
  767. .. _Cortex-A53 MPCore Software Developers Errata Notice: http://infocenter.arm.com/help/topic/com.arm.doc.epm048406/index.html
  768. .. _Cortex-A57 MPCore Software Developers Errata Notice: http://infocenter.arm.com/help/topic/com.arm.doc.epm049219/index.html
  769. .. _Cortex-A72 MPCore Software Developers Errata Notice: http://infocenter.arm.com/help/topic/com.arm.doc.epm012079/index.html
  770. .. _Cortex-A57 Software Optimization Guide: http://infocenter.arm.com/help/topic/com.arm.doc.uan0015b/Cortex_A57_Software_Optimization_Guide_external.pdf
  771. .. _Arm DSU Software Developers Errata Notice: http://infocenter.arm.com/help/topic/com.arm.doc.epm138168/index.html