Message ID | 1451222619-3610-17-git-send-email-noamc@ezchip.com |
---|---|
State | Deferred |
Headers | show
Return-Path: <linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CB06D140C88 for <incoming@patchwork.ozlabs.org>; Mon, 28 Dec 2015 00:31:26 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aDBPx-0002LJ-Ct; Sun, 27 Dec 2015 13:31:25 +0000 Received: from mail-he1eur01on0073.outbound.protection.outlook.com ([104.47.0.73] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aDBPv-0002KG-1B for linux-snps-arc@lists.infradead.org; Sun, 27 Dec 2015 13:31:24 +0000 Received: from AM2PR02CA0040.eurprd02.prod.outlook.com (10.160.28.178) by DB4PR02MB0334.eurprd02.prod.outlook.com (10.242.221.14) with Microsoft SMTP Server (TLS) id 15.1.361.13; Sun, 27 Dec 2015 13:30:57 +0000 Received: from DB3FFO11FD029.protection.gbl (2a01:111:f400:7e04::151) by AM2PR02CA0040.outlook.office365.com (2a01:111:e400:8400::50) with Microsoft SMTP Server (TLS) id 15.1.361.13 via Frontend Transport; Sun, 27 Dec 2015 13:30:57 +0000 Authentication-Results: spf=fail (sender IP is 212.179.42.66) smtp.mailfrom=ezchip.com; arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=ezchip.com; Received-SPF: Fail (protection.outlook.com: domain of ezchip.com does not designate 212.179.42.66 as permitted sender) receiver=protection.outlook.com; client-ip=212.179.42.66; helo=ezex10.ezchip.com; Received: from ezex10.ezchip.com (212.179.42.66) by DB3FFO11FD029.mail.protection.outlook.com (10.47.217.60) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Sun, 27 Dec 2015 13:30:56 +0000 Received: from localhost.localdomain (10.1.3.132) by ezex10.ezchip.com (10.1.1.4) with Microsoft SMTP Server (TLS) id 14.3.224.2; Sun, 27 Dec 2015 15:30:33 +0200 From: Noam Camus <noamc@ezchip.com> To: <linux-snps-arc@lists.infradead.org> Subject: [PATCH v5 16/20] ARC: [plat-eznps] Use dedicated SMP barriers Date: Sun, 27 Dec 2015 15:23:35 +0200 Message-ID: <1451222619-3610-17-git-send-email-noamc@ezchip.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1451222619-3610-1-git-send-email-noamc@ezchip.com> References: <1451222619-3610-1-git-send-email-noamc@ezchip.com> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-22026.007 X-TM-AS-Result: No--2.565300-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD029; 1:DZkgAwZo0nJ4VTCEd/t5K9Vyc3lFK0rp4+ZMY0JxGaSPTFL/RJ9GrAFWh4W5TJG9x3LNTy0YNJtBY3Hb+ZrobYHTKsZzFRwiNp4jjAoMgzDeGJDuinfS3v093vD7I8m6N/38SuLrYMg0q9F4v3Q2jTq6BSlmrVxzlCzZ/e0k5VtSDfGq4hLff8O0FHwPNqPI8jFxPOl3KI9oiXluWJadFnzaSUB+ZCVXg283P01k1d2vkYM/mkhSSCEC5gfxbXwr8mOlJmTF0tk1EwkwfIWOCK24VrERNdIEy5bfqr6hoHr62okRDJd0RJruj8cuquCn+w+UvUtEUvGRc/wyCqnM1nzylQgATjHybKd/EZDxdj2YFaJN1LWX26hvsP0HQwgPAzXXn71S1Xq7k/JA6WBUXwXi7gmUioT+SWQ3Qx7M+g2NPN5O/nKW4D5ePIFxFhFM X-Forefront-Antispam-Report: CIP:212.179.42.66; CTRY:IL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(3190300001)(339900001)(199003)(189002)(19580405001)(5008740100001)(1220700001)(1096002)(5003940100001)(36756003)(586003)(50226001)(5001970100001)(48376002)(110136002)(6806005)(104016004)(2351001)(87936001)(2950100001)(47776003)(33646002)(189998001)(92566002)(77096005)(86362001)(85426001)(105606002)(50466002)(106466001)(49486002)(19580395003)(50986999)(76176999)(229853001)(11100500001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR02MB0334; H:ezex10.ezchip.com; FPR:; SPF:Fail; PTR:ezmail.ezchip.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB4PR02MB0334; 2:CliB/kYvaXl6U9Kr3MiWoKuN80ktv/EmoZons5c4Qkk39Qy0xRjgyZGhtLqDoozaqG83o/VZYIqbMeaFFXwTEMrxUQC19oyVHjJ9DCD7zynuhWyhc6y2b+aXOeKJn8il3U+kweNyUMZhVZJMvujW1w==; 3:fXB2X0D6GFuyprG30iXzWUVtrHRAJfPs4Zer5FJURWqPCc0RG7MZXmC8KS8mtz7QKWhM8e/VyD2yySq4wX5nporFuPGv78BIpyAyJzyDwytdHWjpCWwL7FfEFBda45FbiiFVVLdGZZ0vGvy3IrDtdT+reQqokfmdzingvB3lWXVsCCgWsMqEePN2cyKqRCTqdQyYd7QWAXMczMqAzmyaEC1IEEmVFUHlt6f2FPPcYpc=; 25:Z6Pi3wz1vfLGgXkT3WOYSF56ovsMdMeJEQEBUSD6ZqgNzMozcNmusxThnLQbjau9n1SVJ9y2kipRFebCE/7uRAad1QW2gc3J8G5djjhu0EiIzbCgKPoX/jK7YmBKhSshlO2GuyhK+mnNDs9psXk3j5xIoJx1YiwcToCMS2qU7+rywIVpdK11EgfaI4sNPlxn+AYxfuHYeKKbmnTvbUsOsaixd0F11ZqR8TmA7vfLqRSTIqDarLzxisGLwEqHv9xu8hQSS6zt9C+V1NyEA3WnYQ==; 20:vznZDBsWiaxf7Yft1O3Tp5fUAZaQcTWR1ztYqo9xYijDYoQiunruHNEeM9hRrjINfN252aTlmbv8lMo7YU/f9SI0xSPWzqhyUyDC/fe/xBMJr57pmilj/NUmvuH3DXAPNBGJ8aI0r/4cPg/mmSxQknWI8lxvv97fxIeHeaR4TWI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB4PR02MB0334; X-Microsoft-Antispam-PRVS: <DB4PR02MB033419AFD00B908839628BB1D6FA0@DB4PR02MB0334.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(121898900299872); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(10201501046)(3002001); SRVR:DB4PR02MB0334; BCL:0; PCL:0; RULEID:; SRVR:DB4PR02MB0334; X-Microsoft-Exchange-Diagnostics: 1; DB4PR02MB0334; 4:TGOvxmR58WeiXV/JizlJsFZedkWaI2iaUFLynfwIzCQ7fdnI88IkuWEq3I6Fn2qQHG/Iv9Y8txPLwWBzEIfAcEWK5R2CvomqI0Krz2gLZaIR+G4lcMu+x4QN7PGsTdAGAAYbwkUj8FhTzjp79WVp1kxT76Xlh6czOU+fnP5cznReXk20StUX0Y1FE24lTzzWHqO1MNym8B3APTPpAWDCAU1nLSLVtrORF8UhkVD1DHm83XfYvNW1uGdeXSp4wyym0Bk6uVFs2nLRzaQyuwd11Jx9a+kJQTW3LfbwF2iX6Qh1H74DAyKaianxK25gLIrVr1ElMUlgq8UxeDk3BjMgJxkhJKLZyDPcvW0lmeSY1B7VyTZAXvNPEXkZiWXf9BfAz7VqS+DrGyUwumHLaKdMjsQaYS1149oOPTigO4nm8od45C+BrYuvY504UcODJEfh X-Forefront-PRVS: 0803A0241F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1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LFcE5oz5GPI?= =?us-ascii?Q?PxrNgm8yTaLR35MiUsxHI8sUuM+A1loUiS27dA1rii0HybVQBZJ7thprmRZH?= =?us-ascii?Q?uxDtKhsNdAXkNmXGMf4oga4EtqBps3FQeiJEv0WYqcgCLTtoxdF1g9rGW1Hd?= =?us-ascii?Q?nlR+gBi7pRZieNm56eUwxILS3KMBYeTxzlj622PVIxCuHABEber+tA4VmNco?= =?us-ascii?Q?NT80MQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB4PR02MB0334; 5:fQD36HVAzJZb7nSGY8K2/1P1berFUTJd1nc5/72UkWAPq48ieDKTvgt5hAspz4PNr0ceCQSO3WbFl6ALdwxb1aOVRCjRbMsM/xJ8B67SKeIGD1SUqK3gwH+/ePqKtsArc7VYkbyOBy3F0ROLEtbPyw==; 24:xVVhHI3eytezuHNsy7jtSd3CRGmT0xT1IZerZhGNLGIs83L1HiKOkD61iYqjPRctagwpLBt5Y7u2Has5jJQ0MaSuHuZ/LgabVZdxrPhblyg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2015 13:30:56.6681 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3; Ip=[212.179.42.66]; Helo=[ezex10.ezchip.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR02MB0334 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151227_053123_497535_0882100D X-CRM114-Status: UNSURE ( 6.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [104.47.0.73 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [104.47.0.73 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux on Synopsys ARC Processors <linux-snps-arc.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-snps-arc/> List-Post: <mailto:linux-snps-arc@lists.infradead.org> List-Help: <mailto:linux-snps-arc-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-snps-arc>, <mailto:linux-snps-arc-request@lists.infradead.org?subject=subscribe> Cc: marc.zyngier@arm.com, daniel.lezcano@linaro.org, linux-kernel@vger.kernel.org, Peter Zijlstra <peterz@infradead.org>, cmetcalf@ezchip.com, Noam Camus <noamc@ezchip.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" <linux-snps-arc-bounces@lists.infradead.org> Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
diff --git a/arch/arc/include/asm/barrier.h b/arch/arc/include/asm/barrier.h index a720998..a559732 100644 --- a/arch/arc/include/asm/barrier.h +++ b/arch/arc/include/asm/barrier.h @@ -34,6 +34,7 @@ #ifdef CONFIG_ISA_ARCOMPACT +#ifndef CONFIG_ARC_PLAT_EZNPS /* * ARCompact based cores (ARC700) only have SYNC instruction which is super * heavy weight as it flushes the pipeline as well. @@ -41,6 +42,13 @@ */ #define mb() asm volatile("sync\n" : : : "memory") +#else /* CONFIG_ARC_PLAT_EZNPS */ + +#include <plat/ctop.h> +#define mb() asm volatile (".word %0" : : "i"(CTOP_INST_SCHD_RW) : "memory") +#define rmb() asm volatile (".word %0" : : "i"(CTOP_INST_SCHD_RD) : "memory") +#endif /* CONFIG_ARC_PLAT_EZNPS */ + #endif #include <asm-generic/barrier.h>