Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp26791imm; Tue, 17 Jul 2018 13:15:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcvozQogPLgpUTlWzjXiyW5VqA8DGPw5OR1V85A2Bn3iaRaRyGTPIQJORPtwD/wj8v/is/o X-Received: by 2002:a62:1f8c:: with SMTP id l12-v6mr2163342pfj.143.1531858507671; Tue, 17 Jul 2018 13:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531858507; cv=none; d=google.com; s=arc-20160816; b=vY/vCUo9DbeiNXu6bGf9XViSyI+dfNWBokCPgg4WaCkkf05mvX24IAJQL8Vu/zqVZW K3v5kRHAc39Ee54mJK3X/iQpg0GQ/LUgjyjnmDXBGHSL4/bef5KvgZOraG/TKkPaR9ck UkFzaI2YQb0YM/cuSaNKin+fixIuVKhgUQ5STx5wjvE+dsyyPJeCmo+3aQ3Q7C/Qwnxi J2/yUAwPWrQ1vFCxdOnRHSco7sEp9pJJITuQwvsDBi6d4Eq9GNqOgGHM6vSEWsGh3JhE ux8yJWkHd2TS6rkOqXW1QNZ5x25qWzYoqCYmRD34CQRmUyvhFi0ep/DrQ8b2PBR3bWoa YnNQ== 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=aBNGvOwE2k6zHFGYPTokhboJ1nK9O//k08KLpx5LKrA=; b=XzWXgAccfyUqh653k7JKQwC15lkI1ee5418z5sErOQxmTmNWwvGU+cHKg+wsc3Ys1z zgusHtqV6j5P0sVbe6RajVmBuKfp40xfyLn6z+FEnk41JsUiqiSwdAuUQGUPII2NEbj5 jf19V3wdNNxDfTJQwQPptYlI1jQHEXI4tUXkGI66hAYlTNI6nqEX8hALUyBjtKkJLJ2k vDO0NS+P1Oy+cU2ODimIvQm8Hs8Ixyb2dOcSKx7oBRING7odc7PuvBZqvs/dJMU61K7G f/VsaBvgdB+5X8TOJoLtuuIw39uJjWo72qhWzF8IDkLAEBcuQVJZfz/ew3sMF5wvUTUb TZ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fHKZvdw2; 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 t9-v6si1291541plo.307.2018.07.17.13.14.51; Tue, 17 Jul 2018 13:15:07 -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=fHKZvdw2; 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 S1730693AbeGQUsT (ORCPT + 99 others); Tue, 17 Jul 2018 16:48:19 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:52542 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729728AbeGQUsT (ORCPT ); Tue, 17 Jul 2018 16:48:19 -0400 Received: by mail-it0-f67.google.com with SMTP id p4-v6so951341itf.2 for ; Tue, 17 Jul 2018 13:14:03 -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=aBNGvOwE2k6zHFGYPTokhboJ1nK9O//k08KLpx5LKrA=; b=fHKZvdw2qL4ob1tLQ+4zIerq9oD9beDN9wIAqmYxsyNBztSXa0B9CrlxATeuNjezmD QL3MKNG/5iuZRlYZJsrxAjZacJug73wrOeuWlb/znCYpdTDOlgbRjsHR3L/WM3Y1UTBN ck++dh8mrDOa8H+eZPpFe2FqDwSRryXb+uhAM= 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=aBNGvOwE2k6zHFGYPTokhboJ1nK9O//k08KLpx5LKrA=; b=d8DO/MdFln5pzmuSGumAu0iicq9McaHPz6I5Q1IiOm1HA7FLDkDs/nWiiXuAkIrG1q PJfvMLGcOCNw2eJ8gSDxQGJNLiKkSggaTWWQuT/z1e+7AyfqSUtHonQ4MDRXwMOiOyaF SCxIDWKsF/sFJAaYlj3JN3F2Y3Hh2tr4++2+Ns3uzXEmROgQr4x27Big5EXCzJfmzW55 ZcwLj6MvmWg1l7SUTAGK2nfPC92sAjmoIC1AnrTD1V+MKTpK1ovrJALuMnX/K9k7/tkK kNGn91GXgrsi8q+h1HsPTYUjYp91AweoniAssPR7GaFl7OtfIzxvNZldYsRb3tFVMlK6 FYzA== X-Gm-Message-State: AOUpUlHFoF5I8YfxTFA0Ihoq7DlD+7Lh7X7wGAGLnebkPEngu9WQCr2a xbu31/qhUQJSu+pTHKblidFI85LyuOeuFapWnFs= X-Received: by 2002:a24:d0d7:: with SMTP id m206-v6mr2773254itg.1.1531858443250; Tue, 17 Jul 2018 13:14:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Tue, 17 Jul 2018 13:13:51 -0700 Message-ID: Subject: Re: [PATCH v2] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire To: Alan Stern Cc: Paul McKenney , Michael Ellerman , Peter Zijlstra , 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 Tue, Jul 17, 2018 at 12:37 PM Alan Stern wrote: > > Why not? Instructions are allowed to migrate _into_ critical sections, > just not _out_ of them. So a store preceding the start of a spinlocked > region can migrate in and be executed after a load that is inside the > region. Hmm, yes of course. But the isync instruction description I found also talks about the previous instructions being "completed". But yeah, that obviously can mean just "in the store buffer", not actually ordered. Linus