Skip to contentSkip to conversation

RISC-V: make ARCH_THEAD preclude XIP_KERNEL

PATCH Applied Conor Dooley 2 participants 5 messages Jun 21, 2023 – Jun 22, 2023 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RISC-V: make ARCH_THEAD preclude XIP_KERNEL

From: Conor Dooley <[email protected]>

Randy reported build errors in linux-next where XIP_KERNEL was enabled. ARCH_THEAD requires alternatives to support the non-standard ISA extensions used by the THEAD cores, which are mutually exclusive with XIP kernels. Clone the dependency list from the Allwinner entry, since Allwinner's D1 uses T-Head cores with the same non-standard extensions.

---
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: Jisheng Zhang <[email protected]>
CC: [email protected]
CC: [email protected]

---
 arch/riscv/Kconfig.socs | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig.socs +1 -0
index ce10a38dff37..6833d01e2e70 100644
@@ -43,6 +43,7 @@ config ARCH_SUNXI
 
 config ARCH_THEAD
 	bool "T-HEAD RISC-V SoCs"
+	depends on MMU && !XIP_KERNEL
 	select ERRATA_THEAD
 	help
 	  This enables support for the RISC-V based T-HEAD SoCs.
Signature · 1 line
2.39.2
maintainer Reviewed-by Acked-by on v1 1/1
#1 lore raw
Quoted 30 lines · Conor Dooley

From: Conor Dooley <[email protected]>

Randy reported build errors in linux-next where XIP_KERNEL was enabled. ARCH_THEAD requires alternatives to support the non-standard ISA extensions used by the THEAD cores, which are mutually exclusive with XIP kernels. Clone the dependency list from the Allwinner entry, since Allwinner's D1 uses T-Head cores with the same non-standard extensions.

---
CC: Paul Walmsley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Albert Ou <[email protected]>
CC: Jisheng Zhang <[email protected]>
CC: [email protected]
CC: [email protected]

---
 arch/riscv/Kconfig.socs | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig.socs +0 -0
index ce10a38dff37..6833d01e2e70 100644

arch/riscv/Kconfig.socs config ARCH_SUNXI · line 49

Quoted 7 lines
arch/riscv/Kconfig.socs +1 -0
@@ -43,6 +43,7 @@ config ARCH_SUNXI
 
 config ARCH_THEAD
 	bool "T-HEAD RISC-V SoCs"
+	depends on MMU && !XIP_KERNEL
 	select ERRATA_THEAD
 	help
 	  This enables support for the RISC-V based T-HEAD SoCs.

I don't have an ARCH_THEAD, though, so not sure where this is aimed at.

maintainer
#3 lore raw
Quoted 9 lines · Conor Dooley
Quoted 4 lines · Palmer Dabbelt

I don't have an ARCH_THEAD, though, so not sure where this is aimed at.

I need to take it, I applied the patches. Sorry, probably should have said it below the --- line.

No problem, I figured they were over there somewhere -- just kind of hard to keep track with how much is in flight right now ;)

author Applied
#4 lore raw
In reply to Conor Dooley

From: Conor Dooley <[email protected]>

Quoted 8 lines · Conor Dooley

Randy reported build errors in linux-next where XIP_KERNEL was enabled. ARCH_THEAD requires alternatives to support the non-standard ISA extensions used by the THEAD cores, which are mutually exclusive with XIP kernels. Clone the dependency list from the Allwinner entry, since Allwinner's D1 uses T-Head cores with the same non-standard extensions.

[...]

Applied to riscv-dt-for-next, thanks!

[1/1] RISC-V: make ARCH_THEAD preclude XIP_KERNEL

      https://git.kernel.org/conor/c/273235194e4d

Thanks,
Conor.