Skip to content

remove size limit on XIP kernel

Nam Cao linux-riscv lkml 2 versions – Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 1 replyApplied 8/8
  2. v17 patches 11 repliesSuperseded

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8riscv: cleanup XIP_FIXUP macroarch/riscv/include/asm/pgtable.h+7 -40 repliesApplied
2/8riscv: don't export va_kernel_pa_offset in vmcoreinfo for XIP kernelarch/riscv/kernel/vmcore_info.c+7 -01 replyApplied
3/8riscv: replace misleading va_kernel_pa_offset on XIP kernelarch/riscv/include/asm/page.h arch/riscv/mm/init.c+25 -100 repliesApplied
4/8riscv: drop the use of XIP_OFFSET in XIP_FIXUP_OFFSETarch/riscv/include/asm/xip_fixup.h+12 -20 repliesApplied
5/8riscv: drop the use of XIP_OFFSET in XIP_FIXUP_FLASH_OFFSETarch/riscv/include/asm/xip_fixup.h+12 -40 repliesApplied
6/8riscv: drop the use of XIP_OFFSET in kernel_mapping_va_to_pa()arch/riscv/include/asm/page.h+1 -10 repliesApplied
7/8riscv: drop the use of XIP_OFFSET in create_kernel_page_table()arch/riscv/mm/init.c+4 -30 repliesApplied
8/8riscv: remove limit on the size of read-only section for XIP kernelarch/riscv/include/asm/pgtable.h arch/riscv/include/asm/set_memory.h arch/riscv/kernel/vmlinux-xip.lds.S+4 -100 repliesApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchAlexandre Ghiti
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] remove size limit on XIP 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/[email protected]/

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(-)
Signature · 1 line
2.39.2