Mark Tomlinson
97e914b7de
MIPS: cavium_octeon: Fix syncw generation.
...
The Cavium Octeon CPU uses a special sync instruction for implementing
wmb, and due to a CPU bug, the instruction must appear twice. A macro
had been defined to hide this:
#define __SYNC_rpt(type) (1 + (type == __SYNC_wmb))
which was intended to evaluate to 2 for __SYNC_wmb, and 1 for any other
type of sync. However, this expression is evaluated by the assembler,
and not the compiler, and the result of '==' in the assembler is 0 or
-1, not 0 or 1 as it is in C. The net result was wmb() producing no code
at all. The simple fix in this patch is to change the '+' to '-'.
Fixes: bf92927251b3 ("MIPS: barrier: Add __SYNC() infrastructure")
Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
2020-02-15 12:44:03 -08:00
..
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:29:20 -07:00
2019-05-24 17:39:00 +02:00
2019-06-19 17:09:55 +02:00
2019-07-06 10:32:12 -07:00
2019-05-30 11:26:32 -07:00
2019-07-25 22:10:05 -07:00
2018-12-31 07:12:35 -08:00
2018-06-24 09:27:27 -07:00
2019-08-06 14:29:30 -07:00
2019-05-21 11:28:39 +02:00
2017-11-02 11:10:55 +01:00
2019-09-03 14:20:54 +01:00
2019-07-23 14:33:44 -07:00
2019-10-09 14:55:57 -07:00
2020-01-09 15:30:56 -08:00
2019-07-23 14:33:44 -07:00
2019-11-01 14:58:56 -07:00
2019-07-23 14:33:44 -07:00
2018-06-24 09:27:27 -07:00
2019-07-30 10:41:54 -07:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-11-11 10:45:00 -08:00
2019-11-11 10:44:56 -08:00
2020-01-23 10:27:06 -08:00
2019-07-23 14:33:44 -07:00
2017-07-11 14:13:06 +02:00
2019-06-05 17:37:18 +02:00
2019-06-05 17:37:15 +02:00
2019-07-23 14:33:44 -07:00
2019-05-24 17:36:45 +02:00
2019-07-17 09:42:03 -07:00
2019-07-23 14:33:44 -07:00
2019-07-23 14:33:44 -07:00
2019-07-23 14:33:44 -07:00
2019-05-30 11:26:32 -07:00
2019-07-23 14:33:44 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:20 -07:00
2018-08-08 09:48:32 -07:00
2019-10-02 10:08:20 -07:00
2020-01-09 15:30:53 -08:00
2019-11-01 14:58:56 -07:00
2019-05-30 11:26:35 -07:00
2020-01-24 11:37:45 -08:00
2019-06-19 17:09:55 +02:00
2020-01-14 12:20:46 +01:00
2019-05-30 11:26:35 -07:00
2019-05-09 16:39:27 -07:00
2019-07-23 14:33:51 -07:00
2018-10-15 23:11:13 -07:00
2018-08-10 17:27:51 -07:00
2018-10-15 23:11:14 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-12-08 14:37:34 +01:00
2019-10-07 09:42:36 -07:00
2019-10-07 09:43:08 -07:00
2019-10-07 09:42:58 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-10-23 21:07:28 -07:00
2020-01-09 09:48:42 -08:00
2017-06-29 02:42:26 +02:00
2017-11-02 11:10:55 +01:00
2019-10-07 09:38:53 -07:00
2017-08-07 12:01:17 +02:00
2019-02-07 12:59:45 -08:00
2019-01-03 18:57:57 -08:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2019-11-01 14:36:44 -07:00
2017-11-17 11:54:55 -08:00
2020-01-03 09:32:51 +01:00
2018-11-07 16:26:42 -08:00
2019-10-31 15:03:10 -07:00
2020-01-22 15:56:08 -08:00
2018-12-05 14:46:44 -08:00
2019-11-27 10:27:45 -08:00
2020-01-22 15:56:08 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2018-09-20 09:01:15 +02:00
2019-11-20 20:31:40 +01:00
2019-02-13 19:12:33 +01:00
2017-11-02 11:10:55 +01:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2018-11-09 10:23:19 -08:00
2018-11-09 10:23:18 -08:00
2017-11-02 11:10:55 +01:00
2019-11-22 10:51:22 -08:00
2017-08-30 00:57:29 +02:00
2019-05-30 11:29:20 -07:00
2019-05-30 11:26:32 -07:00
2019-10-07 12:58:44 -07:00
2019-05-22 18:45:52 -07:00
2020-01-13 10:55:40 -08:00
2019-05-30 11:29:20 -07:00
2020-01-23 10:26:48 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-26 16:26:34 -07:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2020-01-06 09:45:59 +01:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:32 -07:00
2017-07-11 14:13:06 +02:00
2020-01-23 10:26:16 -08:00
2018-03-09 11:22:45 +00:00
2017-11-02 11:10:55 +01:00
2018-12-06 06:56:38 -08:00
2019-04-09 16:21:30 -07:00
2020-02-04 11:58:07 +00:00
2017-11-02 11:10:55 +01:00
2019-06-19 17:09:06 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-07-16 19:23:22 -07:00
2019-02-20 22:48:32 +01:00
2018-03-06 18:40:44 +01:00
2017-11-02 11:10:55 +01:00
2019-10-07 09:42:55 -07:00
2020-01-23 10:21:53 -08:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2018-05-14 23:58:23 +01:00
2019-06-19 17:09:55 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-29 19:36:53 +08:00
2018-11-09 10:23:19 -08:00
2017-11-02 11:10:55 +01:00
2020-01-22 15:56:08 -08:00
2019-04-08 12:00:28 +01:00
2019-02-04 10:56:41 -08:00
2019-02-04 10:56:41 -08:00
2018-11-21 19:54:59 -08:00
2019-11-11 10:43:13 -08:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2019-07-12 15:13:55 -07:00
2019-08-08 15:12:07 -05:00
2019-06-19 17:09:55 +02:00
2019-11-22 10:51:22 -08:00
2019-11-22 10:51:22 -08:00
2019-11-22 10:51:22 -08:00
2019-09-20 14:55:07 -07:00
2020-02-04 03:05:24 +00:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-10-31 15:03:10 -07:00
2019-06-19 17:09:55 +02:00
2019-07-01 17:51:40 +02:00
2019-10-31 15:03:10 -07:00
2017-11-02 11:10:55 +01:00
2018-07-17 09:40:17 -07:00
2019-10-23 21:10:34 -07:00
2019-10-09 14:55:51 -07:00
2018-08-01 13:20:15 -07:00
2019-05-30 11:26:32 -07:00
2019-02-19 12:46:03 -08:00
2018-09-22 10:31:50 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-08 12:00:28 +01:00
2017-11-02 11:10:55 +01:00
2018-11-09 10:23:19 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-10-09 12:48:05 -07:00
2019-06-03 11:49:37 +02:00
2020-02-15 12:44:03 -08:00
2019-08-11 21:44:30 -07:00
2019-01-03 18:57:57 -08:00
2020-01-02 16:41:16 -08:00
2019-05-30 11:26:32 -07:00
2019-04-03 10:32:54 +02:00
2018-08-10 17:27:53 -07:00
2019-02-04 10:56:24 -08:00
2017-11-02 11:10:55 +01:00
2017-08-30 00:57:26 +02:00
2019-05-30 11:26:32 -07:00
2019-03-04 10:50:14 -08:00
2019-03-19 15:26:06 -07:00
2019-10-02 14:06:41 -07:00
2019-10-10 14:01:47 -07:00
2019-07-25 21:45:05 -07:00
2017-11-02 11:10:55 +01:00
2019-12-10 10:12:55 +01:00
2019-07-23 14:33:44 -07:00
2019-05-30 11:26:32 -07:00