Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp775620imm; Thu, 5 Jul 2018 08:40:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd3XEwjS+YWVVJv4q5O4WaKG2VKoBNWeP+qJ4yg6QDehgA+kagN4x2GOQ+UFM2lGWCxkIPa X-Received: by 2002:a62:bd4:: with SMTP id 81-v6mr266143pfl.67.1530805244176; Thu, 05 Jul 2018 08:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530805244; cv=none; d=google.com; s=arc-20160816; b=xWv8T53RwFbUFZT7OyXX5TT75+7MKF/g/1WgFvt2MA/20PmTLsdUAxgfd2gyPeAA1K hp6WxgG8obaaftBevLpYbKmqHVwChVDk0ly+DKbl+xgCHTRK1IXnYk4sylSZT0Vq/R5e HTT/u7yRBS/6NYuJ2B05Ga0xlmvf9qjvtRIJ4BSt5n5er2VZ4nWyaaPXCI/TCkRGaEKA nGJNmXvk3mgOyKi8Du0BfWIUudcdahzj/aAgx11G9dQYuVDvm95AL1LfaQN/pyVs5p2J 1ciH/TLj8jxhhoZiIkm94tjic/3xKtj2pnG3TqVmePali/PU7ikunw06zUd+5SJ+8g2Q Xdpg== 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=YbE1+ZVIWSIRAfy1BOTmk22Yq7hjrax/v3Pc68gTU5g=; b=ugF2B5WSum6Ty/2+t3XHZzarsNbf769P+H4UDEKpLmWVcM2nThejh8jNAnfa6Wr0Cz RzQMBwviiQo5H4WAvZ8CEJSUCFRPv3IiDMGA07FbG5RHrY9So1TK7S41gya2B5d2G5XK oMwuLczZxAKwZ5JhmLX1tr6isjJOWk6X84HaZpXTthb+4shiv1y0E3X6cmdhmrv96B6r m8wJdmP0Bb/QQ6kI0upaUNX5aVMBNhsZrVJsCIaELQs6PEAu8ISwoJ0XRBScjKhkRm4f /fLzRhD/AOuPD7A1ltSQxH9SvvIL+vXH2uZm5cXcVOVDaQIYMBUQ8CM4qpD2/TmE25uy iAww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mMfJ42o0; 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 b17-v6si5981225pgn.308.2018.07.05.08.40.29; Thu, 05 Jul 2018 08:40:44 -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=pass header.i=@amarulasolutions.com header.s=google header.b=mMfJ42o0; 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 S1753735AbeGEPjP (ORCPT + 99 others); Thu, 5 Jul 2018 11:39:15 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:39318 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753264AbeGEPjO (ORCPT ); Thu, 5 Jul 2018 11:39:14 -0400 Received: by mail-wm0-f45.google.com with SMTP id p11-v6so11633406wmc.4 for ; Thu, 05 Jul 2018 08:39:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YbE1+ZVIWSIRAfy1BOTmk22Yq7hjrax/v3Pc68gTU5g=; b=mMfJ42o0qr84dlyec0h9vBBMeqD7OKaBXosD8l1LC/NNYSiHL8McwB8k8DCykHSMbO +XnU93O5kWx7t/oZZ9qSJCCBVUSISxgQf6fx57GRJLfJE1a9JWy/ULPmH6j6YKJd1ZRV YY7U2Z1KnT5xZEs3RPqa/XbkZbPENMU7P8Rjw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YbE1+ZVIWSIRAfy1BOTmk22Yq7hjrax/v3Pc68gTU5g=; b=rU4rhSbkJW8CLy2WFUge03b6wnqAYBalxJXFyuWZ9Mgu8kBdnagHaUgbi8IeFnxd0E zSG5PivvRgB9AyqaaG7UGxVQkqtyqm3SkaWkVNipgm++s6jW14u2vrZ/EjG89Kppplhw le/PbWKOtzLEj1LdqhzIRZIc7u/FNBOJe/ejhv8s4WV/up13JeuEHNAd5lg4RRzqJ/dQ RXaaDyzd6gyIW+oXo43of4FUkeK7ktuX8/PkOddG0juo01FFqAv8FMvwHFnL7yujFhHm iuggWkQ3MFltclprZ286DTscJusZ88WHDeapZoHv6/VEg4PKGK4ozbxYQfT47Ka+HMrw z0tg== X-Gm-Message-State: APt69E0xZYkEHAWB3aSxdU2ijp6Qd6gxCpL9r8gRK2qNhnXOywjgyUGZ D2Yopoqf08O7YUNikTgXAMxPdw== X-Received: by 2002:a1c:b004:: with SMTP id z4-v6mr4704349wme.70.1530805152901; Thu, 05 Jul 2018 08:39:12 -0700 (PDT) Received: from andrea ([94.230.152.15]) by smtp.gmail.com with ESMTPSA id j9-v6sm8477437wrr.52.2018.07.05.08.39.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:39:12 -0700 (PDT) Date: Thu, 5 Jul 2018 17:39:06 +0200 From: Andrea Parri To: "Paul E. McKenney" Cc: Alan Stern , Will Deacon , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , Peter Zijlstra , Kernel development list , dlustig@nvidia.com Subject: Re: [PATCH 2/2] tools/memory-model: Add write ordering by release-acquire and by locks Message-ID: <20180705153906.GA2345@andrea> References: <20180704121103.GB26941@arm.com> <20180705153140.GO3593@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180705153140.GO3593@linux.vnet.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > At any rate, it looks like instead of strengthening the relation, I > > should write a patch that removes it entirely. I also will add new, > > stronger relations for use with locking, essentially making spin_lock > > and spin_unlock be RCsc. > > Only in the presence of smp_mb__after_unlock_lock() or > smp_mb__after_spinlock(), correct? Or am I confused about RCsc? There are at least two definitions of RCsc: one as documented in the header comment for smp_mb__after_spinlock() or rather in the patch under review..., one as processor architects used to intend it. ;-) Andrea > Thanx, Paul >