Skip to contentSkip to conversation

RISC-V: make ARCH_THEAD preclude XIP_KERNEL

GIT PULL Applied Conor Dooley 2 participants 2 messages Jun 28, 2023 – Jul 5, 2023 RISC-V

lore
Share & tools
lore
#0 lore raw

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.

---
A fix for a randconfig issue Randy spotted in linux-next at the weekend. This fix has been in linux-next since Monday. Noticed your PRs hadn't gone out, so figured I should send this, rather than let the issue sneak into mainline.

---
 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.40.1
#1 lore raw
This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <[email protected]>:

Hello:

This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <[email protected]>:

Quoted 15 lines · On Wed, 28 Jun 2023 08:12:30 +0100 you wrote:

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.

Quoted 1 line

[...]

Here is the summary with links:
- [GIT,PULL] RISC-V: make ARCH_THEAD preclude XIP_KERNEL

    https://git.kernel.org/soc/soc/c/2fa4139f3e48

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html