public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] remove size limit on XIP kernel
@ 2024-06-07 20:22 Nam Cao
  2024-06-07 20:22 ` [PATCH v2 1/8] riscv: cleanup XIP_FIXUP macro Nam Cao
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Nam Cao @ 2024-06-07 20:22 UTC (permalink / raw)
  To: Alexandre Ghiti, Paul Walmsley, Palmer Dabbelt, Albert Ou,
	linux-riscv, linux-kernel

Hi,

For XIP kernel, the writable data section is always at offset specified in
XIP_OFFSET, which is hard-coded to 32MB.

Unfortunately, this means the read-only section (placed before the
writable section) is restricted in size. This causes build failure if the
kernel gets too large.

This series remove the use of XIP_OFFSET one by one, then remove this
macro entirely at the end, with the goal of lifting this size restriction.

Also some cleanup and documentation along the way.

This series depends on
https://lore.kernel.org/linux-riscv/20240508191917.2892064-1-namcao@linutronix.de/

v2: address all Alex's comments (thanks Alex!). This includes the addition of a
new patch (riscv: don't export va_kernel_pa_offset in vmcoreinfo for XIP kernel),
which fix a build failure if CONFIG_VMCORE_INFO=y

Best regards,
Nam

Nam Cao (8):
  riscv: cleanup XIP_FIXUP macro
  riscv: don't export va_kernel_pa_offset in vmcoreinfo for XIP kernel
  riscv: replace misleading va_kernel_pa_offset on XIP kernel
  riscv: drop the use of XIP_OFFSET in XIP_FIXUP_OFFSET
  riscv: drop the use of XIP_OFFSET in XIP_FIXUP_FLASH_OFFSET
  riscv: drop the use of XIP_OFFSET in kernel_mapping_va_to_pa()
  riscv: drop the use of XIP_OFFSET in create_kernel_page_table()
  riscv: remove limit on the size of read-only section for XIP kernel

 arch/riscv/include/asm/page.h       | 29 ++++++++++++++++++++--------
 arch/riscv/include/asm/pgtable.h    | 18 +++++++----------
 arch/riscv/include/asm/set_memory.h |  2 +-
 arch/riscv/include/asm/xip_fixup.h  | 30 +++++++++++++++++++++++------
 arch/riscv/kernel/vmcore_info.c     |  7 +++++++
 arch/riscv/kernel/vmlinux-xip.lds.S |  5 +++--
 arch/riscv/mm/init.c                | 13 ++++++++-----
 7 files changed, 71 insertions(+), 33 deletions(-)

-- 
2.39.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-09-14  8:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 20:22 [PATCH v2 0/8] remove size limit on XIP kernel Nam Cao
2024-06-07 20:22 ` [PATCH v2 1/8] riscv: cleanup XIP_FIXUP macro Nam Cao
2024-06-07 20:22 ` [PATCH v2 2/8] riscv: don't export va_kernel_pa_offset in vmcoreinfo for XIP kernel Nam Cao
2024-06-21 10:27   ` Alexandre Ghiti
2024-06-07 20:22 ` [PATCH v2 3/8] riscv: replace misleading va_kernel_pa_offset on " Nam Cao
2024-06-07 20:22 ` [PATCH v2 4/8] riscv: drop the use of XIP_OFFSET in XIP_FIXUP_OFFSET Nam Cao
2024-06-07 20:22 ` [PATCH v2 5/8] riscv: drop the use of XIP_OFFSET in XIP_FIXUP_FLASH_OFFSET Nam Cao
2024-06-07 20:22 ` [PATCH v2 6/8] riscv: drop the use of XIP_OFFSET in kernel_mapping_va_to_pa() Nam Cao
2024-06-07 20:22 ` [PATCH v2 7/8] riscv: drop the use of XIP_OFFSET in create_kernel_page_table() Nam Cao
2024-06-07 20:22 ` [PATCH v2 8/8] riscv: remove limit on the size of read-only section for XIP kernel Nam Cao
2024-09-14  8:13 ` [PATCH v2 0/8] remove size limit on " 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