Thread (38 messages) flat view 38 messages, 4 authors, 2016-02-26

Re: [PATCH V4 08/18] powerpc/mm: Copy pgalloc (part 1)

From: Aneesh Kumar K.V <hidden>
Date: 2016-02-26 02:22:11

Paul Mackerras [off-list ref] writes:
On Tue, Feb 23, 2016 at 10:18:10AM +0530, Aneesh Kumar K.V wrote:
quoted
This patch make a copy of pgalloc routines for book3s. The idea is to
enable a hash64 copy of these pgalloc routines which can be later
updated to have a radix conditional. Radix introduce a new page table
format with different page table size.

This mostly does:

cp pgalloc-32.h book3s/32/pgalloc.h
cp pgalloc-64.h book3s/64/pgalloc.h
What is the motivation for copying over the 32-bit header?
That was moved, because I was looking to consolidate all book3s headers
under book3s/ and wanted to move pgalloc-64.h to book3s.
Regarding the 64-bit header, I don't see anything in it that will need
to be changed for radix other than making P{G,U,M}D_INDEX_SIZE be
variables rather than constants (and possibly have a lowercase name
instead of uppercase).  What other changes are you expecting to make?
I was taking the approach of conditional call rather than variables. Hence
moved them to 64/pgalloc.h so that we can add a static inline for those.

-aneesh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help