[PATCH V2 1/3] MIPS: Crash kernel should be able to see old memories

2020-09-24 Thread Huacai Chen
Kexec-tools use mem=X@Y to pass usable memories to crash kernel, but in commit a94e4f24ec836c8984f83959 ("MIPS: init: Drop boot_mem_map") all BIOS passed memories are removed by early_parse_mem(). I think this is reasonable for a normal kernel but not for a crash kernel, because a crash kernel shou

[PATCH V2 2/3] MIPS: Reserve extra memory for crash dump

2020-09-24 Thread Huacai Chen
Traditionally, MIPS's contiguous low memory can be as less as 256M, so crashkernel=X@Y may be unable to large enough in some cases. Moreover, for the "multi numa node + sparse memory model" case, it is attempt to allocate section_mem_maps on every node. Thus, if the total memory of a node is more t

[PATCH V2 3/3] MIPS: Loongson64: Add kexec/kdump support

2020-09-24 Thread Huacai Chen
Add kexec/kdump support for Loongson64 by: 1, Provide Loongson-specific kexec functions: loongson_kexec_prepare(), loongson_kexec_shutdown() and loongson_crash_shutdown(); 2, Provide Loongson-specific assembly code in kexec_smp_wait(); To start Loongson64, The boot CPU needs 3 parameters: fw_ar

[PATCH v2 1/1] kdump: append uts_namespace.name offset to VMCOREINFO

2020-09-24 Thread Alexander Egorenkov
The offset of the field 'init_uts_ns.name' has changed since commit 9a56493f6942c0e2df1579986128721da96e00d8 Author: Kirill Tkhai Date: Mon Aug 3 13:16:21 2020 +0300 uts: Use generic ns_common::count Link: https://lore.kernel.org/r/159644978167.604812.1773586504374412107.stgit@localhost.

RE: [PATCH] Only allow to set crash_kexec_post_notifiers on boot time

2020-09-24 Thread Michael Kelley
From: Konrad Rzeszutek Wilk Sent: Wednesday, September 23, 2020 8:48 AM > > On Wed, Sep 23, 2020 at 10:43:29AM +0800, Dave Young wrote: > > + more people who may care about this param > > Paarty time!! > > (See below, didn't snip any comments) > > On 09/21/20 at 08:45pm, Eric W. Biederman wrot

Re: [PATCH] Only allow to set crash_kexec_post_notifiers on boot time

2020-09-24 Thread Eric W. Biederman
Michael Kelley writes: > From: Konrad Rzeszutek Wilk Sent: Wednesday, > September 23, 2020 8:48 AM >> >> On Wed, Sep 23, 2020 at 10:43:29AM +0800, Dave Young wrote: >> > + more people who may care about this param >> >> Paarty time!! >> >> (See below, didn't snip any comments) >> > On 09/21/

RE: [PATCH] Only allow to set crash_kexec_post_notifiers on boot time

2020-09-24 Thread Michael Kelley
From: Eric W. Biederman Sent: Thursday, September 24, 2020 9:26 AM > > Michael Kelley writes: > > >> > > >> > Added Hyper-V people and people who created the param, it is below > >> > commit, I also want to remove it if possible, let's see how people > >> > think, but the least way should be t

Re: [PATCH v2] docs: admin-guide: update kdump documentation due to change of crash URL

2020-09-24 Thread Jonathan Corbet
On Thu, 24 Sep 2020 09:56:02 +0800 lijiang wrote: > Since crash utility has been moved to github, the original URL is no > longer available. Let's update it accordingly. > > Suggested-by: Dave Young > Signed-off-by: Lianbo Jiang > --- > Documentation/admin-guide/kdump/kdump.rst | 7 +-- >

Re: [PATCH] Only allow to set crash_kexec_post_notifiers on boot time

2020-09-24 Thread boris . ostrovsky
On 9/24/20 12:43 PM, Michael Kelley wrote: > From: Eric W. Biederman Sent: Thursday, September 24, > 2020 9:26 AM >> Michael Kelley writes: >> > Added Hyper-V people and people who created the param, it is below > commit, I also want to remove it if possible, let's see how people >

Re: [PATCH] Only allow to set crash_kexec_post_notifiers on boot time

2020-09-24 Thread Dave Young
Hi, On 09/24/20 at 01:16pm, boris.ostrov...@oracle.com wrote: > > On 9/24/20 12:43 PM, Michael Kelley wrote: > > From: Eric W. Biederman Sent: Thursday, September > > 24, 2020 9:26 AM > >> Michael Kelley writes: > >> > > Added Hyper-V people and people who created the param, it is below >

Re: [PATCH v2 1/1] kdump: append uts_namespace.name offset to VMCOREINFO

2020-09-24 Thread Baoquan He
On 09/24/20 at 02:46pm, Alexander Egorenkov wrote: > The offset of the field 'init_uts_ns.name' has changed > since > > commit 9a56493f6942c0e2df1579986128721da96e00d8 > Author: Kirill Tkhai > Date: Mon Aug 3 13:16:21 2020 +0300 > > uts: Use generic ns_common::count > > Link: > https://l

Re: [PATCH v2 1/1] kdump: append uts_namespace.name offset to VMCOREINFO

2020-09-24 Thread Bhupesh Sharma
Hi Alexander, On Thu, Sep 24, 2020 at 6:18 PM Alexander Egorenkov wrote: > > The offset of the field 'init_uts_ns.name' has changed > since > > commit 9a56493f6942c0e2df1579986128721da96e00d8 > Author: Kirill Tkhai > Date: Mon Aug 3 13:16:21 2020 +0300 > > uts: Use generic ns_common::count

Re: [PATCH] kexec-tools: mips: Remove commandline parameter "mem"

2020-09-24 Thread Simon Horman
On Sat, Sep 12, 2020 at 09:32:24AM +0800, Youling Tang wrote: > "mem=" indicating the memory region the new kernel can use to boot into. > And passed to the dump-capture kernel by kernel commandline parameter > "mem=". But in the dump-capture kernel, we don’t need to use this parameter > now, so re

Re: [PATCH] kexec/arm64: Add support for ARMv8.2 (large space addressing) 52-bit VA extensions

2020-09-24 Thread Simon Horman
Hi Bhupesh, thanks for your patch. ... > +static int get_vabits_actual_from_id_aa64mmfr2_el1(void) > +{ > + int l_vabits_actual; > + unsigned long val; > + > + /* Check if ID_AA64MMFR2_EL1 CPU-ID register indicates > + * ARMv8.2/LVA support: > + * VARange, bits [19:16] > +