From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B6CFC433EF for ; Wed, 9 Mar 2022 22:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ifqhqVfN2ZN3xm8dafspWL9PdQndt0uUg2j4lwSGh0I=; b=N70zUhSmjuwrIc p6gfXofqJboRUFbAyjbun/7Tk1OcllU2AbCxA+iuUAmeAI3J5mfTEIb4M/Bad9vLDBbPUEeRxw5qv BUqOEQoLjXlkihMvLcvjqIZqwQtYYqliXpCW4S3aLSgoLzy1QYQ9Qr9ntWyLPKIV/zq6m1j55p10X lRe15piuWibpP6EY9oFLdzxEq17Eg/17n7CL8toXbwHooX2FStZTO/qB7UMEsba4UDTneZn4AqInZ feB/lh8bi0/LJBc9s3QEKSf79KuAjAvr9PSnC8n730+X6yrISko9LrpRm3OTttbKbNioIK0CX5T8G 0lxqSjmTs5iOWRnTVpfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS4qo-00Ag3s-R0; Wed, 09 Mar 2022 22:32:10 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nS4ql-00Ag32-BR for linux-arm-kernel@lists.infradead.org; Wed, 09 Mar 2022 22:32:08 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F37B8B8240A; Wed, 9 Mar 2022 22:32:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCA96C340E8; Wed, 9 Mar 2022 22:32:02 +0000 (UTC) Date: Wed, 9 Mar 2022 22:31:59 +0000 From: Catalin Marinas To: Nick Desaulniers Cc: Nathan Chancellor , Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, stable@vger.kernel.org, Marc Zyngier , James Morse Subject: Re: [PATCH] arm64: Do not include __READ_ONCE() block in assembly files Message-ID: References: <20220309191633.2307110-1-nathan@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220309_143207_563151_D20A8A5E X-CRM114-Status: GOOD ( 14.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Mar 09, 2022 at 01:53:50PM -0800, Nick Desaulniers wrote: > On Wed, Mar 9, 2022 at 11:19 AM Nathan Chancellor wrote: > > Avoid this problem by just avoiding the CONFIG_LTO=y __READ_ONCE() block > > in asm/rwonce.h with assembly files, as nothing in that block is useful > > to assembly files, which allows ARM_SMCCC_ARCH_WORKAROUND_3 to be > > properly expanded with CONFIG_LTO=y builds. > > > > Cc: stable@vger.kernel.org > > Fixes: e35123d83ee3 ("arm64: lto: Strengthen READ_ONCE() to acquire when CONFIG_LTO=y") > > Link: https://lore.kernel.org/r/20220309155716.3988480-1-maz@kernel.org/ > > Reported-by: Marc Zyngier > > Acked-by: James Morse > > Signed-off-by: Nathan Chancellor > > Thanks for taking point on all of the BHB fallout. > > Reviewed-by: Nick Desaulniers > Tested-by: Nick Desaulniers Thanks for the review and testing. Unfortunately I've just sent the pull request to Linus, so didn't include your tags. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel