lkml.org 
[lkml]   [2018]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 5/5] powerpc/8xx: Increase number of slices to 64
    Date
    On the 8xx, the minimum slice size is the size of the area
    covered by a single PMD entry, ie 4M in 4K pages mode and 64M in
    16K pages mode.

    This patch increases the number of slices from 16 to 64 on the 8xx.

    Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
    ---
    v4: New

    arch/powerpc/include/asm/nohash/32/slice.h | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/arch/powerpc/include/asm/nohash/32/slice.h b/arch/powerpc/include/asm/nohash/32/slice.h
    index bcb4924f7d22..3deaaea89473 100644
    --- a/arch/powerpc/include/asm/nohash/32/slice.h
    +++ b/arch/powerpc/include/asm/nohash/32/slice.h
    @@ -4,7 +4,7 @@

    #ifdef CONFIG_PPC_MM_SLICES

    -#define SLICE_LOW_SHIFT 28
    +#define SLICE_LOW_SHIFT 26 /* 64 slices */
    #define SLICE_LOW_TOP (0x100000000ull)
    #define SLICE_NUM_LOW (SLICE_LOW_TOP >> SLICE_LOW_SHIFT)
    #define GET_LOW_SLICE_INDEX(addr) ((addr) >> SLICE_LOW_SHIFT)
    --
    2.13.3
    \
     
     \ /
      Last update: 2018-02-10 13:55    [W:3.283 / U:0.140 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site