Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp125115ybi; Fri, 26 Jul 2019 07:09:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLebKaiKOvfdNxNOHq2udlo60vWyE0DqYhCGt3YwbgWXCG1Ui0fLITGPriKFmBB3n5r6Q5 X-Received: by 2002:a63:1046:: with SMTP id 6mr93948508pgq.111.1564150154622; Fri, 26 Jul 2019 07:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564150154; cv=none; d=google.com; s=arc-20160816; b=TvQBuCsFvonldX1nGIhpMZydtZzNV+ewJvFQYB3DL2LoWotCjAUDb+epawHqE5nYJx w9BOpXUqSp1hx3rhfPEOBHNsDiGxI7FP1E1rrkIQV4oZ9jweC+pKq9GmUxaaVFsv+zUQ cZP6OVeG9ICsRbM22GgbGexRD7Ce5LH0g4urWqnf/Gvi9wDbPEOYerRbD7S95hbWpgeP bG821Cg3OP0/ecdKk4nzkC7O+5NXYDVWzjvxS1V7tbBp7WKe7jMGPZx2peYrJ5mkEo97 BFdxcbb2SqlPIEoJI+UtazCplKwgxH6RxV1UQi1mAr3caQBDUYVrBm8KWMRoyOwAvxK/ 6hHw== 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 :references:in-reply-to:mime-version:dkim-signature; bh=zWt0jo8AMAZchPeNnT8VtD1Yz35B0VOWcsrzm+hetHc=; b=wryjdHIaJuHIxKJHyJakXxQFZjT2ZOIYjf49OVZKixXFSopcRVFdDytyeRrXcwJ3TU E/oshqrS/UDNS/XFp8TEBI6TIbf4aEn+iix9lDtmb/sTA97wce6obAmJ5XdTJqDABeUk R7s7VJ1KtPbfPUJ3ATOj9Rc5iQRUC/f2NRLuzxcNQmgAmsfLpfU7OE7O2YTZA2Onhij/ pP6JpgyMTnMlVa1/bHq+UPGtl/ewRQlS2SjXvqsHHV3VSC9kUZb3oID/DwOJK8W9TglE UVCRppm78N6c9KYz4NE0C57aA7u6H10jTv/Ku736n4RFmI95EHm09BE3iazcz7i8EY1/ p1cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EBcVkDbk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e66si18190415plb.254.2019.07.26.07.08.52; Fri, 26 Jul 2019 07:09:14 -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=@gmail.com header.s=20161025 header.b=EBcVkDbk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727476AbfGZOHm (ORCPT + 99 others); Fri, 26 Jul 2019 10:07:42 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:44158 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726784AbfGZOHl (ORCPT ); Fri, 26 Jul 2019 10:07:41 -0400 Received: by mail-ed1-f67.google.com with SMTP id k8so53365113edr.11; Fri, 26 Jul 2019 07:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zWt0jo8AMAZchPeNnT8VtD1Yz35B0VOWcsrzm+hetHc=; b=EBcVkDbkQNLVIGiixEGt7/effrRULBIFCXd9TZAffqJ0lq9fLauFVglwd8b2bkfIyN BC2KTJ0r7uFjeAiEasWUgU6aWedhVoGCjUdR79nMIVUDf9eRmgNeFHwfIhnG2q+vPRj7 KHU9aOnIUcaakS3x7UtUstN8BEHp6jrdVJM3xQiElzojceQJjqShcUo3suIS3TZKEIa/ q+wCSwmyLhAMXWit89VHrabrdm0z8JodaAn4xOccgKrSmNSXuwY7DZP8cbK9m5UDEhTA TbTSj64wO85eM1pq276rMeD9A4c5mKU+DVMlfW5NOSsvxIMd+TxOHofzx8wrdUuqQLLM 3rVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zWt0jo8AMAZchPeNnT8VtD1Yz35B0VOWcsrzm+hetHc=; b=EPCg97zCZQzhPo/OjPa05yATVxc7UIb71QPZXrojpMtn5sQHgL8qIpvlOHmathyFvE azhRQ0ePt5HQsxOPZgYf8lZAp+mChZ3gptS1eoMIlmP/M92N9vNYuETYerEFyQEJMtlY RiTrOBnyHgvGbyntegfOrjGdxvoswFMO5ky9tzxEybw4+7thrUcWjIoNNTCVM0GuyQEJ Wz7KT0HcjazfNegtHhs3Sl6nJWc9gWjWK5dL6BA/gGlSwgaUHtEegsHtGAnPEeXSXbrd dxU+NxC5kh6vOb7MMZJfjuqQvsNHqFYrTXsFFTqjDXchKUvI8V6pajcoJ2lnX2YFwAAQ sunQ== X-Gm-Message-State: APjAAAVOOj8inEfFoJU2Ea3SEVxhPHg09lg2KwpHzjVDSEFtpX8FvLOj Chmb04qGoQ7ZqP369tTQoVmZ4r2e3raCotLwVMg= X-Received: by 2002:a50:8b9d:: with SMTP id m29mr82832052edm.248.1564150059833; Fri, 26 Jul 2019 07:07:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:b3b9:0:0:0:0:0 with HTTP; Fri, 26 Jul 2019 07:07:39 -0700 (PDT) In-Reply-To: <20190726110135.GO31381@hirez.programming.kicks-ass.net> References: <20190724191655.268628197@linuxfoundation.org> <20190724191701.954991110@linuxfoundation.org> <5D3AD35E.FB77B44F@gmail.com> <20190726110135.GO31381@hirez.programming.kicks-ass.net> From: Jari Ruusu Date: Fri, 26 Jul 2019 17:07:39 +0300 Message-ID: Subject: Re: [PATCH 4.19 079/271] x86/atomic: Fix smp_mb__{before,after}_atomic() To: Peter Zijlstra Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Ingo Molnar , Sasha Levin 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 7/26/19, Peter Zijlstra wrote: > On Fri, Jul 26, 2019 at 01:18:06PM +0300, Jari Ruusu wrote: >> Shouldn't those clobber contraints actually be: "memory","cc" >> That is because addl subl (and other) machine instructions >> actually modify the flags register too. >> >> gcc docs say: The "cc" clobber indicates that the assembler >> code modifies the flags register. > > GCC x86 assumes any asm() will clobber "cc". No worries then. Thanks for your clarification. -- Jari Ruusu 4096R/8132F189 12D6 4C3A DCDA 0AA4 27BD ACDF F073 3C80 8132 F189