Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5C8CC64ED8 for ; Mon, 27 Feb 2023 19:40:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230086AbjB0Tka (ORCPT ); Mon, 27 Feb 2023 14:40:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbjB0Tk0 (ORCPT ); Mon, 27 Feb 2023 14:40:26 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA1BE26CF9 for ; Mon, 27 Feb 2023 11:40:10 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id da10so30467621edb.3 for ; Mon, 27 Feb 2023 11:40:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RghMngOwlwE0UIHyAe26+VKy5fxUypVplAAfNB7AdWo=; b=JHjqy9oW7O91e58jpAg7pzCiowii5WfWha3c/+JAHdcaemModBaNw4LuToH20xdAfG JJnADpuescBUYNB8PT11gAOZWE2oAp1Tr3gxg1fRzs+22REvqp9/IN5qoQTO2O69Gn19 UpiCFJKWcGK+WW/aXl5aqpNnfRNxOzsw1osrm3OHwqBzP3ky2BSXUspo0y7kKgTMTkbz iYhy7o0uhIh/F+S22Wiy2+IQOW9pu3aN4P3jbmM573CvGPLpa04JADMc11faBhTM5cDf Q1cwsqncGnGQBZWY6EfkYmovVDUHEHVzd2Ah825rDSrPsoZTv3OihNhh47vXaxY+/7dG K/iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RghMngOwlwE0UIHyAe26+VKy5fxUypVplAAfNB7AdWo=; b=ny30M2Wer4pRVVlBmUhKDHSBN/zn9Y35PqaeCeD5jP12TaTbPiqjyxPx0ZRarogcs+ PyarZL54w1VYQnyE042xM6Bo2xTVzUwIDRJl32SPwRUa+aqgFKQaaqkHLGF8lQIiQ4ef goxBtmI9F3sEvRAKnwAuU8QauCzVmGvSQguWsHuXdIBGlgyG1GwiCoHnDpppcgVQXuyL oiG4zf/83vLl3DMW7Tmsz7WNYK2kT4665Fg7zS07rnNDh5bDJtyki1CaI7BEoTJWscIr /Ho3UL+ExOWe0p+QFWt3pOjIir1GQgwIl2ER3vIWkzSuOrvfPwm98R7ahiy/hYB0aZ5q Pd0A== X-Gm-Message-State: AO0yUKWvoXADp4q/kszI1hpkfkyMunHldo1UViOYPBIYzK2ZlRbkaApN bSo6oEXkQ4vnqvFPfgjRCdbfXT93PeSvrr1u X-Google-Smtp-Source: AK7set81SFQf+c5by6sCf2RBSmnlygWurkWhAQzPb/KacU5xJHptAbNpCugr+dGdG9URjsmC56Q4UQ== X-Received: by 2002:a05:6402:120f:b0:4ad:66b:84a5 with SMTP id c15-20020a056402120f00b004ad066b84a5mr730546edw.22.1677526803990; Mon, 27 Feb 2023 11:40:03 -0800 (PST) Received: from andrea (host-87-18-14-224.retail.telecomitalia.it. [87.18.14.224]) by smtp.gmail.com with ESMTPSA id s21-20020a170906061500b008ea5f4fab5fsm3604049ejb.145.2023.02.27.11.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 11:40:03 -0800 (PST) Date: Mon, 27 Feb 2023 20:40:00 +0100 From: Andrea Parri To: Alan Stern Cc: "Paul E. McKenney" , Jonas Oberhauser , will@kernel.org, peterz@infradead.org, boqun.feng@gmail.com, npiggin@gmail.com, dhowells@redhat.com, j.alglave@ucl.ac.uk, luc.maranget@inria.fr, akiyks@gmail.com, dlustig@nvidia.com, joel@joelfernandes.org, urezki@gmail.com, quic_neeraju@quicinc.com, frederic@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] tools/memory-model: Make ppo a subrelation of po Message-ID: References: <20230224135251.24989-1-jonas.oberhauser@huaweicloud.com> <20230224183758.GQ2948950@paulmck-ThinkPad-P17-Gen-1> <20230226010110.GA1576556@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The LKMM doesn't believe that a control or data dependency orders a > plain write after a marked read. Hence in this test it thinks that P1's > store to u0 can happen before the load of x1. I don't remember why we > did it this way -- probably we just wanted to minimize the restrictions > on when plain accesses can execute. (I do remember the reason for > making address dependencies induce order; it was so RCU would work.) > > The patch below will change what the LKMM believes. It eliminates the > positive outcome of the litmus test and the data race. Should it be > adopted into the memory model? (Unpopular opinion I know,) it should drop dependencies ordering, not add/promote it. Andrea