Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1578162imm; Fri, 6 Jul 2018 02:41:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpegU1lZAfvjBkLflBfw51H7Ej9bizL9kzBdnsBtnyOr5KoS9TVcUftiLi4/6Gs2h1bPN0p1 X-Received: by 2002:a63:7f16:: with SMTP id a22-v6mr8797069pgd.255.1530870079305; Fri, 06 Jul 2018 02:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530870079; cv=none; d=google.com; s=arc-20160816; b=jP+tWiFYNYrr2pBS7+iyMCEDyWfOCob9UXxRHQs0jwyUpd97/lt5+ebDR6L27m44Af MVFkwvTeJDU3t1+6qtJYgb1ahA54AwUSpdjPyfoKil4+Zucj9FMpSapHLtWHRTMjmTof VN1I3QDfyHXyDMP4nlauhQ5UxtsLKdUrSbBd/qsft4nJjdGNB7FbKxl+AhU/sEDJ34iA 2MNFOVJO1eKv4v8HmxK86Kc0j+/MNrAIxVU9P9K7YPyob6DY48OI+d3VJrLTULBgiNNA Re1DTflgHsFG4RZ/GaEJCDPmZ/bE/j81Idkt6HLQRxo8CRoaeI3V/9jhXvYuBu+XFmJX Oo9Q== 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=FvrJgYCNVm63G4YkPJd5KxHy3P3Q6xrdfoHoovO4fXs=; b=R2lUObAbWXnjgi3r/4iL7ESsIjZ2Tanae5JnqS60JFcbm9pohgTpsHVLckrRngjA1V 0fDs1/F/DWXi8XVHtEQWBjFQlQlGqR0K3RFwQsYH/+S65PZaPsGL+A2C2FWgnYzniXkB dhE87eR3map357IO/W20di1SphY3mY4h9HyRJGIFDhyh+rJl/2oScOP7v37DU8yzisCI bfFK8XZiHbMN3nucWsCRDxc+MW27oTVsEkhE+2gofOu/K+iBDUAYPVQCxWYlrhjI6nrw OKzZxA8CFCxCceyuf7PWJy/HbjkheCNJn4xg2Z+0FtLxJUsS1rpYBKYWXHGI+t0k66Ub ptpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=mvg5kyk1; 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 g7-v6si7797053plt.149.2018.07.06.02.41.04; Fri, 06 Jul 2018 02:41:19 -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=mvg5kyk1; 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 S1753575AbeGFJkY (ORCPT + 99 others); Fri, 6 Jul 2018 05:40:24 -0400 Received: from merlin.infradead.org ([205.233.59.134]:41506 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753281AbeGFJkW (ORCPT ); Fri, 6 Jul 2018 05:40: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=FvrJgYCNVm63G4YkPJd5KxHy3P3Q6xrdfoHoovO4fXs=; b=mvg5kyk1pD1gcOkHpvevH/LJa YPRSQ+T7WXkdLhAsCcGVB+KjtvrWGgTQ099eFx2emHcA88QkW2s7OTvNXwfkyNqRypYZw+Z+QdLoD 9D8EYGVl4uz24sh1QZEuoX1qQwP8RJVUyznAYDkt2RjZlwDL8FuOmpjCJG/kSefrHhWxFTUZXtUJG VmTcWg4g6cziGahFs2xJ3FuuAaljetRn8BJ9p4ztr6DZn+jO+G2eWqx0iSHsV6W95O0adz7RjHzeq g9JlvAlUme1U5a1p9Ap1f2iv1PaT8hFOo0sdDLs1X+AXcjnmGbKbF9ahjKf8jKhW9Nt5Qq9Kl4MQY 5d5zO1SIA==; 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 1fbNDD-00089N-8T; Fri, 06 Jul 2018 09:39:35 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 64B812028932E; Fri, 6 Jul 2018 11:39:32 +0200 (CEST) Date: Fri, 6 Jul 2018 11:39:32 +0200 From: Peter Zijlstra To: Guo Ren Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, daniel.lezcano@linaro.org, jason@lakedaemon.net, arnd@arndb.de, c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, green.hu@gmail.com, Will Deacon Subject: Re: [PATCH V2 16/19] csky: SMP support Message-ID: <20180706093932.GT2476@hirez.programming.kicks-ass.net> References: <21d859826fe19aecaa2aefe3103d6d33e6f1b925.1530465326.git.ren_guo@c-sky.com> <20180705180503.GH2530@hirez.programming.kicks-ass.net> <20180706060740.GB8707@guoren> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706060740.GB8707@guoren> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 06, 2018 at 02:07:40PM +0800, Guo Ren wrote: > > Please explain those mb()'s... I'm thinking you meant to use smp_mb(). > Yes, smp_mb(). Current smp_mb()&mb() is the same: sync.is. > > In next version patch, I'll seperate smp_mb() and mb() and use ld/st.barrier > instead of sync.is. Sync.is is expensive that it flush cpu's pipeline. I'll second my own call for documentation, because now there's three memory ordering instructions: "SYNC", "SYNC.IS" and "LD/ST.BARRIER" None of which have yet been explained.