From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966111AbcCPJvj (ORCPT ); Wed, 16 Mar 2016 05:51:39 -0400 Received: from mail.thundersoft.com ([114.242.213.34]:43481 "EHLO mail2.thundersoft.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S964968AbcCPJvg (ORCPT ); Wed, 16 Mar 2016 05:51:36 -0400 X-Greylist: delayed 1139 seconds by postgrey-1.27 at vger.kernel.org; Wed, 16 Mar 2016 05:51:36 EDT From: Ganesh Mahendran To: catalin.marinas@arm.com, will.deacon@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ganesh Mahendran , stable@vger.kernel.org Subject: [PATCH] Revert "arm64: Increase the max granular size" Date: Wed, 16 Mar 2016 17:32:23 +0800 Message-Id: <1458120743-12145-1-git-send-email-opensource.ganesh@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reverts commit 97303480753e ("arm64: Increase the max granular size"). The commit 97303480753e ("arm64: Increase the max granular size") will degrade system performente in some cpus. We test wifi network throughput with iperf on Qualcomm msm8996 CPU: ---------------- run on host: # iperf -s run on device: # iperf -c -t 100 -i 1 ---------------- Test result: ---------------- with commit 97303480753e ("arm64: Increase the max granular size"): 172MBits/sec without commit 97303480753e ("arm64: Increase the max granular size"): 230MBits/sec ---------------- Some module like slab/net will use the L1_CACHE_SHIFT, so if we do not set the parameter correctly, it may affect the system performance. So revert the commit. Cc: stable@vger.kernel.org Signed-off-by: Ganesh Mahendran --- arch/arm64/include/asm/cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/cache.h b/arch/arm64/include/asm/cache.h index 5082b30..bde4499 100644 --- a/arch/arm64/include/asm/cache.h +++ b/arch/arm64/include/asm/cache.h @@ -18,7 +18,7 @@ #include -#define L1_CACHE_SHIFT 7 +#define L1_CACHE_SHIFT 6 #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) /* -- 1.7.9.5