From: zoucao@linux.alibaba.com
To: tglx@linutronix.de
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] free e820 reserved memory in bootargs memmap
Date: Sun, 8 Apr 2018 14:41:33 +0800 [thread overview]
Message-ID: <20180408064134.77385-1-zoucao@linux.alibaba.com> (raw)
add a new chareater "-" in bootargs memmap, you can use this chareater to free
e820 reserved memory, for example:
reserved iomem:
cat /proc/iomem:
......
00100000-6aefefff : System RAM
01000000-0165537a : Kernel code
0165537b-01a8873f : Kernel data
01c31000-01f4efff : Kernel bss
28000000-320fffff : Crash kernel
6aeff000-6effffff : reserved --> it is e820 reserved memory
6f000000-78240fff : System RAM
......
add bootargs memmap=0x4101000-0x6aeff000, to free memory region: 6aeff000-6effffff
then 6aeff000-6effffff will be merged into 00100000-78240fff.
new iomem:
cat /proc/iomem:
......
00100000-78240fff : System RAM
01000000-0165537a : Kernel code
0165537b-01a8873f : Kernel data
01c31000-01f4efff : Kernel bss
......
next reply other threads:[~2018-04-08 6:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-08 6:41 zoucao [this message]
2018-04-08 6:41 ` [PATCH] x86/boot/e820: add new chareater "-" to free BIOS memory in memmap bootargs zoucao
2018-04-10 2:32 ` [PATCH] free e820 reserved memory in bootargs memmap zoucao-ipc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180408064134.77385-1-zoucao@linux.alibaba.com \
--to=zoucao@linux.alibaba.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®