Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp745918imm; Thu, 5 Jul 2018 08:12:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdrzW2AFwEGYjL6ZWNVm5+N55uUdAoQD2LLKvFD6j75p8yDxjLuY1O2HuMN54hGLE8kFy94 X-Received: by 2002:a63:8442:: with SMTP id k63-v6mr6058196pgd.309.1530803537496; Thu, 05 Jul 2018 08:12:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530803537; cv=none; d=google.com; s=arc-20160816; b=oqS4MArkJ0wzzo2CsoC+8h/JKTm6q07OvOk31hf961EJx1NlDYtdll+d5vkXD6amoD h9sXRl7LrQU8zasmGW8notfsx72ZLGCu37HWkrkCTCu0+DFwBOmB1U69r0uHplM5smRp jrTo2kCDzoLtbbuINTtkXv0Heh4cW989oyDSXApILwRaVIaOEFuZ31aXpP5KWHO+aXcH qsRS6PChy5lSVzNUgg9PMc6jUlL0Rffkh2ccRPuqT0TrmOhs/n/AjCJ1N9Wdtxicb6OL zMdahv28j5BFz8GMs5n3q6lWmUOhjR0xQJB3rGvvQ7JQCzHMndbJiPlF61D5guWe69+z vfKg== 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=qN+savN08cVMg3cpWpTASFGssVp/aL4JtxMUHV3wAJI=; b=omNcNj6x8IBz8Q9SXxdJiOEzdl9pP5yiEV7L7fBLFQsqB7mu82ME1HGPEz+FKi2qSl uwfa88YiHCcwyqUvNebgqXZ4L0r0IIcQJMQifHxlNZ7+tinuNiBkP4DOxZtXdVZZ0w1s 0PWaxgy75cWjVbVeDWcaNotiGt5T0wENRncORKq+R4IbCiE+F9EQVEV2QazKKff6grtS NI7xxU1wfUsfzjR2M8t3ka1oWAXO8xGZmNuEFJDkHDVyqfHn0ERKPMo667GFvA4ZFrM0 QxeH1RfKHsRwd9F1C2ef2fgLG6I9F825Uv7zLq5HbzDH0Ih9ZVrTJE0W+aKhio6+H+sN C4hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="HhOp/Pcg"; 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 m62-v6si6604964pfb.127.2018.07.05.08.12.01; Thu, 05 Jul 2018 08:12:17 -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="HhOp/Pcg"; 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 S1754108AbeGEPJy (ORCPT + 99 others); Thu, 5 Jul 2018 11:09:54 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40957 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753987AbeGEPJw (ORCPT ); Thu, 5 Jul 2018 11:09:52 -0400 Received: by mail-wm0-f65.google.com with SMTP id z13-v6so11547327wma.5 for ; Thu, 05 Jul 2018 08:09:52 -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=qN+savN08cVMg3cpWpTASFGssVp/aL4JtxMUHV3wAJI=; b=HhOp/PcgFuggzrhZ2yevQUXEMEUVCMyeOAYme71MKz+iZQlAwixM4tCRt2m9Vjcy1z ee6GsyvNcimCU8Z9sqAE8+HDoeoeyGNmuQCB67Z3VW0T2CG6LKySLrZn3o7oJSH4CWdu 38KTIdktMezmMjEKFLU9iUqSgepKIozZ0vArM= 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=qN+savN08cVMg3cpWpTASFGssVp/aL4JtxMUHV3wAJI=; b=tpdDperH3xfvBePsGXT/vRNss4gauMR+Kq3pl0c1a6MSHuNR0ps9Yyqg3WxUD2sJaC SHTWyAp0nlBIo1whJlHrWNjS4ClmLZI+m47br6hAvXOOHDFLlcO5fG/5gMBqSZwbhbTJ astmyVT9fL/uq+Yn/cy/5ZYzhVH7g1EAkHa33NwDIIfgx9EL9va3f7hmxx/HwSiRB3zo i+y2GMeCAhr30YpBwoh4LOBfeKK7rgpKcVV/2MWqmYlKp/sdYZ/mHW771mSCR9KHR92z 6XElUl9wdFw3wkf0L/K+IFxkjEBGHjpMnIxPezUzXokmbwZ3xMIhfQ1asE3TBzh2kudx DTjA== X-Gm-Message-State: APt69E2Xjg8LJuHjMD8b/wPVN8XZsaITcfG8Kj0AA2P5P/+iG0+CFVes UKPQH3DqrV7G0lrcjibJSEh0Eg== X-Received: by 2002:a1c:c90:: with SMTP id 138-v6mr4163078wmm.110.1530803391727; Thu, 05 Jul 2018 08:09:51 -0700 (PDT) Received: from andrea ([94.230.152.15]) by smtp.gmail.com with ESMTPSA id 189-v6sm8168580wmd.17.2018.07.05.08.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 08:09:51 -0700 (PDT) Date: Thu, 5 Jul 2018 17:09:45 +0200 From: Andrea Parri To: Alan Stern Cc: Will Deacon , LKMM Maintainers -- Akira Yokosawa , Boqun Feng , David Howells , Jade Alglave , Luc Maranget , Nicholas Piggin , "Paul E. McKenney" , 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: <20180705150945.GA3699@andrea> References: <20180704121103.GB26941@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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. Thank you. Ah let me put this forward: please keep an eye on the (generic) queued_spin_lock() queued_spin_unlock() (just to point out an example). Their implementation (in part., the fast-path) suggests that if we will stick to RCsc lock then we should also stick to RCsc acq. load from RMW and rel. store. Andrea > > Alan >