Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD54AC433FE for ; Mon, 7 Dec 2020 19:04:53 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id 142D4238E2 for ; Mon, 7 Dec 2020 19:04:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 142D4238E2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 8B4F44B273; Mon, 7 Dec 2020 14:04:52 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SHGcgjAGTFBw; Mon, 7 Dec 2020 14:04:51 -0500 (EST) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 6C86B4B288; Mon, 7 Dec 2020 14:04:51 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id BD4EE4B273 for ; Mon, 7 Dec 2020 14:04:50 -0500 (EST) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oIcg64kqT3lW for ; Mon, 7 Dec 2020 14:04:49 -0500 (EST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id D0A654B272 for ; Mon, 7 Dec 2020 14:04:49 -0500 (EST) Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B0E63238E2; Mon, 7 Dec 2020 19:04:48 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kmLoT-00Gqbd-Vs; Mon, 07 Dec 2020 19:04:46 +0000 Date: Mon, 07 Dec 2020 19:04:44 +0000 Message-ID: <87360h5tf7.wl-maz@kernel.org> From: Marc Zyngier To: Robin Murphy Subject: Re: [PATCH] arm64: Work around broken GCC handling of "S" constraint In-Reply-To: References: <20201207154341.1004276-1-maz@kernel.org> <87316821c90a13a912a624250055f50f@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: robin.murphy@arm.com, ardb@kernel.org, kernel-team@android.com, catalin.marinas@arm.com, dbrazdil@google.com, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Cc: Will Deacon , Catalin Marinas , kvmarm , Android Kernel Team , Ard Biesheuvel , Linux ARM X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu Hi Robin, On Mon, 07 Dec 2020 18:42:23 +0000, Robin Murphy wrote: > > On 2020-12-07 17:47, Ard Biesheuvel wrote: > > On Mon, 7 Dec 2020 at 18:41, Marc Zyngier wrote: > >> > >> On 2020-12-07 17:19, Ard Biesheuvel wrote: > >>> (resend with David's email address fixed) > >> > >> Irk. Thanks for that. > >> > >>>>> +#ifdef CONFIG_CC_HAS_BROKEN_S_CONSTRAINT > >>>>> +#define SYM_CONSTRAINT "i" > >>>>> +#else > >>>>> +#define SYM_CONSTRAINT "S" > >>>>> +#endif > >>>>> + > >>>> > >>>> Could we just check GCC_VERSION here? > >> > >> I guess we could. But I haven't investigated which exact range of > >> compiler is broken (GCC 6.3 seems fixed, but that's the oldest > >> I have apart from the offending 4.9). > >> > > > > I tried 5.4 on godbolt, and it seems happy. And the failure will be > > obvious, so we can afford to get it slightly wrong and refine it > > later. > > FWIW the Linaro 14.11, 15.02 and 15.05 releases of GCC 4.9.3 seem to > build rc7 without complaint. The only thing older that I have to hand > is Ubuntu's GCC 4.8.4, which Kbuild chokes on entirely now. Can you try kvmarm/next? David's PSCI relay is breaking badly here. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm