[PATCH] arm64: support more than one crash kernel regions

2019-04-02 Thread Chen Zhou
sable-memory-range = " property to crash dump kernel. Now, we pass "linux,usable-memory-range = " to crash dump kernel to support two crash kernel regions and load crash kernel high. Signed-off-by: Chen Zhou --- kexec/arch/arm64/crashdump-arm64.c | 44 +--

[PATCH 2/3] arm64: kdump: support more than one crash kernel regions

2019-04-02 Thread Chen Zhou
After commit (arm64: kdump: support reserving crashkernel above 4G), there may be two crash kernel regions, one is below 4G, the other is above 4G. Crash dump kernel reads more than one crash kernel regions via a dtb property under node /chosen, linux,usable-memory-range = Signed-off-by: Chen

[PATCH 0/3] support reserving crashkernel above 4G on arm64 kdump

2019-04-02 Thread Chen Zhou
node /chosen, linux,usable-memory-range = . Besides, we need to modify kexec-tools: arm64: support more than one crash kernel regions Chen Zhou (3): arm64: kdump: support reserving crashkernel above 4G arm64: kdump: support more than one crash kernel regions kdump: update Documentation

[PATCH 1/3] arm64: kdump: support reserving crashkernel above 4G

2019-04-02 Thread Chen Zhou
-off-by: Chen Zhou --- arch/arm64/kernel/setup.c | 3 ++ arch/arm64/mm/init.c | 71 +-- 2 files changed, 71 insertions(+), 3 deletions(-) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 413d566..82cd9a0 100644 --- a/arch

[PATCH 3/3] kdump: update Documentation about crashkernel on arm64

