]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: Remove support for XIP kernel
authorNam Cao <namcao@linutronix.de>
Sat, 4 Apr 2026 01:28:48 +0000 (19:28 -0600)
committerPaul Walmsley <pjw@kernel.org>
Sun, 5 Apr 2026 00:42:44 +0000 (18:42 -0600)
commit9b3a2be84803cf18c4b4d1efc695991f0daa153c
tree252a2dc3ac273b13a1ce6791bb487a6867ab3e52
parent74aefe1387bdf015c0814cc1617aa94318db5710
riscv: Remove support for XIP kernel

XIP has a history of being broken for long periods of time. In 2023, it was
broken for 18 months before getting fixed [1]. In 2024 it was 4 months [2].

And now it is broken again since commit a44fb5722199 ("riscv: Add runtime
constant support"), 10 months ago.

These are clear signs that XIP feature is not being used.

I occasionally looked after XIP, but mostly because I was bored and had
nothing better to do.

Remove XIP support. Revert is possible if someone shows up complaining.

Link: https://lore.kernel.org/linux-riscv/20231212-customary-hardcover-e19462bf8e75@wendy/
Link: https://lore.kernel.org/linux-riscv/20240526110104.470429-1-namcao@linutronix.de/
Signed-off-by: Nam Cao <namcao@linutronix.de>
Cc: Frederik Haxel <haxel@fzi.de>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20260202115403.2119218-1-namcao@linutronix.de
[pjw@kernel.org: updated to apply]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
17 files changed:
arch/riscv/Kconfig
arch/riscv/Kconfig.socs
arch/riscv/Makefile
arch/riscv/boot/Makefile
arch/riscv/include/asm/page.h
arch/riscv/include/asm/pgtable.h
arch/riscv/include/asm/scs.h
arch/riscv/include/asm/set_memory.h
arch/riscv/include/asm/xip_fixup.h [deleted file]
arch/riscv/kernel/head.S
arch/riscv/kernel/head.h
arch/riscv/kernel/setup.c
arch/riscv/kernel/suspend_entry.S
arch/riscv/kernel/traps.c
arch/riscv/kernel/vmcore_info.c
arch/riscv/kernel/vmlinux.lds.S
arch/riscv/mm/init.c