VOOZH about

URL: https://www.phoronix.com/news/RISC-V-XIP-Being-Removed

⇱ RISC-V XIP Linux Feature Being Removed After It Keeps Breaking For Months At A Time - Phoronix


👁 Phoronix

RISC-V XIP Linux Feature Being Removed After It Keeps Breaking For Months At A Time

Written by Michael Larabel in RISC-V on 7 April 2026 at 06:19 AM EDT. 10 Comments
Introduced in Linux 5.13 back in 2021 was eXecute In Place "XIP" support for RISC-V that allows for the kernel image to be executed from ROM. The intent is on allowing the kernel to run from non-volatile storage like NOR flash that is directly addressable by the CPU and to reduce RAM usage. But after RISC-V XIP support is broken for months at a time, the feature is now set to be retired from the mainline kernel.

Last year RISC-V XIP kernel support was restored after being broken for several Linux kernel versions. It was fixed up only to end up being in a broken state later in the year and is still broken on mainline. With broken RISC-V XIP kernel support persisting for months, it's clear to the developers the functionality is not being well used or tested.

Nam Cao has authored a patch to just remove the RISC-V XIP support given its recurring broken state. The patch is queued up in RISC-V's "for-next" Git branch and thus should be part of the upcoming Linux 7.1 merge window.

👁 RISC-V XIP removed


Nam Cao explained with that patch:
"XIP has a history of being broken for long periods of time. In 2023, it was broken for 18 months before getting fixed. In 2024 it was 4 months.

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."

Especially given RAM constraints in the industry these days, it's a bit surprising RISC-V XIP wasn't better leveraged, but alas it can be restored later on if people end up actually using it.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.