2019-04-02 Thread Chen Zhou
Now we support crashkernel=X,[high,low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

Re: [PATCH 2/3] arm64: kdump: support more than one crash kernel regions

2019-04-03 Thread Chen Zhou
Hi Mike, On 2019/4/3 19:29, Mike Rapoport wrote: > On Wed, Apr 03, 2019 at 11:05:45AM +0800, Chen Zhou wrote: >> After commit (arm64: kdump: support reserving crashkernel above 4G), >> there may be two crash kernel regions, one is below 4G, the other is >> above 4G. >>

Re: [PATCH 2/3] arm64: kdump: support more than one crash kernel regions

2019-04-04 Thread Chen Zhou
Hi Mike, On 2019/4/4 22:44, Mike Rapoport wrote: > Hi, > > On Wed, Apr 03, 2019 at 09:51:27PM +0800, Chen Zhou wrote: >> Hi Mike, >> >> On 2019/4/3 19:29, Mike Rapoport wrote: >>> On Wed, Apr 03, 2019 at 11:05:45AM +0800, Chen Zhou wrote: >>>&g

Re: [PATCH 1/3] arm64: kdump: support reserving crashkernel above 4G

2019-04-04 Thread Chen Zhou
Hi Mike, On 2019/4/4 22:46, Mike Rapoport wrote: > Hi, > > On Wed, Apr 03, 2019 at 11:05:44AM +0800, Chen Zhou wrote: >> When crashkernel is reserved above 4G in memory, kernel should >> reserve some amount of low memory for swiotlb and some DMA buffers. >> >>

Re: [PATCH 2/3] arm64: kdump: support more than one crash kernel regions

2019-04-04 Thread Chen Zhou
Hi Mike, On 2019/4/5 10:17, Chen Zhou wrote: > Hi Mike, > > On 2019/4/4 22:44, Mike Rapoport wrote: >> Hi, >> >> On Wed, Apr 03, 2019 at 09:51:27PM +0800, Chen Zhou wrote: >>> Hi Mike, >>> >>> On 2019/4/3 19:29, Mike Rapoport wrote: >>

Re: [PATCH 2/3] arm64: kdump: support more than one crash kernel regions

2019-04-08 Thread Chen Zhou
Hi Mike, On 2019/4/8 14:57, Mike Rapoport wrote: > Hi, > > On Fri, Apr 05, 2019 at 11:47:27AM +0800, Chen Zhou wrote: >> Hi Mike, >> >> On 2019/4/5 10:17, Chen Zhou wrote: >>> Hi Mike, >>> >>> On 2019/4/4 22:44, Mike Rapoport wrote: >&

[RESEND PATCH] arm64: support more than one crash kernel regions

2019-04-08 Thread Chen Zhou
below: Link: https://lore.kernel.org/linux-arm-kernel/20190403030546.23718-1-chenzho...@huawei.com/T/#t Signed-off-by: Chen Zhou --- kexec/arch/arm64/crashdump-arm64.c | 44 + kexec/arch/arm64/crashdump-arm64.h | 3 +- kexec/arch/arm64/ke

Re: [PATCH 2/3] arm64: kdump: support more than one crash kernel regions

2019-04-08 Thread Chen Zhou
Hi Mike, On 2019/4/8 16:39, Chen Zhou wrote: >>> >>> Sorry, just ignore my previous reply, I got that wrong. >>> >>> I think it carefully, we can cap the memory range for [min(regs[*].start, >>> max(regs[*].end)] >>> firstly. B

[PATCH v2 1/3] arm64: kdump: support reserving crashkernel above 4G

2019-04-09 Thread Chen Zhou
-off-by: Chen Zhou --- arch/arm64/include/asm/kexec.h | 3 ++ arch/arm64/kernel/setup.c | 3 ++ arch/arm64/mm/init.c | 26 + arch/x86/include/asm/kexec.h | 3 ++ arch/x86/kernel/setup.c| 66 +- include/linux/kexec.h

[PATCH v2 2/3] arm64: kdump: support more than one crash kernel regions

2019-04-09 Thread Chen Zhou
After commit (arm64: kdump: support reserving crashkernel above 4G), there may be two crash kernel regions, one is below 4G, the other is above 4G. Crash dump kernel reads more than one crash kernel regions via a dtb property under node /chosen, linux,usable-memory-range = Signed-off-by: Chen

[PATCH v2 3/3] kdump: update Documentation about crashkernel on arm64

2019-04-09 Thread Chen Zhou
Now we support crashkernel=X,[high,low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

[PATCH v2 0/3] support reserving crashkernel above 4G on arm64 kdump

2019-04-09 Thread Chen Zhou
/022792.html [v1]: https://lkml.org/lkml/2019/4/8/628 Chen Zhou (3): arm64: kdump: support reserving crashkernel above 4G arm64: kdump: support more than one crash kernel regions kdump: update Documentation about crashkernel on arm64 Documentation/admin-guide/kernel-parameters.txt | 4

Re: [PATCH 0/3] support reserving crashkernel above 4G on arm64 kdump

2019-04-09 Thread Chen Zhou
Hi Bhupesh, On 2019/4/9 13:20, Bhupesh Sharma wrote: > Hi Chen, > > Thanks for the patchset. > > Before I review the patches in detail, I have a couple of generic queries. > Please see them in-line: > > On 04/03/2019 11:05 AM, Chen Zhou wrote: >> When crash

[PATCH v3 2/4] arm64: kdump: support reserving crashkernel above 4G

2019-04-09 Thread Chen Zhou
-off-by: Chen Zhou --- arch/arm64/include/asm/kexec.h | 3 +++ arch/arm64/kernel/setup.c | 3 +++ arch/arm64/mm/init.c | 26 +- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/kexec.h b/arch/arm64/include/asm/kexec.h

[PATCH v3 1/4] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-04-09 Thread Chen Zhou
In preparation for supporting more than one crash kernel regions in arm64 as x86_64 does, move reserve_crashkernel_low() into kexec/kexec_core.c. Signed-off-by: Chen Zhou --- arch/x86/include/asm/kexec.h | 3 ++ arch/x86/kernel/setup.c | 66

[PATCH v3 4/4] kdump: update Documentation about crashkernel on arm64

2019-04-09 Thread Chen Zhou
Now we support crashkernel=X,[high,low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

[PATCH v3 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-04-09 Thread Chen Zhou
crash kernel regions case, we cap the memory range [min(regs[*].start), max(regs[*].end)] and then remove the memory range in the middle. [1]: http://lists.infradead.org/pipermail/kexec/2019-April/022792.html [v1]: https://lkml.org/lkml/2019/4/8/628 [v2]: https://lkml.org/lkml/2019/4/9/86 Chen Zh

[PATCH v3 3/4] arm64: kdump: support more than one crash kernel regions

2019-04-09 Thread Chen Zhou
After commit (arm64: kdump: support reserving crashkernel above 4G), there may be two crash kernel regions, one is below 4G, the other is above 4G. Crash dump kernel reads more than one crash kernel regions via a dtb property under node /chosen, linux,usable-memory-range = Signed-off-by: Chen

Re: [PATCH v3 3/4] arm64: kdump: support more than one crash kernel regions

2019-04-11 Thread Chen Zhou
wrote: > Hi, > > On Tue, Apr 09, 2019 at 06:28:18PM +0800, Chen Zhou wrote: >> After commit (arm64: kdump: support reserving crashkernel above 4G), >> there may be two crash kernel regions, one is below 4G, the other is >> above 4G. >> >> Crash dump kernel re

Re: [PATCH v3 1/4] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-04-11 Thread Chen Zhou
Hi Ingo, On 2019/4/10 15:09, Ingo Molnar wrote: > > * Chen Zhou wrote: > >> In preparation for supporting more than one crash kernel regions >> in arm64 as x86_64 does, move reserve_crashkernel_low() into >> kexec/kexec_core.c. >> >> Signed-off-by: Che

Re: [PATCH v3 3/4] arm64: kdump: support more than one crash kernel regions

2019-04-13 Thread Chen Zhou
Hi Mike, On 2019/4/11 20:17, Chen Zhou wrote: > Hi Mike, > > This overall looks well. > Replacing memblock_cap_memory_range() with memblock_cap_memory_ranges() was > what i wanted > to do in v1, sorry for don't express that clearly. > > But there are some issues as

Re: [PATCH v3 3/4] arm64: kdump: support more than one crash kernel regions

2019-04-14 Thread Chen Zhou
Hi Mike, On 2019/4/14 20:10, Mike Rapoport wrote: > Hi, > > On Thu, Apr 11, 2019 at 08:17:43PM +0800, Chen Zhou wrote: >> Hi Mike, >> >> This overall looks well. >> Replacing memblock_cap_memory_range() with memblock_cap_memory_ranges() was >> what i

Re: [PATCH v3 3/4] arm64: kdump: support more than one crash kernel regions

2019-04-14 Thread Chen Zhou
Hi Mike, On 2019/4/14 20:13, Mike Rapoport wrote: > Hi, > > On Tue, Apr 09, 2019 at 06:28:18PM +0800, Chen Zhou wrote: >> After commit (arm64: kdump: support reserving crashkernel above 4G), >> there may be two crash kernel regions, one is below 4G, the other is >>

[PATCH v4 0/5] support reserving crashkernel above 4G on arm64 kdump

2019-04-15 Thread Chen Zhou
]: https://lkml.org/lkml/2019/4/9/86 [V3]: https://lkml.org/lkml/2019/4/15/6 Chen Zhou (5): x86: kdump: move reserve_crashkernel_low() into kexec_core.c arm64: kdump: support reserving crashkernel above 4G memblock: add memblock_cap_memory_ranges for multiple ranges arm64: kdump: support mo

[PATCH v4 3/5] memblock: add memblock_cap_memory_ranges for multiple ranges

2019-04-15 Thread Chen Zhou
The memblock_cap_memory_range() removes all the memory except the range passed to it. Extend this function to receive memblock_type with the regions that should be kept. Enable this function in arm64 for reservation of multiple regions for the crash kernel. Signed-off-by: Chen Zhou Signed-off

[PATCH v4 1/5] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-04-15 Thread Chen Zhou
In preparation for supporting more than one crash kernel regions in arm64 as x86_64 does, move reserve_crashkernel_low() into kexec/kexec_core.c. Signed-off-by: Chen Zhou --- arch/x86/include/asm/kexec.h | 3 ++ arch/x86/kernel/setup.c | 66

[PATCH v4 2/5] arm64: kdump: support reserving crashkernel above 4G

2019-04-15 Thread Chen Zhou
-off-by: Chen Zhou --- arch/arm64/include/asm/kexec.h | 3 +++ arch/arm64/kernel/setup.c | 3 +++ arch/arm64/mm/init.c | 25 - 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/kexec.h b/arch/arm64/include/asm/kexec.h

[PATCH v4 4/5] arm64: kdump: support more than one crash kernel regions

2019-04-15 Thread Chen Zhou
property under node /chosen, linux,usable-memory-range = . Besides, replace memblock_cap_memory_range() with memblock_cap_memory_ranges(). Signed-off-by: Chen Zhou Signed-off-by: Mike Rapoport --- arch/arm64/mm/init.c | 34 -- include/linux/memblock.h | 1 - mm

[PATCH v4 5/5] kdump: update Documentation about crashkernel on arm64

2019-04-15 Thread Chen Zhou
Now we support crashkernel=X,[high,low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

Re: [PATCH v4 3/5] memblock: add memblock_cap_memory_ranges for multiple ranges

2019-04-15 Thread Chen Zhou
Hi Mike, On 2019/4/16 3:09, Mike Rapoport wrote: > Hi, > > On Mon, Apr 15, 2019 at 06:57:23PM +0800, Chen Zhou wrote: >> The memblock_cap_memory_range() removes all the memory except the >> range passed to it. Extend this function to receive memblock_type >> with the

[PATCH v5 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-04-16 Thread Chen Zhou
permail/kexec/2019-April/022792.html [v1]: https://lkml.org/lkml/2019/4/8/628 [v2]: https://lkml.org/lkml/2019/4/9/86 [v3]: https://lkml.org/lkml/2019/4/15/6 [v4]: https://lkml.org/lkml/2019/4/15/273 Chen Zhou (4): x86: kdump: move reserve_crashkernel_low() into kexec_core.c arm64: kdump: support r

[PATCH v5 4/4] kdump: update Documentation about crashkernel on arm64

2019-04-16 Thread Chen Zhou
Now we support crashkernel=X,[high,low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

[PATCH v5 2/4] arm64: kdump: support reserving crashkernel above 4G

2019-04-16 Thread Chen Zhou
-off-by: Chen Zhou --- arch/arm64/include/asm/kexec.h | 3 +++ arch/arm64/kernel/setup.c | 3 +++ arch/arm64/mm/init.c | 25 - 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/kexec.h b/arch/arm64/include/asm/kexec.h

[PATCH v5 1/4] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-04-16 Thread Chen Zhou
In preparation for supporting more than one crash kernel regions in arm64 as x86_64 does, move reserve_crashkernel_low() into kexec/kexec_core.c. Signed-off-by: Chen Zhou --- arch/x86/include/asm/kexec.h | 3 ++ arch/x86/kernel/setup.c | 66

[PATCH v5 3/4] memblock: extend memblock_cap_memory_range to multiple ranges

2019-04-16 Thread Chen Zhou
ded memory. Enable use of this function in arm64 for reservation of multiple regions for the crash kernel. Signed-off-by: Chen Zhou --- arch/arm64/mm/init.c | 34 -- include/linux/memblock.h | 2 +- mm/memblock.c| 44 -

[RESEND PATCH v5 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-04-16 Thread Chen Zhou
g/pipermail/kexec/2019-April/022792.html [v1]: https://lkml.org/lkml/2019/4/8/628 [v2]: https://lkml.org/lkml/2019/4/9/86 [v3]: https://lkml.org/lkml/2019/4/15/6 [v4]: https://lkml.org/lkml/2019/4/15/273 Chen Zhou (3): x86: kdump: move reserve_crashkernel_low() into kexec_core.c arm64: kdump

[RESEND PATCH v5 1/4] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-04-16 Thread Chen Zhou
In preparation for supporting more than one crash kernel regions in arm64 as x86_64 does, move reserve_crashkernel_low() into kexec/kexec_core.c. Signed-off-by: Chen Zhou --- arch/x86/include/asm/kexec.h | 3 ++ arch/x86/kernel/setup.c | 66

[RESEND PATCH v5 2/4] arm64: kdump: support reserving crashkernel above 4G

2019-04-16 Thread Chen Zhou
-off-by: Chen Zhou --- arch/arm64/include/asm/kexec.h | 3 +++ arch/arm64/kernel/setup.c | 3 +++ arch/arm64/mm/init.c | 25 - 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/kexec.h b/arch/arm64/include/asm/kexec.h

[RESEND PATCH v5 3/4] memblock: extend memblock_cap_memory_range to multiple ranges

2019-04-16 Thread Chen Zhou
remove the unneeded memory. Enable use of this function in arm64 for reservation of multiple regions for the crash kernel. Signed-off-by: Mike Rapoport Signed-off-by: Chen Zhou --- arch/arm64/mm/init.c | 34 -- include/linux/memblock.h | 2 +- mm/

[RESEND PATCH v5 4/4] kdump: update Documentation about crashkernel on arm64

2019-04-16 Thread Chen Zhou
Now we support crashkernel=X,[high,low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kernel-parameters.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

[PATCH 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-05-06 Thread Chen Zhou
g/lkml/2019/4/2/1174 [v2]: https://lkml.org/lkml/2019/4/9/86 [v3]: https://lkml.org/lkml/2019/4/9/306 [v4]: https://lkml.org/lkml/2019/4/15/273 Chen Zhou (3): x86: kdump: move reserve_crashkernel_low() into kexec_core.c arm64: kdump: support reserving crashkernel above 4G kdump: update

[PATCH 4/4] kdump: update Documentation about crashkernel on arm64

2019-05-06 Thread Chen Zhou
Now we support crashkernel=X,[high,low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kernel-parameters.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation

[PATCH 1/4] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-05-06 Thread Chen Zhou
In preparation for supporting reserving crashkernel above 4G in arm64 as x86_64 does, move reserve_crashkernel_low() into kexec/kexec_core.c. Signed-off-by: Chen Zhou --- arch/x86/include/asm/kexec.h | 3 ++ arch/x86/kernel/setup.c | 66

[PATCH 2/4] arm64: kdump: support reserving crashkernel above 4G

2019-05-06 Thread Chen Zhou
,high" is specified. Signed-off-by: Chen Zhou --- arch/arm64/include/asm/kexec.h | 3 +++ arch/arm64/kernel/setup.c | 3 +++ arch/arm64/mm/init.c | 34 -- 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/arch/arm64/include/asm

[PATCH 3/4] memblock: extend memblock_cap_memory_range to multiple ranges

2019-05-06 Thread Chen Zhou
remove the unneeded memory. Enable use of this function in arm64 for reservation of multiple regions for the crash kernel. Signed-off-by: Mike Rapoport Signed-off-by: Chen Zhou --- arch/arm64/mm/init.c | 38 -- include/linux/memblock.h | 2 +- mm/

Re: [PATCH 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-05-15 Thread Chen Zhou
across a larger range. > > Some comments inline and in respective patch threads.. > > On 05/07/2019 09:20 AM, Chen Zhou wrote: >> This patch series enable reserving crashkernel on high memory in arm64. > > Please fix the patch subject, it should be v5. > Also please C

Re: [PATCH 4/4] kdump: update Documentation about crashkernel on arm64

2019-05-15 Thread Chen Zhou
On 2019/5/15 13:16, Bhupesh Sharma wrote: > On 05/07/2019 09:20 AM, Chen Zhou wrote: >> Now we support crashkernel=X,[high,low] on arm64, update the >> Documentation. >> >> Signed-off-by: Chen Zhou >> --- >> Documentation/admin-guide/kernel-parameter

Re: [PATCH] arm64: support more than one crash kernel regions

2019-06-02 Thread Chen Zhou
Hi Simon, On 2019/5/31 17:28, Simon Horman wrote: > On Wed, Apr 03, 2019 at 10:55:04AM +0800, Chen Zhou wrote: >> When crashkernel is reserved above 4G in memory, kernel should >> reserve some amount of low memory for swiotlb and some DMA buffers. >> So there may be two cras

Re: [PATCH 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-06-02 Thread Chen Zhou
Hi Catalin, Sorry to ping you. What's your suggestion about this patch series? I am looking forward to your replay. Thanks, Chen Zhou On 2019/5/16 11:19, Chen Zhou wrote: > Hi Bhupesh, > > On 2019/5/15 13:06, Bhupesh Sharma wrote: >> +Cc kexec-list. >> >> Hi

Re: [PATCH 1/4] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-06-13 Thread Chen Zhou
Hi James, Thanks for your review. On 2019/6/6 0:29, James Morse wrote: > Hello, > > On 07/05/2019 04:50, Chen Zhou wrote: >> In preparation for supporting reserving crashkernel above 4G >> in arm64 as x86_64 does, move reserve_crashkernel_low() into >> kexec/kexec_co

Re: [PATCH 2/4] arm64: kdump: support reserving crashkernel above 4G

2019-06-13 Thread Chen Zhou
Hi James, On 2019/6/6 0:29, James Morse wrote: > Hello, > > On 07/05/2019 04:50, Chen Zhou wrote: >> When crashkernel is reserved above 4G in memory, kernel should >> reserve some amount of low memory for swiotlb and some DMA buffers. > >> Meanwhile, support cra

Re: [PATCH 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-06-13 Thread Chen Zhou
On 2019/6/6 0:32, James Morse wrote: > Hi! > > On 07/05/2019 04:50, Chen Zhou wrote: >> We use crashkernel=X to reserve crashkernel below 4G, which will fail >> when there is no enough memory. Currently, crashkernel=Y@X can be used >> to reserve crashkernel above 4

Re: [PATCH 1/4] x86: kdump: move reserve_crashkernel_low() into kexec_core.c

2019-06-13 Thread Chen Zhou
Hi Dave, On 2019/6/12 16:45, Dave Young wrote: > Other than the comments from James, can you move the function into > kernel/crash_core.c, we already have some functions moved there for > sharing. Sure. Thanks, Chen Zhou ___ kexec mailing l

[PATCH v2] arm64: kdump: add another DT property to crash dump kernel's dtb

2019-08-29 Thread Chen Zhou
Currently, there is only one crash kernel region on arm64, we add another region "crash kernel low" used for crash dump kernel devices. To do this, we add DT property "linux,low-memory-range" to crash dump kernel's dtb to pass the low region. Signed-off-by: Chen Zhou -

[PATCH v6 2/4] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2019-08-30 Thread Chen Zhou
Crashkernel=X tries to reserve memory for the crash dump kernel under 4G. If crashkernel=X,low is specified simultaneously, reserve spcified size low memory for crash kdump kernel devices firstly and then reserve memory above 4G. Signed-off-by: Chen Zhou --- arch/arm64/include/asm/kexec.h | 3

[PATCH v6 1/4] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2019-08-30 Thread Chen Zhou
ff-by: Chen Zhou --- arch/x86/include/asm/kexec.h | 3 ++ arch/x86/kernel/setup.c | 65 include/linux/crash_core.h | 4 +++ include/linux/kexec.h| 1 - kernel/crash_core.c | 65 5

[PATCH v6 3/4] arm64: kdump: add memory for devices by DT property, low-memory-range

2019-08-30 Thread Chen Zhou
erty under /chosen, linux,low-memory-range= Crash dump kernel reads this property at boot time and call memblock_add() after memblock_cap_memory_range() has been called. Signed-off-by: Chen Zhou --- arch/arm64/mm/init.c | 30 +- 1 file changed, 29 insert

[PATCH v6 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-08-30 Thread Chen Zhou
]: https://lkml.org/lkml/2019/4/9/306 [v4]: https://lkml.org/lkml/2019/4/15/273 [v5]: https://lkml.org/lkml/2019/5/6/1360 Chen Zhou (4): x86: kdump: move reserve_crashkernel_low() into crash_core.c arm64: kdump: reserve crashkenel above 4G for crash dump kernel arm64: kdump: add memory for

[PATCH v6 4/4] kdump: update Documentation about crashkernel on arm64

2019-08-30 Thread Chen Zhou
Now we support crashkernel=X,[low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kdump/kdump.rst | 13 +++-- Documentation/admin-guide/kernel-parameters.txt | 12 +++- 2 files changed, 22 insertions(+), 3 deletions(-) diff

Re: [PATCH v6 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-12-17 Thread Chen Zhou
Hi all, Friendly ping... On 2019/8/30 15:11, Chen Zhou wrote: > I am busy with other things, so it was a long time before this version was > released. > > This patch series enable reserving crashkernel above 4G in arm64. > > There are following issues in arm64 kdump: > 1.

Re: [PATCH v6 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-12-18 Thread Chen Zhou
Hi Will On 2019/12/18 17:09, Will Deacon wrote: > On Wed, Dec 18, 2019 at 10:07:59AM +0800, Chen Zhou wrote: >> Friendly ping... > > You broke the build: > > https://lore.kernel.org/lkml/201909010744.cde940pv%...@intel.com > https://lore.kernel.org/lkml/20190901070

Re: [PATCH v6 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-12-18 Thread Chen Zhou
Hi John, On 2019/12/19 1:18, John Donnelly wrote: > HI > > SEE INLINE ON A QUESTION : > >> On Dec 17, 2019, at 8:07 PM, Chen Zhou wrote: >> >> Hi all, >> >> Friendly ping... >> >> On 2019/8/30 15:11, Chen Zhou wrote: >>> I am bu

Re: `

2019-12-19 Thread Chen Zhou
Hi John, On 2019/12/20 2:33, John Donnelly wrote: > > >> On Dec 18, 2019, at 8:56 PM, Chen Zhou wrote: >> >> Hi John, >> >> On 2019/12/19 1:18, John Donnelly wrote: >>> HI >>> >>> SEE INLINE ON A QUESTION : >>&

[PATCH v7 0/4] support reserving crashkernel above 4G on arm64 kdump

2019-12-23 Thread Chen Zhou
ml.org/lkml/2019/4/9/306 [v4]: https://lkml.org/lkml/2019/4/15/273 [v5]: https://lkml.org/lkml/2019/5/6/1360 [v6]: https://lkml.org/lkml/2019/8/30/142 Chen Zhou (4): x86: kdump: move reserve_crashkernel_low() into crash_core.c arm64: kdump: reserve crashkenel above 4G for crash dump kernel

[PATCH v7 2/4] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2019-12-23 Thread Chen Zhou
Crashkernel=X tries to reserve memory for the crash dump kernel under 4G. If crashkernel=X,low is specified simultaneously, reserve spcified size low memory for crash kdump kernel devices firstly and then reserve memory above 4G. Signed-off-by: Chen Zhou --- arch/arm64/kernel/setup.c | 8

[PATCH v7 1/4] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2019-12-23 Thread Chen Zhou
ed-by: kbuild test robot Signed-off-by: Chen Zhou --- arch/x86/kernel/setup.c| 62 - include/linux/crash_core.h | 3 ++ include/linux/kexec.h | 2 -- kernel/crash_core.c| 87 ++ kernel/kexec_core.c

[PATCH v7 3/4] arm64: kdump: add memory for devices by DT property, low-memory-range

2019-12-23 Thread Chen Zhou
erty under /chosen, linux,low-memory-range= Crash dump kernel reads this property at boot time and call memblock_add() after memblock_cap_memory_range() has been called. Signed-off-by: Chen Zhou --- arch/arm64/mm/init.c | 30 +- 1 file changed, 29 insert

[PATCH v7 4/4] kdump: update Documentation about crashkernel on arm64

2019-12-23 Thread Chen Zhou
Now we support crashkernel=X,[low] on arm64, update the Documentation. Signed-off-by: Chen Zhou --- Documentation/admin-guide/kdump/kdump.rst | 13 +++-- Documentation/admin-guide/kernel-parameters.txt | 12 +++- 2 files changed, 22 insertions(+), 3 deletions(-) diff

Re: [PATCH v7 1/4] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2019-12-27 Thread Chen Zhou
Hi Dave On 2019/12/27 13:54, Dave Young wrote: > Hi, > On 12/23/19 at 11:23pm, Chen Zhou wrote: >> In preparation for supporting reserve_crashkernel_low in arm64 as >> x86_64 does, move reserve_crashkernel_low() into kernel/crash_core.c. >> >> Note, in arm64, we res

Re: [PATCH v7 1/4] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2019-12-30 Thread Chen Zhou
Hi Dave, On 2019/12/28 17:32, Dave Young wrote: > On 12/27/19 at 07:04pm, Chen Zhou wrote: >> Hi Dave >> >> On 2019/12/27 13:54, Dave Young wrote: >>> Hi, >>> On 12/23/19 at 11:23pm, Chen Zhou wrote: >>>> In preparation for supporting reserve

Re: [PATCH v7 0/4] support reserving crashkernel above 4G on arm64 kdump

2020-02-12 Thread Chen Zhou
Hi John, On 2020/2/12 21:20, John Donnelly wrote: > On 12/23/19 9:23 AM, Chen Zhou wrote: >> This patch series enable reserving crashkernel above 4G in arm64. >> >> There are following issues in arm64 kdump: >> 1. We use crashkernel=X to reserve crashkernel below 4G, wh

Re: [PATCH v7 1/4] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-03-01 Thread Chen Zhou
On 2020/2/24 23:25, John Donnelly wrote: > > >> On Jan 16, 2020, at 9:47 AM, John Donnelly >> wrote: >> >> >> >>> On Jan 16, 2020, at 9:17 AM, James Morse wrote: >>> >>> Hi guys, >>> >>> On 28/12/2019 09:32, Da

Re: [PATCH v7 2/4] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2020-03-07 Thread Chen Zhou
On 2020/3/5 18:13, Prabhakar Kushwaha wrote: > On Mon, Dec 23, 2019 at 8:57 PM Chen Zhou wrote: >> >> Crashkernel=X tries to reserve memory for the crash dump kernel under >> 4G. If crashkernel=X,low is specified simultaneously, reserve spcified >> size low me

Re: [PATCH v7 0/4] support reserving crashkernel above 4G on arm64 kdump

2020-03-25 Thread Chen Zhou
Hi all, Friendly ping... On 2019/12/23 23:23, Chen Zhou wrote: > This patch series enable reserving crashkernel above 4G in arm64. > > There are following issues in arm64 kdump: > 1. We use crashkernel=X to reserve crashkernel below 4G, which will fail > when there is no enough

Re: [PATCH v7 1/4] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-04-03 Thread Chen Zhou
Hi Dave, On 2019/12/31 9:39, Chen Zhou wrote: > Hi Dave, > > On 2019/12/28 17:32, Dave Young wrote: >> On 12/27/19 at 07:04pm, Chen Zhou wrote: >>> Hi Dave >>> >>> On 2019/12/27 13:54, Dave Young wrote: >>>> Hi, >>>> On 12/23/1

Re: [PATCH v7 1/4] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-04-03 Thread Chen Zhou
Hi Dave/James, On 2020/1/17 11:58, Dave Young wrote: > On 01/16/20 at 03:17pm, James Morse wrote: >> Hi guys, >> >> On 28/12/2019 09:32, Dave Young wrote: >>> On 12/27/19 at 07:04pm, Chen Zhou wrote: >>>> On 2019/12/27 13:54, Dave Young wrote: >

[PATCH v3] arm64: kdump: add another DT property to crash dump kernel's dtb

2020-05-21 Thread Chen Zhou
Currently, there is only one crash kernel region on arm64, we add another region "crash kernel low" used for crash dump kernel devices. To do this, we add DT property "linux,low-memory-range" to crash dump kernel's dtb to pass the low region. Signed-off-by: Chen Zhou -

[PATCH v8 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-05-21 Thread Chen Zhou
ml.org/lkml/2019/4/9/306 [v4]: https://lkml.org/lkml/2019/4/15/273 [v5]: https://lkml.org/lkml/2019/5/6/1360 [v6]: https://lkml.org/lkml/2019/8/30/142 [v7]: https://lkml.org/lkml/2019/12/23/411 Chen Zhou (5): x86: kdump: move reserve_crashkernel_low() into crash_core.c arm64: kdump: reserve cr

[PATCH v8 1/5] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-05-21 Thread Chen Zhou
emory automatically. Reported-by: kbuild test robot Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- arch/x86/kernel/setup.c| 66 - include/linux/crash_core.h | 3 ++ include/linux/kexec.h | 2 - kernel/crash_c

[PATCH v8 2/5] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2020-05-21 Thread Chen Zhou
Crashkernel=X tries to reserve memory for the crash dump kernel under 4G. If crashkernel=X,low is specified simultaneously, reserve spcified size low memory for crash kdump kernel devices firstly and then reserve memory above 4G. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by

[PATCH v8 5/5] dt-bindings: chosen: Document linux, low-memory-range for arm64 kdump

2020-05-21 Thread Chen Zhou
Add documentation for DT property used by arm64 kdump: linux,low-memory-range. "linux,low-memory-range" is an another memory region used for crash dump kernel devices. Signed-off-by: Chen Zhou --- Documentation/devicetree/bindings/chosen.txt | 25 1 file c

[PATCH v8 4/5] kdump: update Documentation about crashkernel on arm64

2020-05-21 Thread Chen Zhou
Now we support crashkernel=X,[low] on arm64, update the Documentation. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- Documentation/admin-guide/kdump/kdump.rst | 13 +++-- Documentation/admin-guide/kernel-parameters.txt | 12 +++- 2

[PATCH v8 3/5] arm64: kdump: add memory for devices by DT property, low-memory-range

2020-05-21 Thread Chen Zhou
erty under /chosen, linux,low-memory-range= Crash dump kernel reads this property at boot time and call memblock_add() after memblock_cap_memory_range() has been called. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- arch/arm64/mm/i

[PATCH v4] arm64: support more than one crash kernel regions

2020-06-27 Thread Chen Zhou
ing user-space and older kdump kernels. Signed-off-by: Chen Zhou --- For "support reserving crashkernel above 4G on arm64 kdump", we need to modify the kexec-tools. Changes since [v3]: - Reuse DT property "linux,usable-memory-range". Reuse DT property "linux,usable-memor

[PATCH v9 5/5] kdump: update Documentation about crashkernel on arm64

2020-06-28 Thread Chen Zhou
Now we support crashkernel=X,[low] on arm64, update the Documentation. We could use parameters "crashkernel=X crashkernel=Y,low" to reserve memory above 4G. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- Documentation/admin-guide/kdump/kdump.rst

[PATCH v9 4/5] arm64: kdump: fix kdump broken with ZONE_DMA reintroduced

2020-06-28 Thread Chen Zhou
eters "crashkernel=X crashkernel=Y,low". Signed-off-by: Chen Zhou --- kernel/crash_core.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/crash_core.c b/kernel/crash_core.c index a7580d291c37..e8ecbbc761a3 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_

[PATCH v9 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-06-28 Thread Chen Zhou
.org/lkml/2019/5/6/1360 [v6]: https://lkml.org/lkml/2019/8/30/142 [v7]: https://lkml.org/lkml/2019/12/23/411 [v8]: https://lkml.org/lkml/2020/5/21/213 Chen Zhou (5): x86: kdump: move reserve_crashkernel_low() into crash_core.c arm64: kdump: reserve crashkenel above 4G for crash dump kernel

[PATCH v9 1/5] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-06-28 Thread Chen Zhou
reserve low memory if and only if crashkernel=X,low is specified. Different with x86_64, don't set low memory automatically. Reported-by: kbuild test robot Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- arch/x86/kernel/setup.c

[PATCH v9 3/5] arm64: kdump: add memory for devices by DT property linux, usable-memory-range

2020-06-28 Thread Chen Zhou
rty at boot time and call memblock_add() to add the low memory region after memblock_cap_memory_range() has been called. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- arch/arm64/mm/init.c | 43 +-- 1 file changed,

[PATCH v9 2/5] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2020-06-28 Thread Chen Zhou
memtioned above, if crashkernel=X,low is specified simultaneously, reserve spcified size low memory for crash kdump kernel devices firstly and then reserve memory above 4G, which is much simpler. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- arch/arm64

[PATCH v10 4/5] arm64: kdump: fix kdump broken with ZONE_DMA reintroduced

2020-07-02 Thread Chen Zhou
eters "crashkernel=X crashkernel=Y,low". Signed-off-by: Chen Zhou --- kernel/crash_core.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/crash_core.c b/kernel/crash_core.c index a7580d291c37..e8ecbbc761a3 100644 --- a/kernel/crash_core.c +++ b/kernel/crash_

[PATCH v10 2/5] arm64: kdump: reserve crashkenel above 4G for crash dump kernel

2020-07-02 Thread Chen Zhou
memtioned above, if crashkernel=X,low is specified simultaneously, reserve spcified size low memory for crash kdump kernel devices firstly and then reserve memory above 4G, which is much simpler. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- arch/arm64

[PATCH v10 3/5] arm64: kdump: add memory for devices by DT property linux, usable-memory-range

2020-07-02 Thread Chen Zhou
rty at boot time and call memblock_add() to add the low memory region after memblock_cap_memory_range() has been called. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- arch/arm64/mm/init.c | 43 +-- 1 file changed,

[PATCH v10 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-07-02 Thread Chen Zhou
ps://lkml.org/lkml/2019/4/9/86 [v3]: https://lkml.org/lkml/2019/4/9/306 [v4]: https://lkml.org/lkml/2019/4/15/273 [v5]: https://lkml.org/lkml/2019/5/6/1360 [v6]: https://lkml.org/lkml/2019/8/30/142 [v7]: https://lkml.org/lkml/2019/12/23/411 [v8]: https://lkml.org/lkml/2020/5/21/213 [v9]: https://lkml

[PATCH v10 5/5] kdump: update Documentation about crashkernel on arm64

2020-07-02 Thread Chen Zhou
Now we support crashkernel=X,[low] on arm64, update the Documentation. We could use parameters "crashkernel=X crashkernel=Y,low" to reserve memory above 4G. Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha --- Documentation/admin-guide/kdump/kdump.rst

[PATCH v10 1/5] x86: kdump: move reserve_crashkernel_low() into crash_core.c

2020-07-02 Thread Chen Zhou
reserve low memory if and only if crashkernel=X,low is specified. Different with x86_64, don't set low memory automatically. Reported-by: kbuild test robot Signed-off-by: Chen Zhou Tested-by: John Donnelly Tested-by: Prabhakar Kushwaha Acked-by: Dave Young --- arch/x86/kernel/setup.c

  1   2   >