Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1084462ybl; Fri, 10 Jan 2020 11:48:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxyr0O5Bpba52k6Pm6MYbI3f9w4jtNbbTUJ4xLTLCrLmOi0o3h3vQpqS1gTGgvhAtHjexhg X-Received: by 2002:a05:6830:1149:: with SMTP id x9mr4098826otq.156.1578685690045; Fri, 10 Jan 2020 11:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578685690; cv=none; d=google.com; s=arc-20160816; b=kR3w3g9Qbl7sDiUbPDhlgpWdhz2Obwvv1fUgEKSyrZ0SI5ARB0kH0KwluUNowdcf+z yKr0BAaBWoTcAwI5vSFhS/jDkq8bqcXHa4/v9x9zKLo/XvuEG9hI8QHCoYu+gX5xpDss QtrsPzYZKt+d0zoSZz0OcrlF5HBmDai0hz2v0Gde2uf+hOs8DP4xKMjmGbyi0SIgG6X9 jZ41Z19L8IwjME9IUTsAmvr3ZVeosXl8d8wWWxWYAOKMCDo9q+kmwvhWpTwjLYFBJgKo JPRmk06qsUT9uyppuW/KqEaAUtRPDT1205kPC5TFXG+pLPa/tMd3a567D2uCOVlP8blL 0CYg== 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; bh=IWuwmwZR9BbFnNW3uWo6XG0Ce3MQm3X/8GMTcGImmqg=; b=V3bXKxwIDcpXlDQZCMH0uk/ZXvbwVdZEl5yiH8PHdjp4S5KKEpsr55VmkD721FiFvd 3JJJ6sK9AWVedEQ7S/2UH/QlDVreg82PXDYAVCsVBlBpxPxKv02Py0o3WnzGYyzaScyb mIWQPtL+t2FEJcnVVXWCp0B4gCnp7gi0uAT6g/3rZENzmwrzhrNroTYyDmZJICTeHAkC WP6QFi9OpEnaDSVq2Qw+sHHVSj/DYJ8A86/eUOuwNNC7lIq1QVf3ilzkRmP+J71GL30P f8pIHJ/5xoDoiIkdO+uPSPmiiq0KwU82H5UtNJyVcbsboyFXjzxWdXObLaiR2mbZRqJk XmaA== ARC-Authentication-Results: i=1; mx.google.com; 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 o17si1852108otk.135.2020.01.10.11.47.59; Fri, 10 Jan 2020 11:48:10 -0800 (PST) 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; 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 S1728772AbgAJTrD (ORCPT + 99 others); Fri, 10 Jan 2020 14:47:03 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:47301 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727812AbgAJTrD (ORCPT ); Fri, 10 Jan 2020 14:47:03 -0500 Received: from mail-qk1-f180.google.com ([209.85.222.180]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M8hR1-1ilrVc3GzZ-004g7W; Fri, 10 Jan 2020 20:47:01 +0100 Received: by mail-qk1-f180.google.com with SMTP id z76so3023559qka.2; Fri, 10 Jan 2020 11:47:01 -0800 (PST) X-Gm-Message-State: APjAAAXG//wpkJtsFh4QP7PLodBqQa5sfi2frBVdk6Ref9tO8HWED6ps MiFIIvrczXPl0x1D2sgSh7IoJB+S7dGjB2Oks5s= X-Received: by 2002:a05:620a:a5b:: with SMTP id j27mr4888379qka.286.1578685620608; Fri, 10 Jan 2020 11:47:00 -0800 (PST) MIME-Version: 1.0 References: <20200110165636.28035-1-will@kernel.org> In-Reply-To: <20200110165636.28035-1-will@kernel.org> From: Arnd Bergmann Date: Fri, 10 Jan 2020 20:46:44 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/8] Rework READ_ONCE() to improve codegen To: Will Deacon Cc: "linux-kernel@vger.kernel.org" , linux-arch , Android Kernel Team , Michael Ellerman , Peter Zijlstra , Linus Torvalds , Segher Boessenkool , Christian Borntraeger , Luc Van Oostenryck Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:YPR8qgKCjRSZ5m5lyfH/hvPI9BfiP01HjLaLV8PZ/2XxXaWy9KT 3Ydj3n/uCCW4qQAlzfve9ny2aK2Q0wzHI3vyaWJmr1ivVvMpC4+1HpsnAJsRb4PTNlNExFp 7NBUCGjIkDh5z9N6E7heU1PzkA5d26GqPuWuyHNv7cKeHI5WAmmCXOC7WfNbekCLgTyc4oQ QPzOoqukoqj0bvfY2YtLw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:PHMWjEJ2xxM=:vc7F7R/abmCfVnE9K9kbVD jd673uufKCU4zam2w5lmhogN1Cj2cT7VJV7rc9DZhJPCXuDhBciNwCyPwZZ9ewgGqhM4ZxAz/ N/XeAJESGdQ4eXiJSX9ie2ljApsuPfRHADQZnzOiz0+mxJm+2MswJyRKYzXzJgOVl28RQwpRN l1BfePH0Jt/kiuW5Vi1OTXSscppgFy4aEbrZ1WsFuTEqEXpQbdL8SO9YKiESM2+Zg+e5yr9p9 VOtbup4/HU79ddB+m4luir35zvgjW0WmYkEPwVZQ7qYGLNDzi+g9GMGWqYCDbulcnC7krsklR 1YUPWlqZtG36c6Uz/uWwL93Xr70sCRWuKI5IW9kOTqVurZBCjdkfFoIfytZywdkV9YYlL3uSM IvlgpNIRBirfVMkpt72+PYEMPiz9HPk5FzDjR6929IoVgvwCQT8oLQejtVO+fmBoNJW+JKOo3 psaq6lYkzI20i5fKMi5NS6jIDW2ZosH7sZ9D7MczCQDeQOLNQqvS2xA9mUuPXjYRrdXH7UgIk B64dceqxder/U6W/XpPwIYQCxVWakcZd5eih4CqKimg3BtQsSFxeyKEKIjJQE/QaeVtXTYPYK kULZxnaqpcbB4840jhN0NrAVgVQ6IpjmOnhlAPvU7iVvY1RI+hBMOc/bLDMoZnVgfYopDTXk6 Y2MqYJi4osWS1m+EaQ76em6AOGFAt9H1kWQSu9K5oc+ddmFDLVLU0ZPEWNsht+zz3qKRh2tON xAgSyMRQ5iFXbhVaknc/IeHUNvQEc+phCNpgKAzE9FHk1WdYx2yNAPZW/XxAI3J5Yxs4tdB06 Jz11pOrEcZVq2lGWc1m6F6guQEh0vn7xQraZ+eXhhqCOLpCxXw3CNf5l2xReiT1i656AN0Iso dsL+UuKRxJIGePz5W0Sw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 5:56 PM Will Deacon wrote: > > I have more patches in this area because I'm trying to move all the > read_barrier_depends() magic into arch/alpha/, but I'm holding off until > we agree on this part first. Isn't the read_barrier_depends() the only reason for actually needing the temporary local variable that must not be volatile? If you make alpha provide its own READ_ONCE() as the first step, it would seem that the rest of the series gets much easier as the others can go back to the simple statement from your #define __READ_ONCE(x) (*(volatile __unqual_scalar_typeof(x) *)&(x)) Arnd