lkml.org 
[lkml]   [2008]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [1/8] CPA: Fix gbpages support in try_preserve_lage_page
    Date

    Use correct page sizes and masks for GB pages in try_preserve_large_page()

    This prevents a boot hang on a GB capable system with CONFIG_DIRECT_GBPAGES
    enabled.

    Signed-off-by: Andi Kleen <ak@suse.de>

    ---
    arch/x86/mm/pageattr.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    Index: linux/arch/x86/mm/pageattr.c
    ===================================================================
    --- linux.orig/arch/x86/mm/pageattr.c
    +++ linux/arch/x86/mm/pageattr.c
    @@ -278,8 +278,8 @@ try_preserve_large_page(pte_t *kpte, uns
    break;
    #ifdef CONFIG_X86_64
    case PG_LEVEL_1G:
    - psize = PMD_PAGE_SIZE;
    - pmask = PMD_PAGE_MASK;
    + psize = PUD_PAGE_SIZE;
    + pmask = PUD_PAGE_MASK;
    break;
    #endif
    default:

    \
     
     \ /
      Last update: 2008-02-11 10:37    [W:0.043 / U:31.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site