[PATCH] ppc64: Fix incorrect initialization of hash table on some pSeries

From: Benjamin Herrenschmidt (benh_at_kernel.crashing.org)
Date: 09/30/04

  • Next message: Olaf Hering: "Re: [PPC64] Improved VSID allocation algorithm"
    To: Andrew Morton <akpm@osdl.org>
    Date:	Thu, 30 Sep 2004 15:39:55 +1000
    
    

    Hi !

    The hash table wasn't fully initialized on some pSeries that had
    the workaround for no batching. Please apply.

    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

    ===== arch/ppc64/mm/hash_native.c 1.18 vs edited =====
    --- 1.18/arch/ppc64/mm/hash_native.c 2004-09-22 14:40:30 +10:00
    +++ edited/arch/ppc64/mm/hash_native.c 2004-09-30 15:34:39 +10:00
    @@ -407,13 +407,13 @@
                     model = get_property(root, "model", NULL);
                     if (!strcmp(model, "CHRP IBM,9076-N81")) {
                             of_node_put(root);
    - return;
    + goto bail;
                     }
                     of_node_put(root);
             }
     #endif /* CONFIG_PPC_PSERIES */
     
             ppc_md.flush_hash_range = native_flush_hash_range;
    -
    + bail:
             htab_finish_init();
     }

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Olaf Hering: "Re: [PPC64] Improved VSID allocation algorithm"

    Relevant Pages