Re: [PATCH v4 04/19] powerpc: mm: Add p?d_large() definitions
From: Steven Price <steven.price@arm.com>
Date: 2019-03-08 10:50:51
Also in:
linux-mm, linuxppc-dev, lkml
From: Steven Price <steven.price@arm.com>
Date: 2019-03-08 10:50:51
Also in:
linux-mm, linuxppc-dev, lkml
On 08/03/2019 08:37, Mike Rapoport wrote:
On Wed, Mar 06, 2019 at 03:50:16PM +0000, Steven Price wrote:quoted
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For powerpc pmd_large() was already implemented, so hoist it out of the CONFIG_TRANSPARENT_HUGEPAGE condition and implement the other levels. Also since we now have a pmd_large always implemented we can drop the pmd_is_leaf() function. CC: Benjamin Herrenschmidt <benh@kernel.crashing.org> CC: Paul Mackerras <redacted> CC: Michael Ellerman <mpe@ellerman.id.au> CC: linuxppc-dev@lists.ozlabs.org CC: kvm-ppc@vger.kernel.org Signed-off-by: Steven Price <steven.price@arm.com> --- arch/powerpc/include/asm/book3s/64/pgtable.h | 30 ++++++++++++++------There is one more definition of pmd_large() in arch/powerpc/include/asm/pgtable.h
True. That is a #define so will work correctly (it will override the generic version). Since it is only a dummy definition (always returns 0) it could be removed, but that would need to be in a separate patch after the asm-generic versions have been added to avoid breaking bisection. Steve _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel