Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1992465imm; Thu, 12 Jul 2018 11:12:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf94kzjhM2/RPUL+7iuoSYZXrKu+J2J5vlTDDLdG5bxIV2oyU/OShQuj8RqXAbXYUetITSR X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr3559705pfc.156.1531419120634; Thu, 12 Jul 2018 11:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531419120; cv=none; d=google.com; s=arc-20160816; b=ALdN6f41BFc0LmyZWcIFJBWXT47SvO+/fdoC09CHjYvWlzZIyttT4+lVq+2u3xjjbI hwi/8QLqXMvxK+vDLmNtYuR98ckIl6vzYBjoNerP0foaeRD5/OXim4kKE46b46LNznzT FvDw893hiJbEeHJzMkKDkVb4L9oQqbyBd9uqE2p1iLZhjnK+/c3cM1JhRMjxp1oADI8R vFIxjw75AIa8gWvoCaiLMDBhrs6jbgGE5uLS/OnUKcQeqXHQ8VMMyXgi9CTUiF/Y+4jw 17w8y7iejZx817I8+WMgkzb6xqid7ZI8YFaaiQabsFL5kI5uv0s7jxMGmO/hwdEyz1ua tRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=7Kc8gvEjY/sJDU3kniCAuWeH+ScBR3Ojts/E3OM9Yiw=; b=lOml7uyeIaf/S4yBedgHp2TZf7jYp7CswKlgSD99+ikhf5U5HGg0VN95R5nScJZxwQ UXQQQkqeHe1Yg5hTXRwfXs9IUIJybocVgY5/1zeNWdZWvdBj12tAXVQaJYqWyHm+1ePG AL+t5hTXwbC2C3K+NRE6xTDuwjU+eWbwAYm5dVI3RSe3KC9frGaK2vZXgI2a7b2cxXc5 Doc+Xt8bUdw+iWATT4NztTN9ZNw/4JtG6cznIrzsJGVYjqxuMxQ9fndLoaxsoPRD/nUg 2doYX3XEalVBi/SAfP8oubZzt5FwKPICG9GqlBAOVsQIGpo6UfIZqxsd5/xzrf+k5eBI vJQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=GwrwK7C3; 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 k1-v6si7789197pll.307.2018.07.12.11.11.45; Thu, 12 Jul 2018 11:12:00 -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=@linux-foundation.org header.s=google header.b=GwrwK7C3; 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 S1726705AbeGLSVu (ORCPT + 99 others); Thu, 12 Jul 2018 14:21:50 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:52481 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726444AbeGLSVu (ORCPT ); Thu, 12 Jul 2018 14:21:50 -0400 Received: by mail-it0-f66.google.com with SMTP id p4-v6so8103126itf.2 for ; Thu, 12 Jul 2018 11:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7Kc8gvEjY/sJDU3kniCAuWeH+ScBR3Ojts/E3OM9Yiw=; b=GwrwK7C3wFKpHftBRBUZvzwbSEiAvg51YB+gASFes8YGTVvgT9RQdV4deD8e44MB4z vUtoYluX/+vkPYQC6v/73NK6h10vhCZkFsyauQnBgxw8hHYPtaaMGmlQeYHRT2j3EJNi kkznZfZMZu47ex5u1BJULUQIdlBNzIp4lmzjM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7Kc8gvEjY/sJDU3kniCAuWeH+ScBR3Ojts/E3OM9Yiw=; b=FNg6qdlldxxz5y66MuRpRco4KTg4LsVCzQmGDg6NY9fgJf8jBIaC0WMyj+H3UrD6ok A9b8yB7aLfl4W7u1Ewj/W41ZBu9ZQBHrgFfSt9Ov7sodAGisB/qwZOMUMcbNBeh5nhkX hYzhUDIXyA1M2ngwiy7lwbyyKc47zYsWFAYfQ3W5aaUvs+ZjaKA5tX1CUx3X4CVwgJEc x/H56KwMHZ8fLHgiIACZEbJEfZz/avf3JrVeKp4iaNeNRGbx0908s0RFgjv7g06y91ac R4gTmJp2cjDCqgPTTvJpGeFlQvPaJ0l2S6WkX/5Q7D/nbj1WZBzSjNXwGyYmLB2s2iZg O9+g== X-Gm-Message-State: AOUpUlFs+dROjkHRt6rh9xDaDzpYJZDnCfPU49vQubDp/CRUxQVi9/cs qO+pueBVpNHW0zM5frDQWbZLnXFonysQIiHMGP0= X-Received: by 2002:a02:1bdc:: with SMTP id 89-v6mr2481671jas.72.1531419069410; Thu, 12 Jul 2018 11:11:09 -0700 (PDT) MIME-Version: 1.0 References: <20180712134821.GT2494@hirez.programming.kicks-ass.net> <20180712172838.GU3593@linux.vnet.ibm.com> <20180712180511.GP2476@hirez.programming.kicks-ass.net> In-Reply-To: <20180712180511.GP2476@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Thu, 12 Jul 2018 11:10:58 -0700 Message-ID: Subject: Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire To: Peter Zijlstra Cc: Paul McKenney , Alan Stern , andrea.parri@amarulasolutions.com, Will Deacon , Akira Yokosawa , Boqun Feng , Daniel Lustig , David Howells , Jade Alglave , Luc Maranget , Nick Piggin , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 11:05 AM Peter Zijlstra wrote: > > The locking pattern is fairly simple and shows where RCpc comes apart > from expectation real nice. So who does RCpc right now for the unlock-lock sequence? Somebody mentioned powerpc. Anybody else? How nasty would be be to make powerpc conform? I will always advocate tighter locking and ordering rules over looser ones.. Linus