[PATCH v2] powerpc/mm: Avoid calling arch_enter/leave_lazy_mmu() in set_ptes
Michael Ellerman
patch-notifications at ellerman.id.au
Fri Oct 27 20:46:51 AEDT 2023
On Tue, 24 Oct 2023 20:06:04 +0530, Aneesh Kumar K.V wrote:
> With commit 9fee28baa601 ("powerpc: implement the new page table range
> API") we added set_ptes to powerpc architecture. The implementation
> included calling arch_enter/leave_lazy_mmu() calls.
>
> The patch removes the usage of arch_enter/leave_lazy_mmu() because
> set_pte is not supposed to be used when updating a pte entry. Powerpc
> architecture uses this rule to skip the expensive tlb invalidate which
> is not needed when you are setting up the pte for the first time. See
> commit 56eecdb912b5 ("mm: Use ptep/pmdp_set_numa() for updating
> _PAGE_NUMA bit") for more details
>
> [...]
Applied to powerpc/fixes.
[1/1] powerpc/mm: Avoid calling arch_enter/leave_lazy_mmu() in set_ptes
https://git.kernel.org/powerpc/c/47b8def9358c5eb888e78b24b7e5b7f2e2e97b8e
cheers
More information about the Linuxppc-dev
mailing list