[PATCH 2/4] x86/setup: Use parse_crashkernel_high_low() to simplify code

2021-12-24 Thread Zhen Lei
Use parse_crashkernel_high_low() to bring the parsing of "crashkernel=X,high" and the parsing of "crashkernel=Y,low" together, they are strongly dependent, make code logic clear and more readable. Suggested-by: Borislav Petkov Signed-off-by: Zhen Lei --- arch/x86/kernel/setup.c | 21

[PATCH 0/4] kdump: add parse_crashkernel_high_low() to replace parse_crashkernel_{high|low}()

2021-12-24 Thread Zhen Lei
The bootup command line option crashkernel=Y,low is valid only when crashkernel=X,high is specified. Putting their parsing into a separate function makes the code logic clearer and easier to understand the strong dependencies between them. So add parse_crashkernel_high_low() and use it to repalce

[PATCH 1/4] kdump: add helper parse_crashkernel_high_low()

2021-12-24 Thread Zhen Lei
The bootup command line option crashkernel=Y,low is valid only when crashkernel=X,high is specified. Putting their parsing into a separate function makes the code logic clearer and easier to understand the strong dependencies between them. Signed-off-by: Zhen Lei --- include/linux/crash_core.h

[PATCH 4/4] kdump: reduce unnecessary parameters of parse_crashkernel_{high|low}()

2021-12-24 Thread Zhen Lei
Delete confusing parameters 'system_ram' and 'crash_base' of parse_crashkernel_{high|low}(), they are only needed by the case of "crashkernel=X@[offset]". Signed-off-by: Zhen Lei --- kernel/crash_core.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git

[PATCH 3/4] kdump: make parse_crashkernel_{high|low}() static

2021-12-24 Thread Zhen Lei
Make parse_crashkernel_{high|low}() static, they are only referenced by parse_crashkernel_high_low() in the same file. The latter is recommended. Signed-off-by: Zhen Lei --- include/linux/crash_core.h | 4 kernel/crash_core.c| 4 ++-- 2 files changed, 2 insertions(+), 6

Re: [PATCH v4 3/3] mm/page_alloc.c: do not warn allocation failure on zone DMA if no managed pages

2021-12-24 Thread Hyeonggon Yoo
On Thu, Dec 23, 2021 at 05:44:35PM +0800, Baoquan He wrote: > In kdump kernel of x86_64, page allocation failure is observed: > > kworker/u2:2: page allocation failure: order:0, > mode:0xcc1(GFP_KERNEL|GFP_DMA), nodemask=(null),cpuset=/,mems_allowed=0 > CPU: 0 PID: 55 Comm: kworker/u2:2 Not

Re: [PATCH v18 04/17] x86/setup: Add helper parse_crashkernel_in_order()

2021-12-24 Thread Leizhen (ThunderTown)
On 2021/12/22 21:08, Zhen Lei wrote: > Currently, there are two possible combinations of configurations. > (1) crashkernel=X[@offset] > (2) crashkernel=X,high, with or without crashkernel=X,low > > (1) has the highest priority, if it is configured correctly, (2) will be > ignored. Similarly,

Re: [PATCH v18 02/17] x86/setup: Move xen_pv_domain() check and insert_resource() to setup_arch()

2021-12-24 Thread Leizhen (ThunderTown)
On 2021/12/24 14:36, Leizhen (ThunderTown) wrote: > > > On 2021/12/24 1:26, Borislav Petkov wrote: >> On Wed, Dec 22, 2021 at 09:08:05PM +0800, Zhen Lei wrote: >>> From: Chen Zhou >>> >>> We will make the functions reserve_crashkernel() as generic, the >>> xen_pv_domain() check in

HELLO

2021-12-24 Thread Barrister Andre Bonvin
-- Compliments, sir, Did you received the message I sent to you yesterday? I look forward to hearing from you soon. Barrister Andre Bonvin ___ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec