* [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now
@ 2024-11-06 16:42 Mark Rutland
2024-11-06 16:59 ` Mark Brown
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mark Rutland @ 2024-11-06 16:42 UTC (permalink / raw)
To: linux-arm-kernel
Cc: ardb, broonie, catalin.marinas, mark.rutland, maz, stable, will
Although support for SME was merged in v5.19, we've since uncovered a
number of issues with the implementation, including issues which might
corrupt the FPSIMD/SVE/SME state of arbitrary tasks. While there are
patches to address some of these issues, ongoing review has highlighted
additional functional problems, and more time is necessary to analyse
and fix these.
For now, mark SME as BROKEN in the hope that we can fix things properly
in the near future. As SME is an OPTIONAL part of ARMv9.2+, and there is
very little extant hardware, this should not adversely affect the vast
majority of users.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Will Deacon <will@kernel.org>
Cc: <stable@vger.kernel.org> # 5.19
---
arch/arm64/Kconfig | 1 +
1 file changed, 1 insertion(+)
Catalin, Will, if we take this, the minimal set of other fixes necessary
for now is:
* "arm64/sve: Discard stale CPU state when handling SVE traps"
https://lore.kernel.org/linux-arm-kernel/20241030-arm64-fpsimd-foreign-flush-v1-1-bd7bd66905a2@kernel.org/
https://lore.kernel.org/linux-arm-kernel/ZypuQNhWHKut8mLl@J2N7QTR9R3.cambridge.arm.com/
(already queued by Will in for-next/fixes)
* "arm64: smccc: Remove broken support for SMCCCv1.3 SVE discard hint"
https://lore.kernel.org/linux-arm-kernel/20241106160448.2712997-1-mark.rutland@arm.com/
Mark.
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 3e29b44d2d7bd..14cc81e154ee2 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -2213,6 +2213,7 @@ config ARM64_SME
bool "ARM Scalable Matrix Extension support"
default y
depends on ARM64_SVE
+ depends on BROKEN
help
The Scalable Matrix Extension (SME) is an extension to the AArch64
execution state which utilises a substantial subset of the SVE
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now
2024-11-06 16:42 [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now Mark Rutland
@ 2024-11-06 16:59 ` Mark Brown
2024-11-06 16:59 ` Catalin Marinas
2024-11-07 12:19 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2024-11-06 16:59 UTC (permalink / raw)
To: Mark Rutland; +Cc: linux-arm-kernel, ardb, catalin.marinas, maz, stable, will
[-- Attachment #1: Type: text/plain, Size: 980 bytes --]
On Wed, Nov 06, 2024 at 04:42:20PM +0000, Mark Rutland wrote:
> Although support for SME was merged in v5.19, we've since uncovered a
> number of issues with the implementation, including issues which might
> corrupt the FPSIMD/SVE/SME state of arbitrary tasks. While there are
> patches to address some of these issues, ongoing review has highlighted
> additional functional problems, and more time is necessary to analyse
> and fix these.
It would be good to start landing some of those as well (and more of the
test improvements that are pending as well).
> For now, mark SME as BROKEN in the hope that we can fix things properly
> in the near future. As SME is an OPTIONAL part of ARMv9.2+, and there is
> very little extant hardware, this should not adversely affect the vast
> majority of users.
It doesn't seem ideal to bounce on and off in stable, though as you say
there aren't really any practical systems at the minute and hopefully we
can revert this fairly soon.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now
2024-11-06 16:42 [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now Mark Rutland
2024-11-06 16:59 ` Mark Brown
@ 2024-11-06 16:59 ` Catalin Marinas
2024-11-07 12:19 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2024-11-06 16:59 UTC (permalink / raw)
To: Mark Rutland; +Cc: linux-arm-kernel, ardb, broonie, maz, stable, will
On Wed, Nov 06, 2024 at 04:42:20PM +0000, Mark Rutland wrote:
> Although support for SME was merged in v5.19, we've since uncovered a
> number of issues with the implementation, including issues which might
> corrupt the FPSIMD/SVE/SME state of arbitrary tasks. While there are
> patches to address some of these issues, ongoing review has highlighted
> additional functional problems, and more time is necessary to analyse
> and fix these.
>
> For now, mark SME as BROKEN in the hope that we can fix things properly
> in the near future. As SME is an OPTIONAL part of ARMv9.2+, and there is
> very little extant hardware, this should not adversely affect the vast
> majority of users.
>
> Signed-off-by: Mark Rutland <mark.rutland@arm.com>
> Cc: Ard Biesheuvel <ardb@kernel.org>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Will Deacon <will@kernel.org>
> Cc: <stable@vger.kernel.org> # 5.19
I agree that's the best way forward given the proximity to final 6.12.
Let's hope we'll revert it shortly after. Thanks to both you and broonie
for continuing to dig into this.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now
2024-11-06 16:42 [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now Mark Rutland
2024-11-06 16:59 ` Mark Brown
2024-11-06 16:59 ` Catalin Marinas
@ 2024-11-07 12:19 ` Will Deacon
2 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2024-11-07 12:19 UTC (permalink / raw)
To: linux-arm-kernel, Mark Rutland
Cc: catalin.marinas, kernel-team, Will Deacon, ardb, broonie, maz,
stable
On Wed, 06 Nov 2024 16:42:20 +0000, Mark Rutland wrote:
> Although support for SME was merged in v5.19, we've since uncovered a
> number of issues with the implementation, including issues which might
> corrupt the FPSIMD/SVE/SME state of arbitrary tasks. While there are
> patches to address some of these issues, ongoing review has highlighted
> additional functional problems, and more time is necessary to analyse
> and fix these.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] arm64: Kconfig: Make SME depend on BROKEN for now
https://git.kernel.org/arm64/c/81235ae0c846
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-07 12:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 16:42 [PATCH] arm64: Kconfig: Make SME depend on BROKEN for now Mark Rutland
2024-11-06 16:59 ` Mark Brown
2024-11-06 16:59 ` Catalin Marinas
2024-11-07 12:19 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).