Hi Julien, On 12/12/2022 10:55, Julien Grall wrote: > > > From: Julien Grall <[email protected]> > > Looking at the Neoverse N1 errata document, it is not clear to me > why the TLBI repeat workaround is not applied for TLB flush by VA. > > The TBL flush by VA helpers are used in flush_xen_tlb_range_va_local() > and flush_xen_tlb_range_va(). So if the range size if a fixed size smaller > than a PAGE_SIZE, it would be possible that the compiler remove the loop > and therefore replicate the sequence described in the erratum 1286807. > > So the TLBI repeat workaround should also be applied for the TLB flush > by VA helpers. > > Fixes: 22e323d115d8 ("xen/arm: Add workaround for Cortex-A76/Neoverse-N1 > erratum #1286807") > Signed-off-by: Julien Grall <[email protected]> Reviewed-by: Michal Orzel <[email protected]>
~Michal
