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 018E4C433EF for ; Fri, 25 Feb 2022 18:42:19 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9avey8nyKgf5bAOa9ezGA3vl2Oir3+g0tGBv4iuCc3E=; b=blE5gk8SQx+QCK 6eTcgDqqLjrGjm42Q5RhWvVdWDskCIrjxQlh1pqULVLhAZAMA1KRAHKZFvD98VO3TrsgxbiK8xmiB i6pN03zf4GEQXwUqYKHp8ItMk3hZFUASYX97yFPHw8XiYiUAlAfJz8fApnJ66QbCmo9CuTAMugIGQ Ctri8P4i6Lt9eUFoyNvvX61SrhTZFvkBjq/upBkNANZO/uMmOxseMRjGrd97vfj9w3gVqi3myIokD dWURfedStIc/6qEbARfrAE0JbhCO6kSx2BdLoTQGE5xbRFjwef9Bxl6Yvtn8fW3vvczMqLWkji/jD wUmis0FVassArtzC3b/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNfWZ-006evN-T2; Fri, 25 Feb 2022 18:41:04 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nNfWU-006eu6-T1 for linux-arm-kernel@lists.infradead.org; Fri, 25 Feb 2022 18:41:00 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 52D6FCE0BAF; Fri, 25 Feb 2022 18:40:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 664B2C340E7; Fri, 25 Feb 2022 18:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645814450; bh=AmGYWZiNF9N5dPOwVhYDcx2XJ94w/+W761YS5XUP8u8=; h=From:To:Cc:Subject:Date:From; b=fLARP+2CGKmYaufIP43FdK7hu5l0XOqtdnwc2pcjJhwKHavNmV/kl/EnTJh387m3G PAPL7HYwewHvYXNsRiws6y+NWF4NPF4HOxPx3vjtuwg/pxa8ZblYEL45PYT9SCINxX jhsxpLG+cD7xYamoot02HGVGVy4QMDfRXfc8V0BwnW+jZNP67ug1l6iKiZFRQWVv84 EaYatbXcTdF/9vPEMlWIHOORbnEgM5ZvgmfbR0Mb8K5OIF/u1oNP8A4fWFpi42/dNB atFxrxWBjqedjWbMFdvGEjkQymAfGch/1onZv/t0bCs+SVULIoa6qnGzFVjvw1eQiA gBY30hI5CpkfQ== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Rutland , Mark Brown Subject: [PATCH] arm64: Don't allow SVE to be used with BROKEN_GAS_INST Date: Fri, 25 Feb 2022 18:40:45 +0000 Message-Id: <20220225184045.5502-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1453; h=from:subject; bh=AmGYWZiNF9N5dPOwVhYDcx2XJ94w/+W761YS5XUP8u8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBiGSJBIMm7YU/5lQ4c4eJcPIgdXHCO+1USQpQZIt9w 8ktPu+KJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYhkiQQAKCRAk1otyXVSH0JvXB/ 9WoJVzgw2WGmzA+mIhV0jL6cmOFeO4YZeoUAknjeK6RLAntJGvxpKGedtqs1TdIdafxV/Eo3PFiiOn yXfCC+QjTL7j2c+TAKlaQGvsCkxYhm0gA5lEFJr7htZzUUFewp+T6h0+CZ9X/vUnuqD6/A/ch2cRKA HjhrTEeIHGdiqr/vq23lSnztOlR019lq92qrGXJ5oulMb/imRkGehQzNa9hlkPn6CTrTigZEquyb2M lFnhIUEbnsv2yyKDXjsLsT0pMMfolfaDGFRGeeGbKXvk1Squ/uZeZfL9GjLAh1PAZ1Qs1xkwpyz+Ib UOAxo3+Hpzq/GziaHmNkuanJe0Wu2k X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220225_104059_132684_86DFF347 X-CRM114-Status: GOOD ( 14.35 ) 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 We support building the kernel with archaic versions of binutils which had some confusion regarding how instructions should be encoded for .inst which we work around with the __emit_inst() macro. Unfortunately we have not consistently used this macro, one of the places where it's missed being the macros that manually encode SVE instructions. This means that kernels built with such toolchains have never supported SVE correctly. Since these toolchains are very old (some idle research suggested 2015 era) it seems more sensible to just refuse to build SVE support with them, in the unlikely event that someone has a need to use such a toolchain to build a kernel which will run on a system with SVE support they can always fix this properly but it seems more likely that we will deprecate support for these toolchains and remove __emit_inst() before that happens. Signed-off-by: Mark Brown --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index f8e5f64fc40b..4312cc622277 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1899,6 +1899,7 @@ endmenu config ARM64_SVE bool "ARM Scalable Vector Extension support" default y + depends on !BROKEN_GAS_INST help The Scalable Vector Extension (SVE) is an extension to the AArch64 execution state which complements and extends the SIMD functionality -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel