Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp417516ybh; Wed, 15 Jul 2020 05:36:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu3tw88TJ9x7E9ztrM/7Cl75+3K9fBKzFkrOYhKUAh60WZxRMQCp2kRf8aBYyRFLiqDFr7 X-Received: by 2002:aa7:c496:: with SMTP id m22mr9458044edq.336.1594816583770; Wed, 15 Jul 2020 05:36:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594816583; cv=none; d=google.com; s=arc-20160816; b=QM5ZJ3SDt1/bdgLS2qo/5hXwFMrtbZn81Oli34gB1lY+A10OOB+SK0yadnMLZAQuvz 90hZNnedSh/0Bd7vlu8bNdm4NtOz3RNyBvx6gcl/0Qbp9aczxVdGHC2eBai0K79sOcXC e+v0aBe1qNCg2ZywahnhUryh/RV5f5cA9W6MERF+aBzkyCakEW/t+RQTAEFGr8HQVBJy vcZXMWvBkZbOnKVgdy/hessGsLel7GprPYSX2iFlVkdoh0DyIkbHsNUXiDqdGTrkeWhf sBdzgAWMNvZW6+p0MFvX2mDdNwt4vnGn1c6qfneGQdOhdMliIIkur4qnIBEMus2qS/hO C/TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PBMh2Cblw66qqfy0HxGc6SsfqJq0JdAhLV6/Ri1aRHQ=; b=hMbMdh/Wf9M/nGibwD3yRPlWJtiqrXsrYNWZUYf5WS/uxlg4Dr/sRVVQhg5FY7mCK3 NDe7JAvu+U4+mPbNeYs9dDDV3mJkZB0dJ3QDh6FUDRC8sRjNIqYnaS3SEnrX0lOrTBmD 2DQMOHA85tnaWIewhFSaNngLmnLu4PdKG0DnyeDC2peOe57MXyIJR6gz/n65vNNaEiMs f4RzTXUXT3pcOHdEyFgEd/m4slHoHzdUdPvTaK6Mv8uXIFbT39skcw87NN2wShGoLfCY nkRCL42MrdEGyj3p7UWR8vxBW2CUgLnfn+a5PkbGhlAgVOBfE3Ryh5a5QUe6u0qG1ZJG HjFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si1177709edr.168.2020.07.15.05.35.59; Wed, 15 Jul 2020 05:36:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730747AbgGOMK3 (ORCPT + 99 others); Wed, 15 Jul 2020 08:10:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:36128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726968AbgGOMK3 (ORCPT ); Wed, 15 Jul 2020 08:10:29 -0400 Received: from gaia (unknown [95.146.230.158]) (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 860542065D; Wed, 15 Jul 2020 12:10:26 +0000 (UTC) Date: Wed, 15 Jul 2020 13:10:23 +0100 From: Catalin Marinas To: Zhenyu Ye Cc: will@kernel.org, suzuki.poulose@arm.com, maz@kernel.org, steven.price@arm.com, guohanjun@huawei.com, olof@lixom.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, arm@kernel.org, xiexiangyou@huawei.com, prime.zeng@hisilicon.com, zhangshaokun@hisilicon.com, kuhn.chenqun@huawei.com Subject: Re: [PATCH v3 2/3] arm64: enable tlbi range instructions Message-ID: <20200715121023.GC2519@gaia> References: <20200715071945.897-1-yezhenyu2@huawei.com> <20200715071945.897-3-yezhenyu2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200715071945.897-3-yezhenyu2@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 15, 2020 at 03:19:44PM +0800, Zhenyu Ye wrote: > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index a0d94d063fa8..4e823b97c92e 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -82,11 +82,18 @@ endif > # compiler to generate them and consequently to break the single image contract > # we pass it only to the assembler. This option is utilized only in case of non > # integrated assemblers. > +ifneq ($(CONFIG_AS_HAS_ARMV8_4), y) > branch-prot-flags-$(CONFIG_AS_HAS_PAC) += -Wa,-march=armv8.3-a > endif > +endif I couldn't find a clear statement in the gas documentation on what happens if multiple -march options are passed. I think it's safer to avoid this here. > KBUILD_CFLAGS += $(branch-prot-flags-y) > > +ifeq ($(CONFIG_AS_HAS_ARMV8_4), y) > +# make sure to pass the newest target architecture to -march. > +KBUILD_CFLAGS += -Wa,-march=armv8.4-a > +endif I have a suspicion both of these options will break the LLVM integrated assembler but we don't officially support it on arm64 yet (-Wa, doesn't seem to get passed to the integrated asm). Thanks for the re-spin. -- Catalin