Skip to content

RFC riscv: Add riscv.fwsz kernel parameter to save memory

[email protected] linux-doc linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: Remove 2MB offset in the mm layoutarch/riscv/include/asm/page.h arch/riscv/kernel/head.S arch/riscv/kernel/vmlinux.lds.S +1 more+21 -135 replies
2/3riscv: Add early_param to decrease firmware regionarch/riscv/mm/init.c+13 -13 replies
3/3riscv: Add riscv.fwsz kernel parameterDocumentation/admin-guide/kernel-parameters.txt+3 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] riscv: Add riscv.fwsz kernel parameter to save memory

From: Guo Ren <[email protected]>

The firmware of riscv (such as opensbi) occupy 2MB(64bit) / 4MB(32bit) in Linux. It's very wasteful to small memory footprint soc chip such as Allwinner D1s/F133. The kernel parameter gives a chance to users to set the proper size of the firmware and get more than 1.5MB of memory.

Guo Ren (3):
riscv: Remove 2MB offset in the mm layout
riscv: Add early_param to decrease firmware region
riscv: Add riscv.fwsz kernel parameter

 .../admin-guide/kernel-parameters.txt         |  3 +++
 arch/riscv/include/asm/page.h                 |  8 +++++++
 arch/riscv/kernel/head.S                      | 10 +++-----
 arch/riscv/kernel/vmlinux.lds.S               |  5 ++--
 arch/riscv/mm/init.c                          | 23 ++++++++++++++++---
 5 files changed, 36 insertions(+), 13 deletions(-)
Signature · 1 line
2.25.1