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 X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 CB778C43331 for ; Wed, 25 Mar 2020 12:32:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ADCE42076A for ; Wed, 25 Mar 2020 12:32:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727513AbgCYMcF (ORCPT ); Wed, 25 Mar 2020 08:32:05 -0400 Received: from foss.arm.com ([217.140.110.172]:47786 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbgCYMcF (ORCPT ); Wed, 25 Mar 2020 08:32:05 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C79DC31B; Wed, 25 Mar 2020 05:32:04 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C71F43F71F; Wed, 25 Mar 2020 05:32:03 -0700 (PDT) Date: Wed, 25 Mar 2020 12:31:59 +0000 From: Mark Rutland To: Mark Brown Cc: Catalin Marinas , Will Deacon , Eric Biggers , Ard Biesheuvel , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 0/3] arm64: Open code .arch_extension Message-ID: <20200325123157.GA12236@lakrids.cambridge.arm.com> References: <20200325114110.23491-1-broonie@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200325114110.23491-1-broonie@kernel.org> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Mar 25, 2020 at 11:41:07AM +0000, Mark Brown wrote: > Since inserting BTI landing pads into assembler functions will require > us to change the default architecture we need a way to enable > extensions without hard coding the architecture. Assuming we'll poke the toolchain folk, let's consider alternative ways around this in the mean time. Is there anything akin to push/pop versions of .arch directitves that we can use around the BTI instructions specifically? ... or could we encode the BTI instructions with a .inst, and wrap those in macros so that GAS won't complain (like we do for mrs_s and friends)? ... does asking GCC to use BTI for C code make the default arch v8.5 for inline asm, or does it do something special to allow BTI instructions in specific locations? Thanks, Mark.