Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp625035img; Mon, 18 Mar 2019 10:31:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqymf9v4MBFGeoWX5eUJNVL88wpor4tRQ3XF8Xp7xZQ/yxviVqdhrTG4Wid5ZHhxY+uaNUfp X-Received: by 2002:a17:902:b416:: with SMTP id x22mr21103321plr.285.1552930284597; Mon, 18 Mar 2019 10:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552930284; cv=none; d=google.com; s=arc-20160816; b=qnviLtTkRnbuBeJGUU6FsEdb5hqWQKiwSoY3bxCkxdJmyzHqvHBOe+qLOoHB3zZxv8 vLcZtj0n2fLHSou+sRps7/puBqHLWfakRrM/wIVFTXMhi+FAvTutJpl12A4mDJxDrCq5 N6puf8LVJZHb/8/+78cVDpzRpKsHwubbd9gyDx7D4a0uGWBw41JHeQrFjsOqXCiLhNXS Hpy0Guge6qLAlIkIgSUrxIiX8UhOtt90xGZaITcUKafsaXhjcZD+cFTupVUpf9wQBxrE w1EcCS3oOJ1vFntyKGzUc1wUt/xLOLZfZi7x1fse2khDjxGZ2cPzDMnaH/PCjtUK4+wB +0wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=+zhvTS202CwYsEonHTDFHA4DMdj9DGFQuYKwZ3tFHgU=; b=MGwly91PLU5rw1+yIntnY3sED9iURXYoo+lEnXB3UOURuU+1aExnEq18nMei6DFcjQ A7rOkPyB7Lnhx1yhgFhPe4c/fijijXeZQ0fHmYQ8ngaEz1F9Wvd1zSUaoh77Dl5kPIbB k02SfPO81qbBCc9CbojSn3r7GSTxzVyRqSN95AiEVYLdva5U37GJdHTe0CNmRha5Kv27 m6QuHbiP+vkwwQteO6nM33JEFFT7+7fUp1PNk6QmntEoi2RmDCYhL6so8U0wgi9UqN2y 1MjdzOP3ouqutRFXhYgcuB4QAFVRshteZ9y/zA8bM6AKi4O28Mb8CYQjk8/S4VL/D4KI 7JNA== 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 r11si9585535plo.400.2019.03.18.10.31.09; Mon, 18 Mar 2019 10:31:24 -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; 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 S1727202AbfCRRa3 (ORCPT + 99 others); Mon, 18 Mar 2019 13:30:29 -0400 Received: from ns.iliad.fr ([212.27.33.1]:55298 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726765AbfCRRa2 (ORCPT ); Mon, 18 Mar 2019 13:30:28 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 0F61E20723; Mon, 18 Mar 2019 18:30:27 +0100 (CET) Received: from [192.168.108.8] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id E392A1FF12; Mon, 18 Mar 2019 18:30:26 +0100 (CET) Subject: Re: [PATCH] arm64/io: Don't use WZR in writel To: Robin Murphy , Russell King - ARM Linux admin Cc: Marc Zyngier , Will Deacon , Jens Axboe , Jeffrey Hugo , Catalin Marinas , LKML , Bjorn Andersson , MSM , AngeloGioacchino Del Regno , Linux ARM References: <68b71c15f32341468a868f6418e4fcb375bc49ba.camel@gmail.com> <20190211105755.GB30880@fuggles.cambridge.arm.com> <38d8965a-cd41-17cf-1b95-8dd58c079be4@arm.com> <874c702b8af760aa8fae38d478c79e3ecba00515.camel@gmail.com> <235d20ef-3054-69d9-975d-25aebf32aad3@arm.com> <20190223181254.GC572@tuxbook-pro> <86zhqm8i6d.wl-marc.zyngier@arm.com> <20190224035356.GD572@tuxbook-pro> <33d765b5-1807-fa6c-1ceb-99f09f7c8d5a@free.fr> <8eb4f446-6152-ffb6-9529-77fb0bcc307f@arm.com> <20190318170041.qu4x2565fmno6sei@shell.armlinux.org.uk> <5ba7c4d0-30ec-e38d-41dc-653fd5cb7f05@arm.com> From: Marc Gonzalez Message-ID: Date: Mon, 18 Mar 2019 18:30:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <5ba7c4d0-30ec-e38d-41dc-653fd5cb7f05@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Mon Mar 18 18:30:27 2019 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/03/2019 18:19, Robin Murphy wrote: > For the context bank reset, yes, I am assuming that no complier will > ever be perverse enough to detect that cfg is not written after the > NULL check and immediately reallocate it to XZR for no good reason. > I'd like to think that assumption is going to hold for the reasonable > scope of this particular workaround, though. I'm not sure I understand the above paragraph. In code such as: if (val == 0) foo(val); gcc's algorithm is likely to figure out that the code is equivalent to if (val == 0) foo(0) and perform constant-propagation, etc. Is that what we're talking about? Regards.