All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2] x86/boot/e820: add new chareater - to free BIOS memory in memmap bootargs
@ 2018-04-10  2:59 zoucao
  2018-04-10  2:59 ` [PATCH] x86/boot/e820: add new chareater "-" " zoucao
  0 siblings, 1 reply; 9+ messages in thread
From: zoucao @ 2018-04-10  2:59 UTC (permalink / raw)
  To: tglx, mingo, hpa; +Cc: x86, linux-kernel

this is useing memmap=0x4101000-0x6aeff000 to free BIOS reserved memory
"6aeff000-6effffff : reserved":

	......
	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
	......


V1>V2: fixed the wrong chareaters

zoucao (1):
      x86/boot/e820: add new chareater "-" to free BIOS memory in memmap bootargs

 7u/Documentation/kernel-parameters.txt | 6 ++++++
 7u/arch/x86/kernel/e820.c              | 3 +++
 2 files changed, 9 insertions(+)

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH] free e820 reserved memory in bootargs memmap
@ 2018-04-08  6:41 zoucao
  2018-04-08  6:41 ` [PATCH] x86/boot/e820: add new chareater "-" to free BIOS memory in memmap bootargs zoucao
  0 siblings, 1 reply; 9+ messages in thread
From: zoucao @ 2018-04-08  6:41 UTC (permalink / raw)
  To: tglx; +Cc: linux-kernel

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
	......

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

end of thread, other threads:[~2018-04-17 14:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-10  2:59 [PATCH V2] x86/boot/e820: add new chareater - to free BIOS memory in memmap bootargs zoucao
2018-04-10  2:59 ` [PATCH] x86/boot/e820: add new chareater "-" " zoucao
2018-04-16 11:06   ` zoucao-ipc
2018-04-17  6:18   ` zoucao-ipc
2018-04-17 10:22     ` Thomas Gleixner
2018-04-17 13:11       ` zoucao-ipc
2018-04-17 13:47   ` Thomas Gleixner
2018-04-17 14:40     ` zoucao-ipc
  -- strict thread matches above, loose matches on Subject: below --
2018-04-08  6:41 [PATCH] free e820 reserved memory in bootargs memmap zoucao
2018-04-08  6:41 ` [PATCH] x86/boot/e820: add new chareater "-" to free BIOS memory in memmap bootargs zoucao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.