Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1820513img; Sat, 23 Mar 2019 13:09:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4TXEzvUEYEK68U9el9bb5KOztUNpQMrgfEiUPRS3oSw/2TYCtDMnF9VooMpmfxcowUMy5 X-Received: by 2002:a63:2403:: with SMTP id k3mr15374195pgk.200.1553371786434; Sat, 23 Mar 2019 13:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553371786; cv=none; d=google.com; s=arc-20160816; b=XapDJGJp1xAdVc30WtfRH9ykmXrGbul4J0wcCybRjB2X6rHoZSbnWOmZ85zHHFW+T3 EJZhwE3eyF3UEdVRTyZ62OVXazx/AfZ12lAxA9tUJ7BYyS/BF5NrVWOx6JltK43KWROw rnNBDvdlxbwAFGSWhgM+VYphrWkJ33hhy5YM8917ym1xeBImu1ltRKcQh0iIn1/LaAsX IBQ9/KWZAtfew2jg7owerWRGlCCTtt/HI/NaSzzhMRTXkPZJZBKvQHpfSyB25lVjpB3Q VJWJyIZTIDuFYwKyutwd4JGHBO0cBf9WxzddufEwubOkxL9+NwSBD9NMvlKMxjzC4ec7 mqyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=lGIMTkb8Q6h0BN6ku5B4xFVCKzxQadbRHPxr8YdgvRk=; b=OznOH66JBiUQdcBvgnsD9TPr0LYTgXR0LKdLc2KUh2BvD086RsSDspbac4rbh3wJpq sbAv4ogOwv+DNbs5TuiTJMFEFdwEarlIawKxkBqnpTTIJYAZrWEcxWQO9YMGpipd2nkT pBiW9WM1lAqmtWQoCGmNpEA0F0nq1e6YstFOE9+7O1ocgLPcwgzStgx7o5HQ0kacT5Er 0dFw9sEwH+yODSD0WyjxCPT/MxGAfpjmBbQdK/LQFUSH2GTlg5mTcVllKwrkcfG6Mgyj rQ1LLjmeKQxuhQ/xEEJVi8U0c2wsI/6BXI4yDz+ePOkphc7dfTXGVE2rf6BA6bIpiLIo W0Rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si9576784pfj.137.2019.03.23.13.09.31; Sat, 23 Mar 2019 13:09:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727845AbfCWUHP (ORCPT + 99 others); Sat, 23 Mar 2019 16:07:15 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33629 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbfCWUHO (ORCPT ); Sat, 23 Mar 2019 16:07:14 -0400 Received: by mail-qt1-f194.google.com with SMTP id k14so6320430qtb.0 for ; Sat, 23 Mar 2019 13:07:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lGIMTkb8Q6h0BN6ku5B4xFVCKzxQadbRHPxr8YdgvRk=; b=A6AjdXPb0KR46D88xtkPyfEFxdBEiT/Tdfk+L6Y0K7gO6p3Auj6PnFrQpTdDV5H7AS lrG3l2fXMt79vWNlSdmJ4nMPyL4UUKAdZg4s9al8nnn5mE0Gm7ZzrzRgGyVlVm/XaaCO DKMeukcORvwm390j704sQ2RblCb22T8JS9kiKe+7ghVdTjwCIqklDZzgiedqAMIXBeyD Af+d/knl7QMnP0m9d9cx2b2rQkqzlO7jZoLu2zM/LyXhgjTpLtCVlvu51X4oN4oFna90 E9H0L3Ck/YLmLyFuASFOnohUwZZegmF/rTpCPUY6v5/M9ZQNWYCu/AEfkKSeGZ0VIL3d kAqw== X-Gm-Message-State: APjAAAVi/PRul0Ri/oGbvEjJizhyYNbYnh406IBs4xc4q65lyfIy4yIC mSPYa53edDg9O6TfBA2o9tLGJfBy83lVm0zrDTo= X-Received: by 2002:ac8:276b:: with SMTP id h40mr14019232qth.319.1553371633696; Sat, 23 Mar 2019 13:07:13 -0700 (PDT) MIME-Version: 1.0 References: <9641c58c03720104186a797a96e30a52ae9805e4.1553356359.git.stefan@agner.ch> In-Reply-To: <9641c58c03720104186a797a96e30a52ae9805e4.1553356359.git.stefan@agner.ch> From: Arnd Bergmann Date: Sat, 23 Mar 2019 21:06:56 +0100 Message-ID: Subject: Re: [PATCH 1/3] ARM: use arch_extension directive instead of arch argument To: Stefan Agner Cc: Russell King - ARM Linux , Ard Biesheuvel , Robin Murphy , Nicolas Pitre , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Kukjin Kim , Krzysztof Kozlowski , Rob Herring , Santosh Shilimkar , Jason Cooper , Andrew Lunn , Gregory CLEMENT , Sebastian Hesselbarth , Tony Lindgren , Marc Gonzalez , Mans Rullgard , Nick Desaulniers , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 23, 2019 at 4:52 PM Stefan Agner wrote: > > The LLVM Target parser currently does not allow to specify the security > extension as part of -march (see also LLVM Bug 40186 [0]). When trying > to use Clang with LLVM's integrated assembler, this leads to a build > errors such as this: > clang-8: error: the clang compiler does not support '-Wa,-march=armv7-a+sec' > > Use ".arch_extension sec" to enable the security extension in a more > portable fasion. > > Note that this is technically not exactly the same as the old code > checked for availabilty of the security extension by calling as-instr. > However, there are already other sites which use ".arch_extension sec" > unconditionally, hence de-facto we need an assembler capable of > ".arch_extension sec" already today (arch/arm/mm/proc-v7.S). The > arch extension "sec" is available since binutils 2.21 according to > its documentation [1]. > > [0] https://bugs.llvm.org/show_bug.cgi?id=40186 > [1] https://sourceware.org/binutils/docs-2.21/as/ARM-Options.html > > Signed-off-by: Stefan Agner This sounds like a good idea. I think we have platform specific minimum toolchain versions elsewhere, but I don't see a problem with raising the minimum version for all the armv7ve platforms. I've added this patch to my randconfig test queue, but please send it to arm@kernel.org for inclusion when you have collected more Acks. Do you have a git tree with other patches required for the integrated assembler? I might try that out as well with my randconfig tree. At the moment I'm building with clang-8 and a small number of patches on top. Acked-by: Arnd Bergmann