@@ -195,6 +195,114 @@ endmenu
195195
196196menu "Kernel Features"
197197
198+ menu "ARM errata workarounds via the alternatives framework"
199+
200+ config ARM64_ERRATUM_826319
201+ bool "Cortex-A53: 826319: System might deadlock if a write cannot complete until read data is accepted"
202+ default y
203+ help
204+ This option adds an alternative code sequence to work around ARM
205+ erratum 826319 on Cortex-A53 parts up to r0p2 with an AMBA 4 ACE or
206+ AXI master interface and an L2 cache.
207+
208+ If a Cortex-A53 uses an AMBA AXI4 ACE interface to other processors
209+ and is unable to accept a certain write via this interface, it will
210+ not progress on read data presented on the read data channel and the
211+ system can deadlock.
212+
213+ The workaround promotes data cache clean instructions to
214+ data cache clean-and-invalidate.
215+ Please note that this does not necessarily enable the workaround,
216+ as it depends on the alternative framework, which will only patch
217+ the kernel if an affected CPU is detected.
218+
219+ If unsure, say Y.
220+
221+ config ARM64_ERRATUM_827319
222+ bool "Cortex-A53: 827319: Data cache clean instructions might cause overlapping transactions to the interconnect"
223+ default y
224+ help
225+ This option adds an alternative code sequence to work around ARM
226+ erratum 827319 on Cortex-A53 parts up to r0p2 with an AMBA 5 CHI
227+ master interface and an L2 cache.
228+
229+ Under certain conditions this erratum can cause a clean line eviction
230+ to occur at the same time as another transaction to the same address
231+ on the AMBA 5 CHI interface, which can cause data corruption if the
232+ interconnect reorders the two transactions.
233+
234+ The workaround promotes data cache clean instructions to
235+ data cache clean-and-invalidate.
236+ Please note that this does not necessarily enable the workaround,
237+ as it depends on the alternative framework, which will only patch
238+ the kernel if an affected CPU is detected.
239+
240+ If unsure, say Y.
241+
242+ config ARM64_ERRATUM_824069
243+ bool "Cortex-A53: 824069: Cache line might not be marked as clean after a CleanShared snoop"
244+ default y
245+ help
246+ This option adds an alternative code sequence to work around ARM
247+ erratum 824069 on Cortex-A53 parts up to r0p2 when it is connected
248+ to a coherent interconnect.
249+
250+ If a Cortex-A53 processor is executing a store or prefetch for
251+ write instruction at the same time as a processor in another
252+ cluster is executing a cache maintenance operation to the same
253+ address, then this erratum might cause a clean cache line to be
254+ incorrectly marked as dirty.
255+
256+ The workaround promotes data cache clean instructions to
257+ data cache clean-and-invalidate.
258+ Please note that this option does not necessarily enable the
259+ workaround, as it depends on the alternative framework, which will
260+ only patch the kernel if an affected CPU is detected.
261+
262+ If unsure, say Y.
263+
264+ config ARM64_ERRATUM_819472
265+ bool "Cortex-A53: 819472: Store exclusive instructions might cause data corruption"
266+ default y
267+ help
268+ This option adds an alternative code sequence to work around ARM
269+ erratum 819472 on Cortex-A53 parts up to r0p1 with an L2 cache
270+ present when it is connected to a coherent interconnect.
271+
272+ If the processor is executing a load and store exclusive sequence at
273+ the same time as a processor in another cluster is executing a cache
274+ maintenance operation to the same address, then this erratum might
275+ cause data corruption.
276+
277+ The workaround promotes data cache clean instructions to
278+ data cache clean-and-invalidate.
279+ Please note that this does not necessarily enable the workaround,
280+ as it depends on the alternative framework, which will only patch
281+ the kernel if an affected CPU is detected.
282+
283+ If unsure, say Y.
284+
285+ config ARM64_ERRATUM_832075
286+ bool "Cortex-A57: 832075: possible deadlock on mixing exclusive memory accesses with device loads"
287+ default y
288+ help
289+ This option adds an alternative code sequence to work around ARM
290+ erratum 832075 on Cortex-A57 parts up to r1p2.
291+
292+ Affected Cortex-A57 parts might deadlock when exclusive load/store
293+ instructions to Write-Back memory are mixed with Device loads.
294+
295+ The workaround is to promote device loads to use Load-Acquire
296+ semantics.
297+ Please note that this does not necessarily enable the workaround,
298+ as it depends on the alternative framework, which will only patch
299+ the kernel if an affected CPU is detected.
300+
301+ If unsure, say Y.
302+
303+ endmenu
304+
305+
198306choice
199307 prompt "Page size"
200308 default ARM64_4K_PAGES
0 commit comments