* [PATCH] riscv: Fix toolchain vector detection
@ 2024-08-19 0:11 Anton Blanchard
2024-08-19 16:45 ` Conor Dooley
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Anton Blanchard @ 2024-08-19 0:11 UTC (permalink / raw)
To: linux-riscv, linux-kernel
Cc: Anton Blanchard, Paul Walmsley, Palmer Dabbelt, Albert Ou
A recent change to gcc flags rv64iv as no longer valid:
cc1: sorry, unimplemented: Currently the 'V' implementation
requires the 'M' extension
and as a result vector support is disabled. Fix this by adding m
to our toolchain vector detection code.
Signed-off-by: Anton Blanchard <antonb@tenstorrent.com>
---
arch/riscv/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 0f3cd7c3a436..939ea7f6a228 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -552,8 +552,8 @@ config RISCV_ISA_SVPBMT
config TOOLCHAIN_HAS_V
bool
default y
- depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64iv)
- depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32iv)
+ depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64imv)
+ depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32imv)
depends on LLD_VERSION >= 140000 || LD_VERSION >= 23800
depends on AS_HAS_OPTION_ARCH
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] riscv: Fix toolchain vector detection
2024-08-19 0:11 [PATCH] riscv: Fix toolchain vector detection Anton Blanchard
@ 2024-08-19 16:45 ` Conor Dooley
2024-08-26 11:50 ` Alexandre Ghiti
2024-09-03 19:10 ` patchwork-bot+linux-riscv
2 siblings, 0 replies; 4+ messages in thread
From: Conor Dooley @ 2024-08-19 16:45 UTC (permalink / raw)
To: Anton Blanchard
Cc: linux-riscv, linux-kernel, Paul Walmsley, Palmer Dabbelt,
Albert Ou
[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]
On Mon, Aug 19, 2024 at 12:11:31AM +0000, Anton Blanchard wrote:
> A recent change to gcc flags rv64iv as no longer valid:
>
> cc1: sorry, unimplemented: Currently the 'V' implementation
> requires the 'M' extension
>
> and as a result vector support is disabled. Fix this by adding m
> to our toolchain vector detection code.
>
> Signed-off-by: Anton Blanchard <antonb@tenstorrent.com>
This one definitely needs a cc: stable, it's required as far back as
6.6, right?
> ---
> arch/riscv/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 0f3cd7c3a436..939ea7f6a228 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -552,8 +552,8 @@ config RISCV_ISA_SVPBMT
> config TOOLCHAIN_HAS_V
> bool
> default y
> - depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64iv)
> - depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32iv)
> + depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64imv)
> + depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32imv)
> depends on LLD_VERSION >= 140000 || LD_VERSION >= 23800
> depends on AS_HAS_OPTION_ARCH
>
> --
> 2.34.1
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] riscv: Fix toolchain vector detection
2024-08-19 0:11 [PATCH] riscv: Fix toolchain vector detection Anton Blanchard
2024-08-19 16:45 ` Conor Dooley
@ 2024-08-26 11:50 ` Alexandre Ghiti
2024-09-03 19:10 ` patchwork-bot+linux-riscv
2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Ghiti @ 2024-08-26 11:50 UTC (permalink / raw)
To: Anton Blanchard, linux-riscv, linux-kernel
Cc: Paul Walmsley, Palmer Dabbelt, Albert Ou
Hi Anton,
On 19/08/2024 02:11, Anton Blanchard wrote:
> A recent change to gcc flags rv64iv as no longer valid:
>
> cc1: sorry, unimplemented: Currently the 'V' implementation
> requires the 'M' extension
>
> and as a result vector support is disabled. Fix this by adding m
> to our toolchain vector detection code.
>
> Signed-off-by: Anton Blanchard <antonb@tenstorrent.com>
> ---
> arch/riscv/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index 0f3cd7c3a436..939ea7f6a228 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -552,8 +552,8 @@ config RISCV_ISA_SVPBMT
> config TOOLCHAIN_HAS_V
> bool
> default y
> - depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64iv)
> - depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32iv)
> + depends on !64BIT || $(cc-option,-mabi=lp64 -march=rv64imv)
> + depends on !32BIT || $(cc-option,-mabi=ilp32 -march=rv32imv)
> depends on LLD_VERSION >= 140000 || LD_VERSION >= 23800
> depends on AS_HAS_OPTION_ARCH
>
As Conor noted, we need to backport this to stable releases so here is a
Fixes tag:
Fixes: fa8e7cce55da ("riscv: Enable Vector code to be built")
Thanks,
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] riscv: Fix toolchain vector detection
2024-08-19 0:11 [PATCH] riscv: Fix toolchain vector detection Anton Blanchard
2024-08-19 16:45 ` Conor Dooley
2024-08-26 11:50 ` Alexandre Ghiti
@ 2024-09-03 19:10 ` patchwork-bot+linux-riscv
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-09-03 19:10 UTC (permalink / raw)
To: Anton Blanchard; +Cc: linux-riscv, linux-kernel, paul.walmsley, palmer, aou
Hello:
This patch was applied to riscv/linux.git (fixes)
by Palmer Dabbelt <palmer@rivosinc.com>:
On Mon, 19 Aug 2024 00:11:31 +0000 you wrote:
> A recent change to gcc flags rv64iv as no longer valid:
>
> cc1: sorry, unimplemented: Currently the 'V' implementation
> requires the 'M' extension
>
> and as a result vector support is disabled. Fix this by adding m
> to our toolchain vector detection code.
>
> [...]
Here is the summary with links:
- riscv: Fix toolchain vector detection
https://git.kernel.org/riscv/c/5ba7a75a53df
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-03 19:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-19 0:11 [PATCH] riscv: Fix toolchain vector detection Anton Blanchard
2024-08-19 16:45 ` Conor Dooley
2024-08-26 11:50 ` Alexandre Ghiti
2024-09-03 19:10 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox