Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2730350pxj; Sun, 6 Jun 2021 11:56:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHJxjY7qcfmnAoPHAqAuVxPgLeH74KdqWXQW7x0CRlL0ionM3VuafNpsyyhFnGIs64Gs6p X-Received: by 2002:aa7:c0d3:: with SMTP id j19mr16481266edp.196.1623005765635; Sun, 06 Jun 2021 11:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623005765; cv=none; d=google.com; s=arc-20160816; b=N1rvIyrIFAaNxOr+S7Mc4ZLeMG8pFpJKZDWOZJqtFFCEkoyv0nu+x6sfFdeubK380w 6ORM5onXnlivDATBJrW/iyH83/l94v93GES1cCQAYTcfVr7cCKo/1w45MqSmmTZO6yz0 KOeEQvYwUKA3dj5S8tKOc43FUemlb+d4QmpvfHB+0jGx3ccmHw50bta+xCbgPnNJErl0 AbD0yYe/WV2YobNN7woi5RvzFsSCUxLtMSoXoqJflxuNNrzGD7lcuPyaZ3yWEAlzKZ2a S54kQeIZF/sp4k7VSt+QhWiiF2+KxLadgwZgzHMC+G0P2zksWX9BmYGdeLWF69fLsqSU rVmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=w5VchHZ9HNMBKb35UdCCE6Gr/vCI3h3rPMpf00kyqNs=; b=w0SQZQsjPDbDfrq3WtuYhzpj7HDHRxqw9bU99ZNFUy5timYz5lsOcVsMZoTMoMpI60 wlRzJfGCwx64IJFZunXxSmvgt9lxLd0U/HVEEhzz6nO4O5k9jfiRPMV5krOHw/IOxMIJ kfOD27EZ1wYrTedPLDI5lmDSl2MES7nResmnfG8Ut3pTfve+Ly+dCnLqE0HyFTfQu+hB BKFoqBInrPzhF2NgJ1oQD74O0jUTIqc7R6sus7/mRoPHWgstQKNz1KjsbJMFY/Mzd4kj Y1yvJkAQ9PmD3qsEYLs+eNDxwhnfKR+4883h1IlbtApb7Z3PTf/Fo8HQIfIYkq4rEG6I 0GiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=R2WObvng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si10085551edt.551.2021.06.06.11.55.42; Sun, 06 Jun 2021 11:56:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=R2WObvng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbhFFS4C (ORCPT + 99 others); Sun, 6 Jun 2021 14:56:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbhFFS4B (ORCPT ); Sun, 6 Jun 2021 14:56:01 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79198C061766 for ; Sun, 6 Jun 2021 11:54:10 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id r5so22392346lfr.5 for ; Sun, 06 Jun 2021 11:54: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=w5VchHZ9HNMBKb35UdCCE6Gr/vCI3h3rPMpf00kyqNs=; b=R2WObvngmVBGf8fkmSu/raDi70MtimjnPeoLsRpzIZ/QqlhRT9W729qtXgs0y+YRgE RccuCLSCbjRdauVYzc5HtTIUl0hU4XX6sAN+eohhsDMHfJe3SgfHLry/97Z55h4vRb9s IIm7AvmNxOb4EStL6EMtVKwNqWcgL8ls8QUQo= 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=w5VchHZ9HNMBKb35UdCCE6Gr/vCI3h3rPMpf00kyqNs=; b=fSyAtX7kuIGonIpHk6wlCKqz6KpF7oGV5ygSNp+4RVV0+pmQ12Q6l4cSEX22eHwHBN uT4GaCQqKtZuditFovmyR1GMi4LcMsE1R9tlNhtDcY7PCyNRQXo/HDg3VybA9SRUDFjJ mstzvwAh0bjRjdayDx4YlxkqEi4cFqnGLB9YnedrHI7j1Hyo8jKe0JJ+nRMQHxueOYd7 grJptn3lRuybdOtMYpx3sA6JqW8bbZwLiToARSZw6qwjMjl7JIp7Gs+G01NWx19+NaDc Wqhf5EKST4lbqisvVtRX84DuA+cLmggpgAdshfOhsk3fh+ZSWgpULe3CXuA0TH1fbKiI kI2g== X-Gm-Message-State: AOAM532s0Y5KjOyjwe/rv1YYo36z84bbmB1/mbJbn2DhY4S/XkzXdvM4 Z1AC9Pl+T0IQgvtuh8yjt4fklKfQWU2MGEIpsR0= X-Received: by 2002:a19:4083:: with SMTP id n125mr9357269lfa.585.1623005648367; Sun, 06 Jun 2021 11:54:08 -0700 (PDT) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com. [209.85.208.170]) by smtp.gmail.com with ESMTPSA id h8sm1225249lfd.73.2021.06.06.11.54.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Jun 2021 11:54:07 -0700 (PDT) Received: by mail-lj1-f170.google.com with SMTP id w15so18898885ljo.10 for ; Sun, 06 Jun 2021 11:54:07 -0700 (PDT) X-Received: by 2002:a05:651c:333:: with SMTP id b19mr11965516ljp.61.1623005647379; Sun, 06 Jun 2021 11:54:07 -0700 (PDT) MIME-Version: 1.0 References: <20210604205600.GB4397@paulmck-ThinkPad-P17-Gen-1> <20210604214010.GD4397@paulmck-ThinkPad-P17-Gen-1> <20210605145739.GB1712909@rowland.harvard.edu> <20210606001418.GH4397@paulmck-ThinkPad-P17-Gen-1> <20210606012903.GA1723421@rowland.harvard.edu> <20210606115336.GS18427@gate.crashing.org> <20210606184021.GY18427@gate.crashing.org> In-Reply-To: From: Linus Torvalds Date: Sun, 6 Jun 2021 11:53:51 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC] LKMM: Add volatile_if() To: Segher Boessenkool Cc: Alan Stern , "Paul E. McKenney" , Peter Zijlstra , Will Deacon , Andrea Parri , Boqun Feng , Nick Piggin , David Howells , Jade Alglave , Luc Maranget , Akira Yokosawa , Linux Kernel Mailing List , linux-toolchains@vger.kernel.org, linux-arch Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 6, 2021 at 11:48 AM Linus Torvalds wrote: > And to work well, it needs "asm goto", which is so recent that a lot > of compilers don't support it (thank God for clang dragging gcc > kicking and screaming to implement it at all - I'd asked for it over a > decade ago). Oh, actually, I'm wrong on this. We don't need an output from the asm (the output ends up being in the targets), so we can use the old-style asm goto that we've been relying on for a long time. So the main code generation problem is just (a) all the architectures and (b) we'd have to use a fixed conditional against zero. Linus