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 B9D35C433F5 for ; Tue, 5 Apr 2022 14:10:10 +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=z+1clQbBZEuupYKJMk6dDvFANF+2XItnSUM/KLJcu04=; b=0UFBVGnBddXwyV +xrQUMSnsUsDCo+q4//n9lhUY2dsJDA9WUzkJD4q+Zsb7/mb77goLN+kxkEdCY0WsR4VvN0FlKXkY 6PaE3d38hmja5zzIQ/lNsAu6w+8GX7jxczu+XiPT1/TZLIGlByLS9uKe0SuHXV3XCLNMQZnnCU5in bYJdEiRc2sY+3IFrAXW05CFWTDo6MJ5gFEB4Yze7CPqZTomANMelCop+ArSRbdtVdMqZ981EgV1Cr CEdsYrEWDz1maoTk2zXXyqkDQy0TNAcMZDkBqEWJJuvuvdjIrxK/ri+FgVkRqYRnt05IBejQDtDdL WQ1TK4xpS7Zcz1q9D49A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbjrM-001L1z-Vk; Tue, 05 Apr 2022 14:08:41 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbjoL-001JTj-LJ for linux-arm-kernel@bombadil.infradead.org; Tue, 05 Apr 2022 14:05:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jJ72nyQjgyMortAHdvw06/vFEylkSYuiFVuOxXrhPF4=; b=SwqA6RhnQVGyo1EdkB/Yf6mm02 Dl5JtcMTBnIo1saXpfrgbyE/JGZcRsHcp3NLkoWMe5//d3yTDV4wxHJK11pA2rmaZH3TltzAh7fBb XY5ctXudO1Aje6BGJCcBm0qhxr3+SocKS+h5rCtfnw9q15J3zakCAN4hvr/ZpcGT4+AjO9QioIGNn bpzyDFsBioroiBC3Em3r/UCGE5vRMoyK7fZe1MLCHbskQpxFP76afxNXjSE7JhFtksghvu4si2d1s 2how848sOs3fzXvTv6gxg+WmiLi8GH1y62pqjHtm/M3icwJ0jG8PmR6ZytAPKMB37cSF4HklVQ14q zM5YH+Mw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbjoD-001sCl-Ae; Tue, 05 Apr 2022 14:05:26 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id BD2953001EA; Tue, 5 Apr 2022 16:05:22 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9951B2DC78FE1; Tue, 5 Apr 2022 16:05:22 +0200 (CEST) Date: Tue, 5 Apr 2022 16:05:22 +0200 From: Peter Zijlstra To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, gcc@gcc.gnu.org, catalin.marinas@arm.com, will@kernel.org, marcan@marcan.st, maz@kernel.org, szabolcs.nagy@arm.com, f.fainelli@gmail.com, opendmb@gmail.com, Andrew Pinski , Ard Biesheuvel , x86@kernel.org, andrew.cooper3@citrix.com, Jeremy Linton Subject: Re: GCC 12 miscompilation of volatile asm (was: Re: [PATCH] arm64/io: Remind compiler that there is a memory side effect) Message-ID: References: <20220401164406.61583-1-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 Tue, Apr 05, 2022 at 01:51:30PM +0100, Mark Rutland wrote: > Hi all, > > [adding kernel folk who work on asm stuff] > > As a heads-up, GCC 12 (not yet released) appears to erroneously optimize away > calls to functions with volatile asm. Szabolcs has raised an issue on the GCC > bugzilla: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105160 > > ... which is a P1 release blocker, and is currently being investigated. > > Jemery originally reported this as an issue with {readl,writel}_relaxed(), but > the underlying problem doesn't have anything to do with those specifically. > > I'm dumping a bunch of info here largely for posterity / archival, and to find > out who (from the kernel side) is willing and able to test proposed compiler > fixes, once those are available. > > I'm happy to do so for aarch64; Peter, I assume you'd be happy to look at the > x86 side? Sure.. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel