From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id C3F2767BB0 for ; Thu, 7 Sep 2006 05:46:23 +1000 (EST) Date: Wed, 6 Sep 2006 14:34:41 -0500 From: Olof Johansson To: paulus@samba.org, anton@samba.org Subject: [patch 1/5] [v3] powerpc: Reduce default cacheline size to 64 bytes Message-ID: <20060906143441.3b0f2397@localhost.localdomain> In-Reply-To: <20060906143305.05b54abb@localhost.localdomain> References: <20060906143305.05b54abb@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reduce default cacheline size on 64-bit powerpc from 128 bytes to 64. This is the architected minimum. In most cases we'll still end up using cache line information from the device tree, but defaults are used during early boot and doing a few dcbst/icbi's too many there won't do any harm. Signed-off-by: Olof Johansson Index: merge/arch/powerpc/kernel/setup_64.c =================================================================== --- merge.orig/arch/powerpc/kernel/setup_64.c +++ merge/arch/powerpc/kernel/setup_64.c @@ -78,10 +78,10 @@ u64 ppc64_pft_size; * before we've read this from the device tree. */ struct ppc64_caches ppc64_caches = { - .dline_size = 0x80, - .log_dline_size = 7, - .iline_size = 0x80, - .log_iline_size = 7 + .dline_size = 0x40, + .log_dline_size = 6, + .iline_size = 0x40, + .log_iline_size = 6 }; EXPORT_SYMBOL_GPL(ppc64_caches); Index: merge/arch/powerpc/kernel/head_64.S =================================================================== --- merge.orig/arch/powerpc/kernel/head_64.S +++ merge/arch/powerpc/kernel/head_64.S @@ -1748,7 +1748,7 @@ _STATIC(__after_prom_start) _GLOBAL(copy_and_flush) addi r5,r5,-8 addi r6,r6,-8 -4: li r0,16 /* Use the least common */ +4: li r0,8 /* Use the smallest common */ /* denominator cache line */ /* size. This results in */ /* extra cache line flushes */