On Fri, Jul 30, 2010 at 07:48:00AM -0500, Christoph Lameter wrote:
Looking at vmemmap sparsemem, we need to fix it as the page table
allocation in there bypasses the arch defined page table setup.
This causes a problem if you have 256-entry L2 page tables with no
room for the additional Linux VM PTE support bits (such as young,
dirty, etc), and need to glue two 256-entry L2 hardware page tables
plus a Linux version to store its accounting in each page. See
arch/arm/include/asm/pgalloc.h.
So this causes a problem with vmemmap:
pte_t entry;
void *p = vmemmap_alloc_block_buf(PAGE_SIZE, node);
if (!p)
return NULL;
entry = pfn_pte(__pa(p) >> PAGE_SHIFT, PAGE_KERNEL);
Are you willing for this stuff to be replaced by architectures as
necessary?
--