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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BEACC43219 for ; Fri, 10 Dec 2021 18:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233992AbhLJSsi (ORCPT ); Fri, 10 Dec 2021 13:48:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245544AbhLJSsg (ORCPT ); Fri, 10 Dec 2021 13:48:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D209C061746 for ; Fri, 10 Dec 2021 10:45:01 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 076D6B82959 for ; Fri, 10 Dec 2021 18:45:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5475DC341CC; Fri, 10 Dec 2021 18:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639161898; bh=TMip3u/Q/XCtOvE5SwU4TNF3b2fGyeSOVzwfivsGdlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cTbsTfpb2KpNIXoeBE+j5Hg63qwDjeA7FmXtaMAkKZeOCzRB3LfVq1lUunQ/uWWys IWJIDm4YGm1GeEPdxLnr6eDQia/eJVy5thB4J9dRNUXeK3qQwp7JZtEHZebmQbhHIj kDYaXcW69wFwOVj7lXCmEzNU6UG+Aj6nbh3gX33rotocWf0cLp4l76Na/TWV0zsUYM 3ZCn5oUWsr+/DhHyspedY+2gW9lzCORNjB+uqE4UO/7nhGzJPneM48ZcoM61KWXnZs EKB9TUYsd3M84YlI/PF/2Eeg84ueUtwJyIcNTfjzQKCDnr+TQpDuWKNEiv3bBVIdcb 3pSUGwmbgBOuA== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v7 28/37] arm64/sme: Provide Kconfig for SME Date: Fri, 10 Dec 2021 18:41:24 +0000 Message-Id: <20211210184133.320748-29-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211210184133.320748-1-broonie@kernel.org> References: <20211210184133.320748-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1520; h=from:subject; bh=TMip3u/Q/XCtOvE5SwU4TNF3b2fGyeSOVzwfivsGdlo=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhs59UKdl7VTDf8YoM1bMRWgMic3HucvsRQjUJYNTR hQVoYumJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYbOfVAAKCRAk1otyXVSH0E4TB/ 9dxImWYi8b/JXXXXeCHSg6Kj3gegV6L91ey0BaYf4wY2R4iPov33PP3uPZjtobi/3Z9Bxr/9q8jVEx 8stcNbyLI5b2RSWBAutBYo52PS+PWTy98FxLIvZD1wd3bMy8n+hyXrH/Zv+5pj43AdsvCTCzDGuLcm ZsewKocUkQ069HaF4+zYm6GMzGHY69u5qi7dsIIH2NebPCy452yyI4NEs98XpfxtQDklG8Ij5EjPSm mt3a0ittKqTKlPj2Ntbzcwzvf3AgSF436l+ZiLNqmSfv4Vx6P9WZ3hCmBf+DVI9Vu0uiBeReyNlhnI vZ6oSiu3OVh73eAJWXSQzT7GEjvLjJ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Now that basline support for the Scalable Matrix Extension (SME) is present introduce the Kconfig option allowing it to be built. While there is no requirement for a system with SME to support SVE at runtime the support for streaming mode SVE is mostly shared with normal SVE so depend on SVE. Since there is currently no support for KVM and no handling of either streaming mode or ZA with KVM the option the feature is marked as being incompatible with KVM and not enabled by default. Signed-off-by: Mark Brown --- arch/arm64/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index c4207cf9bb17..486f614638d5 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1845,6 +1845,17 @@ config ARM64_SVE booting the kernel. If unsure and you are not observing these symptoms, you should assume that it is safe to say Y. +config ARM64_SME + bool "ARM Scalable Matrix Extension support" + depends on ARM64_SVE + depends on !KVM + help + The Scalable Matrix Extension (SME) is an extension to the AArch64 + execution state which utilises a substantial subset of the SVE + instruction set, together with the addition of new architectural + register state capable of holding two dimensional matrix tiles to + enable various matrix operations. + config ARM64_MODULE_PLTS bool "Use PLTs to allow module memory to spill over into vmalloc area" depends on MODULES -- 2.30.2 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 2B854C433F5 for ; Fri, 10 Dec 2021 19:09:29 +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:References:In-Reply-To: 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: List-Owner; bh=86k6eVx2kUsycQcLFTMB2nbt6tQ2JhTPwGAUTKUtqdI=; b=LSFMyDcDIAOo+q 4bruELAsUXHlI9QpH9wrhsEn7MfFniR3eMaI2CrVn2QTpA4R59s6CQK5bUdw5zFzbmPN3Al5UmNWo DiZ9QATvMrjHSUIa1BclQ36ggqfv0GC6Z73FdhAHILAqZ0tQKtcEl7H6a0EMZMAB7qpWYYJ/vDK+x nbso8T/xz6QCTq+AaUCN9gKPUcyn2L3pF6myXJrsa81I85oUwLWn2P1+4TWd8WQ+xbDz6HnjD93v7 9DGEFwDeHwiNumjfl7+Uj2YjRfi86skcPvH2rjIy3rhr1TT8chN4jWzdDtSuMPQNG+CFTyQVOYM8/ JQ6ma8r0vCv7/gfcj+ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvlFA-003P2y-3Y; Fri, 10 Dec 2021 19:07:45 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mvktA-003Fl0-Gt for linux-arm-kernel@lists.infradead.org; Fri, 10 Dec 2021 18:45:04 +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 ams.source.kernel.org (Postfix) with ESMTPS id 2DEB7B8275C; Fri, 10 Dec 2021 18:44:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5475DC341CC; Fri, 10 Dec 2021 18:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639161898; bh=TMip3u/Q/XCtOvE5SwU4TNF3b2fGyeSOVzwfivsGdlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cTbsTfpb2KpNIXoeBE+j5Hg63qwDjeA7FmXtaMAkKZeOCzRB3LfVq1lUunQ/uWWys IWJIDm4YGm1GeEPdxLnr6eDQia/eJVy5thB4J9dRNUXeK3qQwp7JZtEHZebmQbhHIj kDYaXcW69wFwOVj7lXCmEzNU6UG+Aj6nbh3gX33rotocWf0cLp4l76Na/TWV0zsUYM 3ZCn5oUWsr+/DhHyspedY+2gW9lzCORNjB+uqE4UO/7nhGzJPneM48ZcoM61KWXnZs EKB9TUYsd3M84YlI/PF/2Eeg84ueUtwJyIcNTfjzQKCDnr+TQpDuWKNEiv3bBVIdcb 3pSUGwmbgBOuA== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v7 28/37] arm64/sme: Provide Kconfig for SME Date: Fri, 10 Dec 2021 18:41:24 +0000 Message-Id: <20211210184133.320748-29-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211210184133.320748-1-broonie@kernel.org> References: <20211210184133.320748-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1520; h=from:subject; bh=TMip3u/Q/XCtOvE5SwU4TNF3b2fGyeSOVzwfivsGdlo=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhs59UKdl7VTDf8YoM1bMRWgMic3HucvsRQjUJYNTR hQVoYumJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYbOfVAAKCRAk1otyXVSH0E4TB/ 9dxImWYi8b/JXXXXeCHSg6Kj3gegV6L91ey0BaYf4wY2R4iPov33PP3uPZjtobi/3Z9Bxr/9q8jVEx 8stcNbyLI5b2RSWBAutBYo52PS+PWTy98FxLIvZD1wd3bMy8n+hyXrH/Zv+5pj43AdsvCTCzDGuLcm ZsewKocUkQ069HaF4+zYm6GMzGHY69u5qi7dsIIH2NebPCy452yyI4NEs98XpfxtQDklG8Ij5EjPSm mt3a0ittKqTKlPj2Ntbzcwzvf3AgSF436l+ZiLNqmSfv4Vx6P9WZ3hCmBf+DVI9Vu0uiBeReyNlhnI vZ6oSiu3OVh73eAJWXSQzT7GEjvLjJ 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-20211210_104500_763882_4C1E644A X-CRM114-Status: GOOD ( 13.66 ) 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 Now that basline support for the Scalable Matrix Extension (SME) is present introduce the Kconfig option allowing it to be built. While there is no requirement for a system with SME to support SVE at runtime the support for streaming mode SVE is mostly shared with normal SVE so depend on SVE. Since there is currently no support for KVM and no handling of either streaming mode or ZA with KVM the option the feature is marked as being incompatible with KVM and not enabled by default. Signed-off-by: Mark Brown --- arch/arm64/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index c4207cf9bb17..486f614638d5 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1845,6 +1845,17 @@ config ARM64_SVE booting the kernel. If unsure and you are not observing these symptoms, you should assume that it is safe to say Y. +config ARM64_SME + bool "ARM Scalable Matrix Extension support" + depends on ARM64_SVE + depends on !KVM + help + The Scalable Matrix Extension (SME) is an extension to the AArch64 + execution state which utilises a substantial subset of the SVE + instruction set, together with the addition of new architectural + register state capable of holding two dimensional matrix tiles to + enable various matrix operations. + config ARM64_MODULE_PLTS bool "Use PLTs to allow module memory to spill over into vmalloc area" depends on MODULES -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel