1. 10 1月, 2014 1 次提交
  2. 23 11月, 2013 1 次提交
  3. 07 12月, 2011 2 次提交
  4. 23 9月, 2011 1 次提交
    • P
      powerpc: Fix hugetlb with CONFIG_PPC_MM_SLICES=y · 25c29f9e
      Paul Mackerras 提交于
      Commit 41151e77 ("powerpc: Hugetlb for BookE") added some
      #ifdef CONFIG_MM_SLICES conditionals to hugetlb_get_unmapped_area()
      and vma_mmu_pagesize().  Unfortunately this is not the correct config
      symbol; it should be CONFIG_PPC_MM_SLICES.  The result is that
      attempting to use hugetlbfs on 64-bit Power server processors results
      in an infinite stack recursion between get_unmapped_area() and
      hugetlb_get_unmapped_area().
      
      This fixes it by changing the #ifdef to use CONFIG_PPC_MM_SLICES
      in those functions and also in book3e_hugetlb_preload().
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      25c29f9e
  5. 20 9月, 2011 1 次提交
    • B
      powerpc: Hugetlb for BookE · 41151e77
      Becky Bruce 提交于
      Enable hugepages on Freescale BookE processors.  This allows the kernel to
      use huge TLB entries to map pages, which can greatly reduce the number of
      TLB misses and the amount of TLB thrashing experienced by applications with
      large memory footprints.  Care should be taken when using this on FSL
      processors, as the number of large TLB entries supported by the core is low
      (16-64) on current processors.
      
      The supported set of hugepage sizes include 4m, 16m, 64m, 256m, and 1g.
      Page sizes larger than the max zone size are called "gigantic" pages and
      must be allocated on the command line (and cannot be deallocated).
      
      This is currently only fully implemented for Freescale 32-bit BookE
      processors, but there is some infrastructure in the code for
      64-bit BooKE.
      Signed-off-by: NBecky Bruce <beckyb@kernel.crashing.org>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      41151e77