]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arch/tile: support multiple huge page sizes dynamically
authorChris Metcalf <cmetcalf@tilera.com>
Sun, 1 Apr 2012 18:04:21 +0000 (14:04 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 12 Apr 2012 16:38:27 +0000 (12:38 -0400)
commit8a19a670004f5322fe1c0d63bed85d6d87c19c98
tree1b1ccc28051d5aebbd622016f441acff50f7569f
parent85bb8ecadd3f39c9d4b707a364a91548dc09f881
arch/tile: support multiple huge page sizes dynamically

This change adds support for a new "super" bit in the PTE, using the new
arch_make_huge_pte() method.  The Tilera hypervisor sees the bit set at a
given level of the page table and gangs together 4, 16, or 64 consecutive
pages from that level of the hierarchy to create a larger TLB entry.

One extra "super" page size can be specified at each of the three levels
of the page table hierarchy on tilegx, using the "hugepagesz" argument
on the boot command line.  A new hypervisor API is added to allow Linux
to tell the hypervisor how many PTEs to gang together at each level of
the page table.

To allow pre-allocating huge pages larger than the buddy allocator can
handle, this change modifies the Tilera bootmem support to put all of
memory on tilegx platforms into bootmem.

As part of this change I eliminate the vestigial CONFIG_HIGHPTE support,
which never worked anyway, and eliminate the hv_page_size() API in favor
of the standard vma_kernel_pagesize() API.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
15 files changed:
arch/tile/Kconfig
arch/tile/include/asm/hugetlb.h
arch/tile/include/asm/page.h
arch/tile/include/asm/pgtable.h
arch/tile/include/asm/tlbflush.h
arch/tile/include/hv/hypervisor.h
arch/tile/kernel/hvglue.lds
arch/tile/kernel/proc.c
arch/tile/kernel/setup.c
arch/tile/kernel/tlb.c
arch/tile/mm/fault.c
arch/tile/mm/homecache.c
arch/tile/mm/hugetlbpage.c
arch/tile/mm/init.c
arch/tile/mm/pgtable.c