linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] riscv: Add riscv.fwsz kernel parameter to save memory
@ 2021-11-23  1:57 guoren
  2021-11-23  1:57 ` [RFC PATCH 1/3] riscv: Remove 2MB offset in the mm layout guoren
                   ` (3 more replies)
  0 siblings, 4 replies; 23+ messages in thread
From: guoren @ 2021-11-23  1:57 UTC (permalink / raw)
  To: guoren, anup, palmer, atishp
  Cc: linux-kernel, linux-riscv, linux-doc, Guo Ren

From: Guo Ren <guoren@linux.alibaba.com>

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(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-11-24 15:09 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-23  1:57 [RFC PATCH 0/3] riscv: Add riscv.fwsz kernel parameter to save memory guoren
2021-11-23  1:57 ` [RFC PATCH 1/3] riscv: Remove 2MB offset in the mm layout guoren
2021-11-23  3:56   ` Anup Patel
2021-11-23  6:18     ` Guo Ren
2021-11-23 13:37     ` Alexandre Ghiti
2021-11-24 11:58       ` Guo Ren
2021-11-24 15:09         ` Alexandre ghiti
2021-11-23  1:57 ` [RFC PATCH 2/3] riscv: Add early_param to decrease firmware region guoren
2021-11-23  3:44   ` Anup Patel
2021-11-23 11:53     ` Jessica Clarke
2021-11-23 13:37       ` Alexandre Ghiti
2021-11-23  1:57 ` [RFC PATCH 3/3] riscv: Add riscv.fwsz kernel parameter guoren
2021-11-23  2:34   ` Randy Dunlap
2021-11-23  3:21     ` Guo Ren
2021-11-23  3:45   ` Anup Patel
2021-11-23 19:33 ` [RFC PATCH 0/3] riscv: Add riscv.fwsz kernel parameter to save memory Heiko Stübner
2021-11-23 20:01   ` Atish Patra
2021-11-23 21:50     ` Heiko Stübner
2021-11-24  6:49     ` Guo Ren
2021-11-24 12:13       ` Heiko Stübner
2021-11-24 14:25         ` Guo Ren
2021-11-24  6:42   ` Guo Ren
2021-11-24 12:16     ` Heiko Stübner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).