Make it possible to reserve memory on 64bit platform
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 3 repliesIn review
- v22 patches 4 repliesSuperseded
- v12 patches 3 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib/cmdline: add new function get_option_ull()include/ lib/ | +82 | 1 reply | |
| 2/2 | resource: Make it possible to reserve memory on 64bit platformkernel/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] Make it possible to reserve memory on 64bit platform
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.
I run the cmdline_kunit.c and got these:
[ 1.663048] 1..1 [ 1.663107] # Subtest: cmdline [ 1.663145] 1..3 [ 1.663795] ok 1 - cmdline_test_noint [ 1.664139] ok 2 - cmdline_test_lead_int [ 1.664553] ok 3 - cmdline_test_tail_int [ 1.664788] ok 1 - cmdline
Additionaly:
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(-)
Signature · 1 line
2.7.4