linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Make it possible to reserve memory on 64bit platform
@ 2021-01-16 10:41 Wesley Zhao
  2021-01-16 10:41 ` [PATCH v2 1/2] lib/cmdline: add new function get_option_ull() Wesley Zhao
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wesley Zhao @ 2021-01-16 10:41 UTC (permalink / raw)
  To: akpm
  Cc: andriy.shevchenko, keescook, tglx, kerneldev, nivedita, joe,
	gpiccoli, aquini, gustavoars, zhaowei1102, ojeda, ndesaulniers,
	linux-kernel, david, dan.j.williams, guohanjun, mchehab+huawei

I was trying to reserve some memory to save logs incase that Android panic or hang and then
I can read the logs from QNX side from the memory reserved before on the Qualcomm 8155 hypervisor platform,
and I find the "reserve=" parameter only support 32bit,so I made some change and send these patches.

testcase:
	I test on the qemu with some cmdline like[qemu-system-x86_64 -kernel linux-next/arch/x86_64/boot/bzImage
	-hda ubuntu-system.ext4 -append "root=/dev/sda init=/bin/bash console=ttyS0 reserve=0x180000000,0x123456"
	-nographic]	and check the /proc/iomem with 180000000-180123455 : reserved.
	And some other tests with the get_option with the parameter(-12345678) and so on

Wesley Zhao (2):
  lib/cmdline: add new function get_option_ull()
  resource: Make it possible to reserve memory on 64bit platform

 include/linux/kernel.h |  2 ++
 kernel/resource.c      |  6 ++--
 lib/cmdline.c          | 94 ++++++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 85 insertions(+), 17 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2021-01-22 10:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-16 10:41 [PATCH v2 0/2] Make it possible to reserve memory on 64bit platform Wesley Zhao
2021-01-16 10:41 ` [PATCH v2 1/2] lib/cmdline: add new function get_option_ull() Wesley Zhao
2021-01-17 19:02 ` [PATCH v2 0/2] Make it possible to reserve memory on 64bit platform Dan Williams
     [not found]   ` <202101181151049299923@thundersoft.com>
2021-01-18  9:50     ` David Hildenbrand
     [not found]       ` <202101221536190259795@thundersoft.com>
2021-01-22 10:21         ` Andy Shevchenko
2021-01-18 10:42 ` Andy Shevchenko

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