From patchwork Sat Apr 6 19:29:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Willy Tarreau X-Patchwork-Id: 2402441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id 8C1CB3FDDA for ; Sat, 6 Apr 2013 19:30:20 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UOYoV-0006up-5j; Sat, 06 Apr 2013 19:30:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UOYoS-0006nK-0r; Sat, 06 Apr 2013 19:30:08 +0000 Received: from 1wt.eu ([62.212.114.60]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UOYoO-0006n0-Ry for linux-arm-kernel@lists.infradead.org; Sat, 06 Apr 2013 19:30:05 +0000 Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id r36JTvA9016471 for linux-arm-kernel@lists.infradead.org; Sat, 6 Apr 2013 21:29:57 +0200 Date: Sat, 6 Apr 2013 21:29:57 +0200 From: Willy Tarreau To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: makefile: add tuning options for Armada 370/XP Message-ID: <20130406192957.GQ11459@1wt.eu> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130406_153005_342359_96B62357 X-CRM114-Status: GOOD ( 10.91 ) X-Spam-Score: -4.3 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -2.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi, A patch from Marvell was merged in GCC 4.8 to add support for their PJ4 CPU core used in Armada370 and XP. I noticed a steady 2% network performance increase using -mcpu=marvell-pj4 and around 1% when using -mtune=xscale instead. I have no idea whether it provides anything to the Dove platform and I don't have one to test, so I didn't touch it. Now that 4.8 is released, it would be nice to have this option used when supported. Regards, Willy From b5b34f87e753fbd756f3c23536e731bb1aa6bf7f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 3 Mar 2013 23:26:41 +0100 Subject: [PATCH] ARM: makefile: add tuning options for Armada 370/XP Let's pass -mcpu=marvell-pj4 and fall back to -mtune=xscale for Armada370 and ArmadaXP. Both settings have shown an improvement over the default setting on these chips using gcc-4.7 with and without the Marvell patch (typically 2% on network traffic). Signed-off-by: Willy Tarreau --- arch/arm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 15747d9..7dd5418 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -93,6 +93,7 @@ tune-$(CONFIG_CPU_XSC3) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) - tune-$(CONFIG_CPU_FEROCEON) :=$(call cc-option,-mtune=marvell-f,-mtune=xscale) tune-$(CONFIG_CPU_V6) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) tune-$(CONFIG_CPU_V6K) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) +tune-$(CONFIG_MACH_ARMADA_370_XP) :=$(call cc-option,-mcpu=marvell-pj4,-mtune=xscale) ifeq ($(CONFIG_AEABI),y) CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork