Received: by 10.213.65.68 with SMTP id h4csp2338792imn; Mon, 9 Apr 2018 01:37:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx49MAwCmb5oOQF551aZfxbxlt0LPPuj6ratFEj9igaNIqyqlo6rlQ5tpdHgOrWoV8O2X9WAE X-Received: by 2002:a17:902:7b96:: with SMTP id w22-v6mr35968396pll.116.1523263044885; Mon, 09 Apr 2018 01:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523263044; cv=none; d=google.com; s=arc-20160816; b=LcllDBIa5M3LmQ1EyCWacccwbxnEFKcH/vTr5W7v4DAU9a7G/OVXJRrIP7j5G6HqJB IiDe78U8AC33qbHlEP3kSxNIJwBG4GDARhu9Lmr065ga7AxDj+PPmZ6xWBsw3YHCDRv5 jZ9tdA7gpRzSb/Tu1sLzGasai5ify4VUBxj0hYtecfm638XQECicRUL7YltGOWytwnK2 6QX+aNGcO/lLXqvo7y1qRc5/8XpEJ40VRRmWjoewZLlMsPYe7nKLckmf5hR+xAqz/55G SDcj87Tp0cajm7J51tdQU+bilOLc7cq7tBV+fdpjl80J3K0AHCntftOnfVYMdAK3eR8U g5mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=oaBT9EZ8l9MU7ZsdCq88Yp9mvyYuFA4X8WHimLhtgfk=; b=R4l5boEKiBumw/BqzNRfjtagn7rCnhP/jQM0lcYCZTjed5rca8f4PnkTOpHGZ5cg7S 3fL/+l1fSVTvJXuwjROvynSX/VN0Xbc/gPINMQgBCTfbejXV1l3B2x5wDM1XSrr9hd0L ySPQS6hpo+xKFAHujoJeIF8C9ZwHyT9pSZUsVHGQFNFs+MTBaCXQ7V7GunNW6oaBGYr0 inzIp6ThHNi+V0vJrUoVJvf85JUnQmz1jggglUUzbRyFkxiM1aJimAOyHMQoXxJpvg1J Z7yqQx+Lv7ylRkxt4aL/vdIlmIH7Piz+pj+uKi+2MltFoQZYzDMcUvw7dOnrBW/wv2uE wLNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KOuuv+XM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6-v6si2113006plr.661.2018.04.09.01.36.47; Mon, 09 Apr 2018 01:37:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KOuuv+XM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752238AbeDIIdZ (ORCPT + 99 others); Mon, 9 Apr 2018 04:33:25 -0400 Received: from merlin.infradead.org ([205.233.59.134]:51360 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750982AbeDIIdW (ORCPT ); Mon, 9 Apr 2018 04:33:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oaBT9EZ8l9MU7ZsdCq88Yp9mvyYuFA4X8WHimLhtgfk=; b=KOuuv+XMCja8CTCUdpGEuu0aX 3txxeNaAVW9YaWtt6ul7dv8mPxo2Ns2NV+ZFK8xAOo2+RBecMwwso5PkfsWi0kGiGzFPKCKATtodr 9xIuSBwUsf51ds8zjsdKIzELEey2NPWAKvFiRYOnKFgg4tM1o5S6dk1BvQctuWp+37HXvcEkd18uF qhw88zcov98rGowDfSWiEXM+jASOBp2jJRgJ/cudqZ5ffSgdCpO3hDLT6RJ8BVI1BPIaJ9g16vEox DZyVjj5n2IJHFtmfgtCyUSv4sShGNGPJgbLburt1gBVcDk1Xj/BGVuNmPqb4Eb1lWr7j5/+IllQ1E vwIngTZkg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5SEL-0004e5-BZ; Mon, 09 Apr 2018 08:32:50 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 128A3202A29FD; Mon, 9 Apr 2018 10:32:48 +0200 (CEST) Date: Mon, 9 Apr 2018 10:32:48 +0200 From: Peter Zijlstra To: Stafford Horne Cc: LKML , Will Deacon , Jonas Bonn , Stefan Kristiansson , Masahiro Yamada , Thomas Gleixner , Jan Henrik Weinstock , Michael Ellerman , Nicolas Dichtel , openrisc@lists.librecores.org Subject: Re: [PATCH] openrisc: define mb() as its mandatory Message-ID: <20180409083248.GV4082@hirez.programming.kicks-ass.net> References: <20180406205852.14821-1-shorne@gmail.com> <20180407090905.GQ4082@hirez.programming.kicks-ass.net> <20180408000729.GM2836@lianli.shorne-pla.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180408000729.GM2836@lianli.shorne-pla.net> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 08, 2018 at 09:07:29AM +0900, Stafford Horne wrote: > On Sat, Apr 07, 2018 at 11:09:05AM +0200, Peter Zijlstra wrote: > > On Sat, Apr 07, 2018 at 05:58:49AM +0900, Stafford Horne wrote: > > > Following Peter Z's patch ("asm-generic: Disallow no-op mb() for SMP > > > systems") which makes mb() mandatory for SMP architectures we define it > > > as l.msync. On OpenRISC this will flush the current cores write buffer > > > and trigger remote cores to invalidate their caches of the written > > > memory. > > > > > > Signed-off-by: Stafford Horne > > > Link: https://lkml.org/lkml/2018/1/31/254 > > > Cc: Peter Zijlstra > > > Cc: Will Deacon > > > --- > > > > > > Notes: > > > - Sorry, its been a while since we discussed this patch is the parent to this > > > still going in Peter? > > > > Oops.. yes it should. It seems I also lost track of it. Thanks for the > > reminder! > > No Problem, > > If you think this patch makes sense I can just put it into my OpenRISC queue for > 4.17. I dont see any reason to wait for yours. Any thoughts? I'm fine with you taking the patch, but I just saw the build robot found two failure cases: PARISC and 32-bit SPARC. I send patches for both, if their respective maintainers agree you could do the lot.