Re: [RFC PATCH] powerpc/64s: __find_linux_pte synchronization vs pmdp_invalidate

2019-06-03 Thread Christophe Leroy
Le 03/06/2019 à 08:44, Nicholas Piggin a écrit : The pmd_none check does not catch hugepage collapse, nor does the pmd_present check in pmd_trans_huge, because hugepage collapse sets !_PAGE_PRESENT && _PAGE_INVALID (which results in !pmd_none and pmd_present). Aneesh noticed we might need thi

[RFC PATCH] powerpc/64s: __find_linux_pte synchronization vs pmdp_invalidate

2019-06-02 Thread Nicholas Piggin
The pmd_none check does not catch hugepage collapse, nor does the pmd_present check in pmd_trans_huge, because hugepage collapse sets !_PAGE_PRESENT && _PAGE_INVALID (which results in !pmd_none and pmd_present). Aneesh noticed we might need this check as well. --- arch/powerpc/mm/pgtable.c | 15