cpu-specific-build-macros.rst 50 KB

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