Message ID | 1446893557-29748-15-git-send-email-noamc@ezchip.com |
---|---|
State | Superseded |
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 687E01402B4 for <incoming@patchwork.ozlabs.org>; Sat, 7 Nov 2015 22:00:04 +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 1Zv1E3-0007Zj-4J; Sat, 07 Nov 2015 11:00:03 +0000 Received: from mail-am1on0074.outbound.protection.outlook.com ([157.56.112.74] helo=emea01-am1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zv1Dz-0007Mv-NS for linux-snps-arc@lists.infradead.org; Sat, 07 Nov 2015 11:00:01 +0000 Received: from AM2PR02CA0035.eurprd02.prod.outlook.com (10.160.28.173) by HE1PR02MB1146.eurprd02.prod.outlook.com (10.163.173.140) with Microsoft SMTP Server (TLS) id 15.1.318.15; Sat, 7 Nov 2015 10:59:35 +0000 Received: from AM1FFO11FD018.protection.gbl (2a01:111:f400:7e00::184) by AM2PR02CA0035.outlook.office365.com (2a01:111:e400:8400::45) with Microsoft SMTP Server (TLS) id 15.1.318.15 via Frontend Transport; Sat, 7 Nov 2015 10:59:34 +0000 Authentication-Results: spf=fail (sender IP is 212.179.42.66) smtp.mailfrom=ezchip.com; infradead.org; dkim=none (message not signed) header.d=none; infradead.org; 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 AM1FFO11FD018.mail.protection.outlook.com (10.174.64.207) with Microsoft SMTP Server (TLS) id 15.1.325.5 via Frontend Transport; Sat, 7 Nov 2015 10:59:34 +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; Sat, 7 Nov 2015 12:59:10 +0200 From: Noam Camus <noamc@ezchip.com> To: <linux-snps-arc@lists.infradead.org> Subject: [PATCH v2 14/19] ARC: [plat-eznps] Use dedicated SMP barriers Date: Sat, 7 Nov 2015 12:52:32 +0200 Message-ID: <1446893557-29748-15-git-send-email-noamc@ezchip.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1446297327-16298-1-git-send-email-noamc@ezchip.com> References: <1446297327-16298-1-git-send-email-noamc@ezchip.com> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.1191-8.000.1202-21926.006 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; AM1FFO11FD018; 1:G80RpvM51YzyWPmbUj83hP8oQHp83IV/zOQfICVDwGUyU95P30sbmzZo98IJi3Y0YnPjzw7NHkVi7UKG12NVabs1wa1Bgc7cR9184i2JsdCg3OvK+Ze4RB3CKON00Dic8YD2uxlC8rM++AYy+SWYobtyQ+PpX/anDaJBp02se6L8WCH6Z103XXDdl359KMewwKIMR0g9Na1L/JvRJNG4RAykSQICkjLl5TAZYvmc047wKfa8ShTvvcSpHO1OnpsD8XCrHP3fdCpT/g2ctFCVQkxZX1qS/VF0KYSyHfg1LaeXRs/tc5FCvnxk8pua3TJqOqbVdjrnae1A2I7LztpxM3sruJmPVqfdwRa/h3F70OI1g76zxLgo/gOqF7rOjZnC/53KVpaxaFNmTf/viJBpww== X-Forefront-Antispam-Report: CIP:212.179.42.66; CTRY:IL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(106466001)(104016004)(11100500001)(50986999)(2950100001)(19580395003)(50466002)(33646002)(2351001)(229853001)(5008740100001)(6806005)(5007970100001)(49486002)(48376002)(19580405001)(36756003)(47776003)(77096005)(85426001)(92566002)(5001970100001)(87936001)(5001920100001)(110136002)(86362001)(76176999)(189998001)(50226001)(105606002)(5003940100001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR02MB1146; H:ezex10.ezchip.com; FPR:; SPF:Fail; PTR:ezmail.ezchip.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB1146; 2:0Bt1frb9XCkBMQE3GQrVp8GsAIHXw5AlSrAUyrG7cftwH/ztwxpmqqxPL5y8R86PdXFMUh9TicyYUxStfK4gxz4U1dlU1ODu7pYGnIG4WsrrI5FfqZHuIVbZGuGjqNUkkHf1QDS3TWlhxgrErGZoz427h+hWYZbYn2KDdo0+j3s=; 3:1D0SvO/TaIQrY8nazk4x0lVCMxo49u/tcmLGEjPEARv2J/y22BCMWMjgKf7wjr3nykVtmMx49nPwHg6Ube7VfWgm7uVANHMpDJtlAOF19gUDEue1+APW5jxX3fOrOagWs46baolDHaGVv6+naLupMvJWAdYduMBHiUlWAQOS2UNGRZozWIOYTb25cIEBNGqwqxNFpRZIpm+LwiIese4bJ3ky2awQIQXBwKeAfvSj/0A=; 25:Ouh1SMPQthfCybAxN68DweWX6qHwu7E/sYVc8KIZ9HcOdd63bxriDWKMAhCg/WD1yjoKmsKxa0DQHhDSwFhLx/6YP0DrEKOcc8TwUBRHjjNzWj6KZymgGUlynoNSfVxpzNS+MILcd7aFuc9rfI+iq8x0bz3u+86Xi9DSVOacYKL00sYy5GTVfwIi3spa9kxmWEf/cWXkGFg2XIlYU94vWKTOkuBv+XuHeFr1Idx97PhwnF1yXoShG3eb+7ULYWkClqZwMMeG56LkXU+mw4dK9A==; 20:0I46MmEBnJP1v3PAVCZVwG7Go5CK/xHW+Y3rocmnYfyaDZXZbvQCnhhmUWBWPvGL5p3pzhHXhMsXoyF2T2gNhP+tIWcQRt4088cW61jWWIzIX6T5Ri3/3dYYzPL8WzEQj6nVQLwhGHEqRURhI0j4Kp6voinwNfMRKxXIYrGaqMU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR02MB1146; X-Microsoft-Antispam-PRVS: <HE1PR02MB114668237824457445FEAC25D6170@HE1PR02MB1146.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(121898900299872); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001); SRVR:HE1PR02MB1146; BCL:0; PCL:0; RULEID:; SRVR:HE1PR02MB1146; X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB1146; 4:hXW0yn8eblsuRXg6B+8qCV8/iDzy2X6Fsntc5czDSk4gIoUIv4B7/qHpfu8/w2egKz9NyWK/xzad1kfYYK47X45m1d8UgfO0rgwvDb1ezmOBcp+6Fk33Ji+14hv2jfJ9tVx7WD+JFG49h8ICsS3T6QZwjDTsY1wqN9XQ48agVTRmekJHY1vHmdrkJMntKCwlc5FjJqtI6VerdYKvinmopApSIkerIcbXF8GvYW4ub2fBM3PKCOcyLlHNXyqEK1/Dq87Yw7KdIDUgSHukJfNGGfdlyz7+AZJNpRemOWN2ts0Ee9CDl3CGMoYbfVt6hTwv30LYBTClYABEMBEOcemHmeDwrG4gr3K5SEor/fu1YsI9wrRw2xvx8aQ3iBo7OEzy X-Forefront-PRVS: 0753EA505A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR02MB1146; 23:/BOQhSzWFwcOyO38Jtarkyyl+DSgmzTCC1hkmuFrZ?= =?us-ascii?Q?0wdmm1w75MJjGFkvhOxzPz1WcyyQf0kCy11hRqGF+kgKDz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UG9lLHINTMBoBk2X90y+h68w6xo8O8?= =?us-ascii?Q?DVdC9SYabj8kOg3NIyqIlz6i1QPeFOdFxCVX6ohT1bn9fKQHppXJ8CzlXMlD?= =?us-ascii?Q?Z/zEQE=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB1146; 5:gpMFmWlcfVGpFctJ7xoyH5TY7fdT70T19TXbSFq1fLJyIZ8HNXnU0+IRo9CYZGaWhK8y2r4RHtMMNZY0MlF1rZqH9bMx0td5it+CFFi44UBshdHpsHF1Z1uMW6t4gJsMFmHv/7qeThu0YrTw6vdU6Q==; 24:DktfzNUhkG1Ci/hBwU8XINBe8F8yPpCGExwMGuZx1GlTHd5rgDg8EDnyTLWC4VZqZB9+oRbye5Vl5rs0weJoyOexi8d7auOMcL6EFniElsk=; 20:/ZFtmLQuJkAUVFWfiARXouFmRzoCdGO4CXmQWSR6duyOsQDkO03MexeAHhodh9r+M5ocvpUT9S6CSZpxd+tLhQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2015 10:59:34.3518 (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: HE1PR02MB1146 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151107_030000_225999_F90B53A1 X-CRM114-Status: UNSURE ( 6.11 ) 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 [157.56.112.74 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [157.56.112.74 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: gilf@ezchip.com, Peter Zijlstra <peterz@infradead.org>, talz@ezchip.com, linux-kernel@vger.kernel.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>