From patchwork Mon Mar 13 12:03:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ding Tianhong X-Patchwork-Id: 9620595 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1AA6E604A9 for ; Mon, 13 Mar 2017 12:33:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08ED5283E0 for ; Mon, 13 Mar 2017 12:33:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF88D28484; Mon, 13 Mar 2017 12:33:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 92088283E0 for ; Mon, 13 Mar 2017 12:33:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/Xy63mL2XNymF+svRDgQzdnJLNPdpLrG+NnPNDz26zM=; b=cKuLJF0M/Jculv fGQCEfA/UDb7uobW/+AaH5Nso9TVFJU+U9OAXnJTYL4RY3nmmBtwb4Tr9CjtRwOd2K+DqZoIk4b+n qI/KMjPTdj3ZowNe8dWFqw0mYa6qbJo01vGeeD9vt/Pr0NiT3vUSgIumQPwtRuk2x349C3PJbN4gn NFG1jDyHDSidbeW+kXD1eUvFT3BJUPFabswGjGE0weMvaCD/aDwvdKdjIoYKt8Wu336fKffWG2y1C U+p+nx9CdiW10jxMkXXngGuHNJuXPXfLtpMvgz8MesBvghfUHdhjeJNJwP820ozXNiBaWLFFvLcyq xUOFAwPj0W6Gcr7c9lMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cnPAB-0003To-9s; Mon, 13 Mar 2017 12:33:23 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnP9n-0003Gg-Tr for linux-arm-kernel@bombadil.infradead.org; Mon, 13 Mar 2017 12:33:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:CC:Subject:From:To:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GfFJ+sBRnMOkOWyyz6L/F1Wlvj3rhyk1vFhnISmiK84=; b=Y3X9+5mBgvdg1SAIME0A0MzIFB jjoYmpM/8dZ4iu4AA8xwlUr2IrmXD52kRid4YN7AZaHeFaK2hSBzqD2wUbw1lhOwHxMCqV4Pd58+j mmoU3AWzZZsaJJEMLEqxiFw7nm+2ezaW7GfPABm141PJPq9WTJx64Y7PxABpAX5yXNE2rJw7CmDE4 Ao1ksrSoJMRr5JNFcVEoHHnRwNhCX4FkWBdeU/d9aF6kU3YYviRpBu+U3hjKB2pB23VskhNqZvTRE PvBjHXMU+66Pc+v6m3v0dGLOJ6c7fiOYJjihL99FYfjn1Vu9b7VaNRBn7Ms1pqd0EGF3bKEcA6saf NgVFhTRg==; Received: from [45.249.212.188] (helo=dggrg02-dlp.huawei.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cnOic-0003uZ-Vi for linux-arm-kernel@lists.infradead.org; Mon, 13 Mar 2017 12:04:57 +0000 Received: from 172.30.72.54 (EHLO DGGEML402-HUB.china.huawei.com) ([172.30.72.54]) by dggrg02-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id AJW13417; Mon, 13 Mar 2017 20:03:26 +0800 (CST) Received: from [127.0.0.1] (10.177.23.32) by DGGEML402-HUB.china.huawei.com (10.3.17.38) with Microsoft SMTP Server id 14.3.301.0; Mon, 13 Mar 2017 20:03:19 +0800 To: Catalin Marinas , Will Deacon , , "linux-kernel@vger.kernel.org" From: Ding Tianhong Subject: [PATCH] arm64: enable ARCH_WANT_RELAX_ORDER for aarch64 Message-ID: <35233df0-3406-e66f-d9d2-bf7ed7814386@huawei.com> Date: Mon, 13 Mar 2017 20:03:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-Originating-IP: [10.177.23.32] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.58C68A92.0043, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: c3a5ccf4abca2d07ec1e64f45e789bf5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170313_120456_451780_0C0AA1DB X-CRM114-Status: UNSURE ( 9.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexander.duyck@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The ARCH_WANT_RELAX_ORDER will enable Relaxed Ordering (RO) which allows transactions that do not have any order of completion requirements to complete more efficiently compare to the Stricted Ordering (SO) for ixbge nic card. The system will see high write-to-memory performance when RO is enabled on the data transactions just like the SPARC did. The aarch64 pcie controller could both support Relaxed Ordering (RO) and Stricted Ordering (SO), so enable ARCH_WANT_RELAX_ORDER for ixgbe nic card to get much more better performance, and didn't see any adverse effects. Nic Card(Ixgbe) Disable RO | Enable RO Performance(Per thread) 8.4Gb/s | 9.4Gb/s Tested by Iperf on Hip06/Hip07 Soc Board. Signed-off-by: Ding Tianhong --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8c7c244..36249a3 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -115,6 +115,7 @@ config ARM64 select SPARSE_IRQ select SYSCTL_EXCEPTION_TRACE select THREAD_INFO_IN_TASK + select ARCH_WANT_RELAX_ORDER help ARM 64-bit (AArch64) Linux support.