Re: [PATCH -v2 2/2] arm64, tlbflush: don't TLBI broadcast if page reused in write fault
From: Barry Song
Date: Wed Oct 22 2025 - 05:55:17 EST
On Wed, Oct 22, 2025 at 10:46 PM Huang, Ying
<ying.huang@xxxxxxxxxxxxxxxxx> wrote:
> >
> > I agree. Yet the ish barrier can still avoid the page faults during CPU0's PTL.
>
> IIUC, you think that dsb(ish) compared with dsb(nsh) can accelerate
> memory writing (visible to other CPUs). TBH, I suspect that this is the
> case.
Why? In any case, nsh is not a smp domain.
I believe a dmb(ishst) is sufficient to ensure that the new PTE writes
are visible
to other CPUs. I’m not quite sure why the current flush code uses dsb(ish);
it seems like overkill.
Thanks
Barry