Received: by 10.223.185.111 with SMTP id b44csp605328wrg; Fri, 9 Mar 2018 10:10:06 -0800 (PST) X-Google-Smtp-Source: AG47ELujEv56AK5GUFo3lz3PV6BFErELrVyhsKUaXz0eKH8/FLXYypiNsr3cH7dem2oDT8MYj/yw X-Received: by 10.99.54.74 with SMTP id d71mr2139966pga.86.1520619006643; Fri, 09 Mar 2018 10:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520619006; cv=none; d=google.com; s=arc-20160816; b=i9xDlo+L/p7WIM+QXKlTM4lMz4e90SNFBbHayjxnxXqJTZEMUFdJKq3v8+5ZKZEY4Z DpcCCTFPC1ITTtdu+Of22V7XCb7OMbQ3ATgiFtdYZmPS4Xu/8TIq3PFkJ9yKDs9Ro3cG ek9GCnQPF/0Gc+ln8g3MPVjjto4A/l3gJJXx4MNRVIPvhazutQ4mO99W1fNK6tPyYpFq hrtGN+ABntuwYsXj87uxJ9tyiaDDdD7CoD9q9mrLCfwBa+cPPuJs5OSqqfm/932JqlRI bjwM6+Mt13RkWbpwnO/8RO3UMwadi4iHOR4KLrPtKxLrStB+3GI+xbfR1+CBomFN7Q3c LIBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature :arc-authentication-results; bh=4BR7Ord/Eb9Uyn5dllQd8xqmP6HGMHBkW5b4rHJfYck=; b=ZL8lOl/UaV8AYFvIUFGKvSQpiDMSWIQ+LpyYiAOy66Px19Yk4Po6maMXyhRbs5nDEb lMu3flN0MWC8DP4e/vxLKgyLK9A3aN7l6Zzt20gaWwQ+Q4a0MGi6zdSPy8AmEZWsfZTj Y2Tvbepo48nde+84xmYouqi0WiR+6AMSxDV6ufrJJvxN0k7mAbhzCKN3GjLmXfkoma+f RvSylBaC33JBVXJE9U6wHk+9xB0DJUbscCj/8KJCAyESIgbIX8Y12b8qDIJznu1frips iJbnMlqwc9pPREreIVXmpzijcGv4BHIzkAMU2FLoz8nJJjVC5UGKwM5icr9yj2SqEsj8 kQGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=d76KmU89; 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 a12-v6si1320688pln.421.2018.03.09.10.09.26; Fri, 09 Mar 2018 10:10:06 -0800 (PST) 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=@sifive.com header.s=google header.b=d76KmU89; 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 S932458AbeCISHW (ORCPT + 99 others); Fri, 9 Mar 2018 13:07:22 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:44224 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751313AbeCISHV (ORCPT ); Fri, 9 Mar 2018 13:07:21 -0500 Received: by mail-pl0-f65.google.com with SMTP id 9-v6so5638180ple.11 for ; Fri, 09 Mar 2018 10:07:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=4BR7Ord/Eb9Uyn5dllQd8xqmP6HGMHBkW5b4rHJfYck=; b=d76KmU89AVa4oGkOyWty2XICF6YOqQ8o6ntXbwE7lOE9fVsIkjCnCFA96C8oZH8cZd qnXeiUOt6E/BAKDMhjlyZTqSjSvTtzDrhB6utbB2Xw7dRCC7Dyvt9gLP3jZ/12OC58N0 VZt8KmN68IEgUI/Nh0YcpsvGhmSfRqESygDgmN/2TVITIi3zTCiAZr6FfgEDB+zOYPxL Tr3r8aqoSi/O6wdZbEW1R015e8L5psgFxpeNPn5dMWlI4XgUQfvrZyJehyTB+6vQnw3B bIU+G5TT02gHiV+IUbIQXdYTD0h4rLkj3bDU6g0cdazqkbpTkSfwjwc2p7b4f/aqYwkI H95g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=4BR7Ord/Eb9Uyn5dllQd8xqmP6HGMHBkW5b4rHJfYck=; b=jlgRmhagkSiBhuWPchJxB6tz1dy79GNMynmGy1080wTyRT/B9ObnVDMRQuAwH15GgA IwsxvuTWg7sLbRshig/kcTuHwH7b7o1wtTmlBfKWA1ZFLZzBx91dZLpCX3rwJuYpjcOM uA4D3vc5KhcaIC/Hp45trkX6mYUXOal48iZBqgBE8Cjep/f95w0yw6WSM4k+TWuIe0n1 gbv6E37DqNlegwm+EEUQ3dioWLq34A4rAMC/+f9JIQaSpdMPk0c3UabJ3LEzyoSs/+Wn vc3HbmYN+xGhh6UM2O5naDNoq4ILDi/t+GgdDqb8Wxy9+TTYqf9a+OenwJnld4Q1uQDU nKsA== X-Gm-Message-State: APf1xPD1Acns4xUfqRTOFM9m3ocXu8rDFX3tw2cvMn3D0D1dYU0kBhNU ltEM/TjZzEkjCXhj8nLoD+ddFw== X-Received: by 2002:a17:902:600e:: with SMTP id r14-v6mr29123021plj.200.1520618840697; Fri, 09 Mar 2018 10:07:20 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id h75sm4128474pfh.28.2018.03.09.10.07.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Mar 2018 10:07:19 -0800 (PST) Date: Fri, 09 Mar 2018 10:07:19 -0800 (PST) X-Google-Original-Date: Fri, 09 Mar 2018 09:56:36 PST (-0800) Subject: Re: [RFC PATCH 1/2] riscv/spinlock: Strengthen implementations with fences In-Reply-To: <20180309121643.GA16716@andrea> CC: albert@sifive.com, Daniel Lustig , stern@rowland.harvard.edu, Will Deacon , peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, paulmck@linux.vnet.ibm.com, akiyks@gmail.com, mingo@kernel.org, Linus Torvalds , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: parri.andrea@gmail.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 09 Mar 2018 04:16:43 PST (-0800), parri.andrea@gmail.com wrote: > On Thu, Mar 08, 2018 at 02:11:12PM -0800, Palmer Dabbelt wrote: >> On Thu, 08 Mar 2018 13:03:03 PST (-0800), parri.andrea@gmail.com wrote: >> >On Wed, Mar 07, 2018 at 10:33:49AM -0800, Palmer Dabbelt wrote: >> > >> >[...] >> > >> >>I'm going to go produce a new set of spinlocks, I think it'll be a bit more >> >>coherent then. >> >> >> >>I'm keeping your other patch in my queue for now, it generally looks good >> >>but I haven't looked closely yet. >> > >> >Patches 1 and 2 address a same issue ("release-to-acquire"); this is also >> >expressed, more or less explicitly, in the corresponding commit messages: >> >it might make sense to "queue" them together, and to build the new locks >> >on top of these (even if this meant "rewrite all of/a large portion of >> >spinlock.h"...). >> >> I agree. IIRC you had a fixup to the first pair of patches, can you submit >> a v2? > > I've just sent it (with updated changelog). Thanks!