[1/3] powerpc/mm/radix: Update pte update sequence for pte clear case
patch-notifications at ellerman.id.au
Thu Feb 16 16:59:47 AEDT 2017
On Thu, 2017-02-09 at 02:58:19 UTC, "Aneesh Kumar K.V" wrote:
> In the kernel we do follow the below sequence in different code paths.
> pte = ptep_get_clear(ptep)
> set_pte_at(ptep, pte)
> We do that for mremap, autonuma protection update and softdirty clearing. This
> implies our optimization to skip a tlb flush when clearing a pte update is
> not valid, because for DD1 system that followup set_pte_at will be done witout
> doing the required tlbflush. Fix that by always doing the dd1 style pte update
> irrespective of new_pte value. In a later patch we will optimize the application
> exit case.
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
> Tested-by: Michael Neuling <mikey at neuling.org>
Series applied to powerpc next, thanks.
More information about the Linuxppc-dev